Player counter DISCORD BOT!

Player counter DISCORD BOT! 1.5

169fec25bb541ac29619f2711458ecf4.png



Easy config! Add unlimited servers to the playercount (or you can host the bot multiple times and have a bot for each server you own).


JSON:
{
    "BotToken": "",
    "BotStatusText": "{usersOnline} players online",
    "PLAYING_LISTENING_STREAMING_WATCHING": "WATCHING",
    "Servers": [
        {
            "IP": "138.99.211.16",
            "RconPort": 32338,
            "AdminPassword": ""
        },
        {
            "IP": "138.99.211.16",
            "RconPort": 32338,
            "AdminPassword": ""
        }
    ]
}

Pre-requesites: - Download and install NodeJS https://nodejs.org/dist/v12.13.1/node-v12.13.1-x64.msi

- Once node is installed open a command prompt (console), type or copy this text and hit enter: npm install --global pm2 (that will manage the webserver once you get the bot working, PM2 = Process Manager 2)

To take into account: if any file inside the bot's folder gets modified, it will be restarted to apply changes in config, so please do not add any databases inside that folder!




CREATE DISCORD BOT (source: https://www.howtogeek.com/364225/how-to-make-your-own-discord-bot/) Head over to Discord’s bot portal, and create a new application. https://discordapp.com/developers/applications/(edited)




You’ll want to make a note of the Client ID and secret (which you should keep a secret, of course). However, this isn’t the bot, just the “Application.” You’ll have to add the bot under the “Bot” tab.




Once you get your bot, click the bot button and copy the token. This thing needs to be pasted inside the BotToken bracket in bot's config.




Once your config is finished, double click the start file and you will see your bot working!


To invite the bot to your server use this link, and replace YOUR_CLIENT_ID_HERE by your client id (find in the app you created some steps before) https://discordapp.com/oauth2/autho...LIENT_ID_HERE&scope=bot&permissions=268725304
Author
Faka
Downloads
2
Type
Digital product
License duration
999 Years
Price
25.00 EUR
Renewal price
0.00 EUR
Views
580
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Faka

Latest updates

  1. Important fix

    Error where player count was wrong sometimes was fixed
Top