discord-summarizer-bot
is a Discord bot designed to provide concise summaries of channel conversations using OpenAI's GPT-4. It's built to help users catch up on missed discussions quickly and efficiently.
- Summarizes Discord channel messages over a specified time period.
- Uses OpenAI's GPT-4 for accurate and coherent summaries.
- Easy to deploy and use within any Discord server.
- Customizable summary timeframes.
To install and run discord-summarizer-bot
on your server, follow these steps:
-
Clone the repository:
git clone https://github.com/nybble16/discord-summarizer-bot.git
-
Install the required dependencies:
cd discord-summarizer-bot pip install -r requirements.txt
-
To get your
discord-summarizer-bot
up and running, you'll need to configure your API keys as follows:- OpenAI API Key
- Go to OpenAI's API platform and sign up for an account if you haven't already.
- Once you have an account, navigate to the API section and generate a new API key.
- Set the API key as an environment variable:
export OPENAI_API_KEY='your_openai_api_key'
- Discord Bot Token
- Head over to the Discord Developer Portal.
- Create a new application and add a bot to it.
- Under the "Bot" section, find and copy your bot token.
- Set the token as an environment variable:
export DISCORD_SUMMARY_BOT_TOKEN='your_discord_bot_token'
- OpenAI API Key
-
Confirm that the environment variables are set up:
OPENAI_API_KEY
: Your OpenAI API key.DISCORD_SUMMARY_BOT_TOKEN
: Your Discord bot token.
-
Run the bot:
python bot.py
After inviting the bot to your Discord server, you can use the following commands:
/summary
: Summarizes the last day's messages in all channels./summary 2d
: Summarizes the last 2 days' messages in all channels./summary 6h
: Summarizes the last 6 hours' messages in all channels./summary 5m
: Summarizes the last 5 minutes' messages in all channels.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Distributed under the MIT License. See LICENSE
for more information.
Tomasz Zmarz - @nybble16
Project Link: https://github.com/nybble16/discord-summarizer-bot