diff --git a/README.md b/README.md index c0a2d21..8f23d46 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,47 @@ -# Minecraft-Serverstats-Discord-Bot -A bot to get Statistics like the Playercount from your Minecraft-Server on your Discord-Server +Hey Thanks for reading me. Warning: My English is not the best + +So the Setup is really easy. + +First install Python3 or make sure it is installed + +First you have to install all Requirements (requirements.txt) + +Then you have to Create a Bot in the Discord-Developer Portal. + +Tutorial: + +than you need to invite the bot to your Discord. + +So its time to edit the bot.py + +Just Enter Your Server-Ip, Port and the Bot-Token: + +``` +serverip = "play.spaffel.de" +port = "25565" +bottoken = "your-bot-token" +``` + +Move all Files (also data.csv) to your Server. (Linux Server to run the bot on) + +Grab your Terminal and cd to the Directory of the Bot. + +You can use Screen to run the bot 24/7: + +``` +screen -s Stats-Bot python3 bot.py +``` + +If its running press ctrl + a + d + +**Usage on Discord:** + +After the Setup the bot will take 2-3 Hours to collect the first data. + +After that you can use: + +**!serverstats** To get Statistics about the Playercount and Ping + +**!pcount** to get Information from Now + +I hope this Explains Enough if you have problems feel free to Contact me: Spaffel#0581 \ No newline at end of file diff --git a/bot.py b/bot.py new file mode 100644 index 0000000..d9b6c8f Binary files /dev/null and b/bot.py differ diff --git a/data.csv b/data.csv new file mode 100644 index 0000000..4cdbb57 --- /dev/null +++ b/data.csv @@ -0,0 +1,12 @@ +Datum,Uhrzeit,playercount,latenz,spieler +2021-10-13,23:59,57414,137.086,no +2021-10-13,23:59,57418,149.066,no +2021-10-13,23:59,57412,116.029,no +2021-10-14,00:23,0,10.545,no +2021-10-14,00:28,0,51.051,no +2021-10-14,00:28,0,23.021,no +2021-10-14,00:29,0,64.043,no +2021-10-14,00:33,0,45.001,no +2021-10-30,23:14,6,70.061,play.spaffel.de +2021-10-30,23:16,6,34.272,play.spaffel.de +2021-10-30,23:16,6,45.269,play.spaffel.de