DiscordGPT Bot Code
Discord chatbot that integrates GPT models to interact with users
Brought to you by:
sinewave
File | Date | Author | Commit |
---|---|---|---|
.github | 2024-03-15 | David | [5c6528] Create FUNDING.yml |
LICENSE | 2024-03-01 | David | [0641ab] Initial commit |
README.md | 2024-04-06 | David | [d80b75] Updated README.md |
bot_client.py | 2024-03-01 | David | [dd6b37] Added |
cache.json | 2024-03-01 | David | [dd6b37] Added |
config.py | 2024-03-01 | David | [438828] Added config.py |
dataset.txt | 2024-03-01 | David | [dd6b37] Added |
main.py | 2024-03-01 | David | [dd6b37] Added |
message_history.py | 2024-03-01 | David | [dd6b37] Added |
openai_integration.py | 2024-03-01 | David | [dd6b37] Added |
requirements.txt | 2024-03-01 | David | [c66c8c] Added requirements.txt |
utils.py | 2024-03-01 | David | [dd6b37] Added |
To run the bot, just execute the following command:
python main.py
At the moment the bot is just a prototype so it only has 1 command:
/personality
: Updates the bot's personality based on the provided text. This affects how the bot responds to messages.Clone the Repository
git clone https://github.com/ThatSINEWAVE/DiscordGPT.git
cd chatbot-integration-framework
Ensure you have Python 3.6 or higher installed, then run:
pip install -r requirements.txt
DISCORD_TOKEN=your_discord_bot_token
OPENAI_API_KEY=your_openai_api_key
CHANNEL_ID = YOUR_CHANNEL_ID
Contributions are welcome! Please feel free to fork the repository, make your changes, and submit a pull request.
This project is released under the MIT License. See the LICENSE file for more details.