Bedwars Stats Bot for discord programmed in python 3.7.5
- GitClone the repository or download StatsBot1
https://github.com/Anon0x19/Bedwars-Stats-Bot-Discord.git
- Change {TOKEN} with your bots token and save the file.
- Change {API_KEY} with your Hypixel API key (You can obtain this by logging in and doing /api new and then copying and pasting it).
- Install all the modules (all listed in the Procfile)
And its ready to be used!
Note: requirements.txt and Procfile have been already been made. So the bot is ready to be hosted from a plataform such as heroku.
- MacOS/Unix/Linux:
- Badlion Client:
<tail -f "./Library/Application Support/minecraft/logs/blclient/minecraft/latest.log" | grep "ONLINE:">
- Vanilla/Forge:
<tail -f "./Library/Application Support/minecraft/logs/latest.log" | grep "ONLINE:">
- Badlion Client:
- Windows:
- Badlion Client:
<Get-Content "$env:APPDATA\.minecraft\logs\blclient\minecraft\latest.log" -Wait | where { $_ -match "Online:"}>
- Vanilla/Forge:
<Get-Content "$env:APPDATA\.minecraft\logs\latest.log" -Wait | where { $_ -match "Online:"}>
- Lunar Client:
<Get-Content "$env:APPDATA\lunarclient\logs\latest.log" -Wait | where { $_ -match "Online:"}>
- Badlion Client:
Note: For MacOS the code will have to be executed on terminal and for windows you will have to execute it through powershell although you can open notepad, copy paste it and save the file as (name).ps1 and then you can just open that file.
You will have to copy the the output form start to finish so that includes <[time] [Client thread/INFO]: [CHAT] ONLINE:>
and all the players.
- MinuteBrain (Code to obtain the most recent line in the logs)
- Need_Not (Helping out with some issues regarding the Hypixel API)
Notice: This bots code was rushed so optimization and code cleaning is needed