For Discord, create a bot and give it the application.commands
and bot
scopes.
It will also need to be able to manage channels, expressions, messages, threads, and be able to read message history.
-
poetry install
-
Create a
.env
file and populate it with:
OPENAI_API_KEY=<...>
- an OpenAI API keyANTHROPIC_API_KEY=<...>
- an Anthropic API keyDISCORD_TOKEN=<...>
- the token of your Discord bot, if using Discord
-
Create a config file. The one in
configs/example.toml
is a good starting point. -
poetry run python fun_game/main.py --config <path/to/your_config.toml>