Discord bot to speak with my CatAI models.
- Discord Bot
- Python 3.8 or higher
- Selfhosted CatAI (powerful machines are recommended for better performance)
- Clone the repository
- Install the requirements with the following command:
python -m pip install -r requirements.txt
- Fill the
config.yaml
file with your the needed details, see Configuration for more information. - Run the bot with the following command:
python main.py
- Invite the bot to your server & sync the commands with the 2 following commands:
.sync
and
.sync YOUR_GUILD_ID
- Enjoy!
Don't use quotes or double quotes in the values of the configuration file.
# [APP]
app_logo: # String, URL to the app logo
app_name: # String, Name of the app
app_url: # String, URL to the app
app_version: # String, Version of the app
log_file: # String, Path to the log file (Example: ai_bot.log)
# [BOT]
bot_prefix: # String, Prefix for the bot
bot_token: # String, Token of the bot
chat_category: # String, Category ID for the chat channels to be created
dev_guild_id: # String, Guild ID for the development guild
# [AI]
api_endpoint: # String, URL to the CatAI selfhosted API (Example: http://127.0.0.1:3000/api/chat/prompt)
This project is licensed under the GNU License - see the LICENSE file for details.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.