Pyr0sec / mc-aternos-discord

Control your aternos server right through discord chat ⚡
MIT License
5 stars 3 forks source link
aternos bot discord minecraft server

MC Aternos discord bot

Overview

i am assuming if you are gonna use this repo , you already have a mc aternos server or you know about mc aternos. This is a discord bot which can start or stop your minecraft aternos server by using customisable commands. The main purpose behind making this script was so that my friends can start or stop our smp minecraft server right from discord without me logging into my aternos account and starting it manually everytime.

Installation

intended to be used on vps but its your choice.

Now, the installation is done we need to setup a bot account in discord developer portal so you can connect this code with discord.

Setting up a bot account in discord developer portal

Instead of me explaining it here in text you should watch this portion of the video, which guides you in depth on how to setup a bot account in discord developer portal.

URL: https://www.youtube.com/watch?v=fU-kWx-OYvE?t=68

Timestamp: (1:08 to 4:39)

Now that this is done, we need to configure the code according to our details before actually starting the bot.

Configuration

Commands

Note(VERY IMPORTANT): this bot will only work in a channel with the name bot-cmnds , yea so you need to make a new channel named bot-cmnds and send commands there only. sorry for this but i made this script specifically for my server and i am too lazy to change it now so you can customize it your way if u want.

Deploy on Heroku (free ($0/month) dyno)

Best solution might be to host this bot on herokuapp. so you need to follow these steps.

Deploy

Screenshots

Pasted image 20220609232650

Pasted image 20220609233552

Note: when you send the command ?server_start it may take a few minutes for the server to actually start because aternos is a free service so it usually puts you up in a queue and then you have 5 minutes to join until the server stops automatically. so you should usually wait for 2-3 minutes after the command and then join your minecraft server.

Hope this helps ❤

Open to any suggestions 😊

Just message me @Pyr0sec 🐤

"Support a caffeine addict"