erajtob/discosm-bot

By erajtob

Updated 12 months ago

Discord bot server for Gamocosm to manage Gamocosm Minecraft server from Discord.

Image
0

44

discosm-bot

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.pyDiscord.py app
  • commando.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 env-defaults.txt and rename to .env. 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
    • logChannel: The id for the channel the bot should output all LOG 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 commando.py

Docker Pull Command

docker pull erajtob/discosm-bot