A Discord Bot integrated with ChatGPT to chat and also stream YouTube urls.
- Responds to user messages in Discord channels using !chat.
- Keeps a log of previous conversation history local to each channel.
- Ability to join discord calls and stream YouTube urls for playback.
Clone the repository:
https://github.com/csummerson/DiscordGPT.gitInstall dependencies:
pip install -r requirements.txtInstall FFMPEG
In settings.toml, input your
- Discord Token
- OpenAI API Key
- Owner ID (to limit use of /destroy)
Also make sure to give the bot
- A status
- Personality prompt
py bot.pyThis was a project originally started in around 2022, when I wanted to try and create something to integrate with AI. After originally trying to make it with C# (my most comfortable language), I later shifted over to python due to better libraries and ease of use. I also use a different version of this bot to watch my YouTube and Twitch channels and send notifications to specific channels in discord servers, though this functionality has been cut since it is unlikely to be useful to someone wanting a Discord bot.