-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
AI_API_KEY=sk-**** # Obtain from https://platform.openai.com/api-keys | ||
AI_BASE_URL=https://api.openai.com/v1 | ||
BOT_AI_MODEL=gpt-4o | ||
BOT_CLIENT_ID=XXXXXXXXXXXXXXXXXXX | ||
BOT_CLIENT_SECRET=***_XXXXXXXXXXXXXXXXXXX | ||
BOT_TOKEN=XXXXXXXXXXXXXXXXXXX | ||
BOT_PUBLIC_KEY=XXXXXXXXXXXXXXXXXXX | ||
BOT_INSTALL_URL=https://discord.com/oauth2/authorize?client_id=XXXXXXXXXXXXXXXXXXX | ||
WEATHER_API_KEY=**** # Obtain from https://openweathermap.org/ | ||
OWNER_ID=XXXXXXXXXXXXXXXXXXX # Obtain from your user profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters