Sign inSign up

radeeyate/discord-aternos

By radeeyate

•Updated over 3 years ago

Discord bot for controlling Aternos Minecraft Servers

Image
1

231

radeeyate/discord-aternos repository overview

⁠discord-aternos

I made a little Discord bot that allows control of an Aternos⁠ Minecraft server.

This bot uses the wonderful Python-Aternos⁠ package and discord.py.

It can only allows certain commands to be by non-administrators, including start and info (including your set prefix, of course), while allowing commands such as restart, cancel, and more.

You can set it up by running this:

git clone https://github.com/radeeyate/discord-aternos.git
cd discord-aternos
pip install python-aternos discord.py python-dotenv

You will need to edit the .env file since I don't really want to give you my Aternos credentials. The following need to be edited:

  • Your bot token
  • Aternos username & password
  • Aternos server domain
  • Admin discord tag
  • Prefix

This is also availble as a Docker image that you can run containerized. To use build the image by running this: docker build -t discordaternos . You can of course replace discordaternos is that command to whatever you want to image to be called. You can then run the image, and you can probably figure that out. As extra, you should probably set an hourly cron job to restart the Docker container since the Discord gateway sometimes likes to randomly disconnect.

If you don't want to build it yourself, you can get it from Dockerhub. To use it, run

docker pull radeeyate/discord-aternos
docker run --env-file /path/to/env/file radeeyate/discord-aternos

Tag summary

Content type

Image

Digest

sha256:f4fcf2fad…

Size

365.1 MB

Last updated

over 3 years ago

docker pull radeeyate/discord-aternos