A simple tool to serve your own discord bot, so you can manage an Aternos server from discord.
- Git clone this repository
- Install it using either:
- Copy, paste and execute this command inside the project folder:
pip install -r requirements.txt
- Alternatively you can create a virtual environment using
python -m venv venv
and thensource venv/bin/activate
to finallypip install -r requirements.txt
- Copy, paste and execute this command inside the project folder:
- Setup a Bot Account
- You'll need the Bot Token for setting up the Bot
- Execute using this command inside the project folder :
python3 Bot.py
Note: When running Bot.py
for the first time, you'll be prompted to enter your Aternos account and bot token. You'll need to run python3 Bot.py
again after you finish setting your information.
- Should you ever need to change the information you can edit the
.env
directly or delete it and runBot.py
again.
Before following the instructions, make sure you have the following installed:
sudo apt-get install libxml2-dev libxslt-dev python-dev
sudo apt-get install python3-lxml python-lxml
sudo apt-get install python3-wheel
sudo apt-get install python3-tk
- Git clone this repository
- Install it using
pip3 install -r requirements.txt
inside the folder- NOTE: This may take a while even on higher end Pi's
- Setup a Bot Account
- You'll need the Bot Token for setting up the Bot
- If you don't have a GUI:
- Create a
.env
file in the following format:BOT_TOKEN= DISCORD_BOT_TOKEN USERNAME_C= ATERNOS_USERNAME PASSWORD_C= ATERNOS_PASSWORD
- Create a
- Setup Chromium
sudo apt-get install chromium-browser
sudo apt-get install chromium-chromedriver
- In
connect_and_launch.py
, change driver executable path to'/usr/lib/chromium-browser/chromedriver'
- Run the bot with
python3 Bot.py
- Python 3.7 or higher
- A Discord server for which you have the rights to add a bot
- An Aternos account
- --launch
- --status
- --info
- --players
- --stop
- --help
Cloud hosting this bot would require some workarounds as Aternos recognizes you are connecting from a data center and prompts for a captcha test.