Skip to content

Commit

Permalink
New version release: Bug fixes
Browse files Browse the repository at this point in the history
Added env example
Create README.md
  • Loading branch information
The-Best-Codes committed Aug 20, 2024
1 parent 379c76d commit db7e4e0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .env.example
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
34 changes: 34 additions & 0 deletions README.md
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
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"name": "capybot",
"version": "1.0.0",
"version": "1.0.1",
"description": "Your friendly Capybara Bot is capyble or fulfilling all your Discord needs",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node src/index.js"
},
"keywords": [
"bot",
Expand Down

0 comments on commit db7e4e0

Please sign in to comment.