A Discord bot that summarises chat conversations using Google's Gemini AI.
/summariseslash command to summarise recent messages- Optional parameter to specify number of messages (1-100, default: 10)
- Uses Google Gemini for intelligent summarisation
- Ignores bot messages for cleaner summaries
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile from the example:cp .env.example .env
-
Fill in your API keys in
.env:DISCORD_TOKEN: Your Discord bot tokenGEMINI_API_KEY: Your Google Gemini API key
-
Run the bot:
python main.py
- Go to Discord Developer Portal
- Create a new application
- Go to the "Bot" section
- Create a bot and copy the token
- Go to Google AI Studio
- Create a new API key
- Copy the key
Once the bot is running and added to your server:
- Use
/summariseto get a summary of the last 10 messages - Use
/summarise messages:20to summarise the last 20 messages (max 100)