Skip to content

A discord bot for relaying admin commands from a staff channel to some minecraft servers

License

Notifications You must be signed in to change notification settings

irunatbullets/sculk-disfabric-relay-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sculk

Sculk is a discord bot that is designed to interact with my version of DisFabric. It currently supports three commands.

  • !uptime will let you know how long sculk has been running.
  • !console ban <mc username> <reason>
  • !console pardon <mc username>
  • !channel add <mc_server_channel_id>
  • !channel remove <mc_server_channel_id>

Upon reading the !console commands from a staff channel, sculk will relay the commands to any defined Minecraft server channel and then report the result back to the staff channel.

Setup

I removed requirements.txt because every system I've installed this on has had dependency issues, so the first step is to install pip and then:

pip install discord
pip install json5

Along with a BOT_TOKEN environment variable set, Sculk needs a config.json5 file which contains the following (note the comments, which make this file a bit easier to maintain when you have lots of minecraft servers):

{
  "channels": {
    "mc_servers": [
      12345678, // Channel name
      91234567, // Channel name
      87654321  // Channel name
    ],
    "staff": 567345678,
    // How long to wait for a response from mc_servers
    "timeout": 2.0
  },
  "roles": [
    898760987, // OP
    358853689  // Moderator
  ]
}

Features coming soon (if they're useful)

  • !whois <discord id|mc username> to see the relationship between discord and Minecraft accounts, which can be useful for banning or investigating teams of griefers.

(Actual commands TBD)

About

A discord bot for relaying admin commands from a staff channel to some minecraft servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages