A hilarious Discord bot that channels the spirit of Sir Yeetalot, a meme-loving, chaotic knight who responds to your queries with wit and humor. The bot leverages the power of LLaMA 3 AI through Ollama to generate unique and entertaining responses.
- Classic Message Commands: Use
!yeetfollowed by your message to get a response from Sir Yeetalot - Slash Commands:
/yeet [message]- Ask Sir Yeetalot a question or just get a random knightly response/ping- Check if the bot is online with a simple pong response
- Node.js (v14 or higher recommended)
- Discord Bot Token (from Discord Developer Portal)
- Ollama running locally with LLaMA 3 model installed
- Clone this repository:
git clone <your-repository-url>
cd discord-bot
- Install dependencies:
npm install
- Create a
.envfile in the root directory with the following:
DISCORD_TOKEN=your_discord_bot_token_here
- Make sure Ollama is installed and running with the LLaMA 3 model:
ollama run llama3
Start the bot with:
npm start
The bot will connect to Discord and register its slash commands automatically.
index.js- Main bot file that handles Discord events and command registrationollama.js- Handles communication with the Ollama API for AI responsescommands.js- Alternative command registration script (not actively used).env- Contains environment variables (not tracked in git)
- Never commit your
.envfile or expose your Discord token - The bot uses a local Ollama instance for AI, ensuring your prompts stay on your machine
You can modify the system prompt in ollama.js to change Sir Yeetalot's personality or create an entirely different character.
ISC