Skip to content

Karanpratap7/DISCORD-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sir Yeetalot Discord Bot

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.

Features

  • Classic Message Commands: Use !yeet followed 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

Requirements

  • Node.js (v14 or higher recommended)
  • Discord Bot Token (from Discord Developer Portal)
  • Ollama running locally with LLaMA 3 model installed

Installation

  1. Clone this repository:
git clone <your-repository-url>
cd discord-bot
  1. Install dependencies:
npm install
  1. Create a .env file in the root directory with the following:
DISCORD_TOKEN=your_discord_bot_token_here
  1. Make sure Ollama is installed and running with the LLaMA 3 model:
ollama run llama3

Usage

Start the bot with:

npm start

The bot will connect to Discord and register its slash commands automatically.

Project Structure

  • index.js - Main bot file that handles Discord events and command registration
  • ollama.js - Handles communication with the Ollama API for AI responses
  • commands.js - Alternative command registration script (not actively used)
  • .env - Contains environment variables (not tracked in git)

Security Notes

  • Never commit your .env file or expose your Discord token
  • The bot uses a local Ollama instance for AI, ensuring your prompts stay on your machine

Customization

You can modify the system prompt in ollama.js to change Sir Yeetalot's personality or create an entirely different character.

License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors