Write our own state machine instead of using smach (smach sucks) #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Close issue | |
on: | |
issues: | |
types: [closed] | |
env: | |
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | |
CHAT_GPT_TOKEN: ${{ secrets.CHAT_GPT_TOKEN }} | |
jobs: | |
discord: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
pip install -U discord.py | |
pip install openai==1.1.1 | |
python .github/discord_bot.py ${{ github.event.issue.number }} | |