2db983c4625ae568ddbf9db0a862d4bb76e25799
- Try to keep at least 3 messages from each channel in the history - Use post processed messages for the history, instead of the raw messages from the openai API
Fjerkroa bot
A simple Discord bot that uses OpenAI's GPT to chat with users.
Installation
- Install the package using pip:
pip install fjerkroa-bot
- Create a
bot.pyfile with the following content, replacing the tokens with your own:
from discord_gpt_bot import main
main.DISCORD_BOT_TOKEN = "your_discord_bot_token"
main.OPENAI_API_KEY = "your_openai_api_key"
main.run_bot()
- Run the bot:
python bot.py
Description
Languages
Python
98.1%
Makefile
0.7%
Shell
0.6%
Gherkin
0.6%