A savage Discord bot powered by Cerebras AI with function calling and reaction GIF support.
- AI Chat — Cerebras-powered conversational AI with a savage, toxic persona
- Function Calling — Tools for timezone lookup, math evaluation, and reaction GIF selection
- Reaction GIFs — Auto-sends context-aware Tenor GIFs ~80% of the time
- Message History — Per-user conversation memory capped at configurable depth
- Uptime Monitor — Flask health-check endpoint on port 8080
- Clone the repo and create a
.envfile:
CEREBRAS_API_KEY=your_cerebras_api_key
DISCORD_BOT_TOKEN=your_discord_bot_token
MAX_HISTORY=10
- Install dependencies:
pip install -r requirements.txt
- Run the bot:
python main.py
| Tool | Description |
|---|---|
get_current_time |
Returns the current time for a given timezone |
calculate |
Evaluates a math expression |
get_reaction_gif |
Selects a reaction GIF matching conversation context |
Reaction GIFs are stored in data/reaction_gifs.json. Each entry has:
gif_name— Unique identifieremotion— Emotion category (happy, angry, confused, etc.)description— What the GIF depictsai_trigger— Keywords that trigger this GIFgif_url— Tenor view URL for Discord auto-embedtenor_id— Tenor media identifier
CC BY-NC 4.0