Skip to content

logwet/gamocosm-discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gamocosm-discord

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.

Contents:

  • api.py Python wrapper for the Gamocosm API
  • app.py Discord.py app
  • commands.py All registered commands for the bot as Discord.py Cogs

Requirements:

  • Python 3 (>= 3.6 because of f-strings)
  • Do pip install -r requirements.txtto install packages

Configuration:

  1. Refer to the Discord.py Docs to create a Bot account and add it to a guild/server
  2. Copy config_default.yaml and rename to config.yaml. Populate with your own configuration
    • serverId: Gamocosm server id
    • apiKey: Gamocosm api key (under advanced tab in server settings)
    • discordKey: The Discord bot api token from step 1
    • discordChannel: The id for the channel the bot should output messages to. Follow this tutorial
  3. Type .help for a list of commands

Documentation

Refer to Docstrings and Comments for function documentation. You can add new commands as a class in commands.py that inherits from Category()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages