Giter Site home page Giter Site logo

nightmaregodss / aternos-on-discord Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mekolaos/aternos-on-discord

0.0 0.0 0.0 96 KB

A Discord Bot to manage a minecraft server on Aternos.

License: GNU General Public License v3.0

Python 100.00%

aternos-on-discord's Introduction

Aternos On Discord

Build Status

A simple tool to serve your own discord bot, so you can manage an Aternos server from discord.

Getting Started

Windows/Mac/Linux (x64)

  1. Git clone this repository
  2. 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 then source venv/bin/activate to finally pip install -r requirements.txt
  3. Setup a Bot Account
    • You'll need the Bot Token for setting up the Bot
  4. 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 run Bot.py again.

Raspberry Pi (ARM)

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
  1. Git clone this repository
  2. Install it using pip3 install -r requirements.txt inside the folder
    • NOTE: This may take a while even on higher end Pi's
  3. Setup a Bot Account
    • You'll need the Bot Token for setting up the Bot
  4. 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
  5. Setup Chromium
    1. sudo apt-get install chromium-browser
    2. sudo apt-get install chromium-chromedriver
    3. In connect_and_launch.py, change driver executable path to '/usr/lib/chromium-browser/chromedriver'
  6. Run the bot with python3 Bot.py

Prerequisites

  • Python 3.7 or higher
  • A Discord server for which you have the rights to add a bot
  • An Aternos account

Discord Commands

  • --launch
  • --status
  • --info
  • --players
  • --stop
  • --help

Cloud Hosting Note

Cloud hosting this bot would require some workarounds as Aternos recognizes you are connecting from a data center and prompts for a captcha test.

aternos-on-discord's People

Contributors

dependabot[bot] avatar mekolaos avatar saharshdanerd avatar thebestandgreatest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.