This is a Discord bot that allows you to control your Gamocosm server from a text channel. Refer to the Gamocosm api documentation (Gamocosm/Gamocosm issue #98).
Included is a Python wrapper for the Gamocosm API (api.py
). You are free to use it for your own projects.
api.py
Python wrapper for the Gamocosm APIapp.py
Discord.py appcommands.py
All registered commands for the bot as Discord.py Cogs
- Python 3 (>= 3.6 because of f-strings)
- Do
pip install -r requirements.txt
to install packages
- Refer to the Discord.py Docs to create a Bot account and add it to a guild/server
- Copy
config_default.yaml
and rename toconfig.yaml
. Populate with your own configurationserverId
: Gamocosm server idapiKey
: Gamocosm api key (under advanced tab in server settings)discordKey
: The Discord bot api token from step 1discordChannel
: The id for the channel the bot should output messages to. Follow this tutorial
- Type
.help
for a list of commands
Refer to Docstrings and Comments for function documentation. You can add new commands as a class in commands.py
that inherits from Category()