radeeyate / discord-aternos

A discord bot for controlling aternos servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

discord-aternos

⚠️ WARNING ⚠️ Using this has a chance of getting you permanently banned from Aternos. I highly recommend that you use backups. Also, this bot is outdated and will not work with newer version of Python-Aternos. I'll probably fix this in the future.

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

About

A discord bot for controlling aternos servers


Languages

Language:Python 89.9%Language:Shell 7.7%Language:Dockerfile 2.4%