Skip to content

Open source code for BestCodes Discord bot, CapyBot

License

Notifications You must be signed in to change notification settings

The-Best-Codes/capybot

Repository files navigation

CapyBot

CapyBot is a Discord bot with OpenAI integration, featuring various commands and AI-powered conversations.

Features

  • Ping command
  • Weather information
  • Random jokes
  • Capybara facts
  • Dice rolling
  • AI-powered conversations using OpenAI's GPT-4o

Setup

  1. Clone the repository
  2. Install dependencies: npm install
  3. Create a .env file with your Discord bot token, OpenAI API key, and Weather API key
  4. Start the bot: npm start

Commands

  • /ping: Ping the bot
  • /weather <location>: Get weather information for a location
  • /joke: Get a random joke
  • capyfact: Get a random capybara fact
  • /roll [sides]: Roll a die (default: 6 sides)
  • /image [prompt]: Generate an image using pollination AI

To chat with the AI, mention the bot in your message.

License

MIT