At Paranoid we always found it nice to show the users the current population of the server. We also found having to explain connection info to users a little tedious when it happens repeatedly. So me and BloodfallenTear#6685 made a discord bot to help us out!

Our first Bot will display the total population of all of your servers combined. And will also return any message sent to it with connection info for all of your servers.

The second is the Single Population Bot which will display its own population and only its own connection info.

You do not have to use both bots, you can use just the total population or the single server bot. Whatever fits your needs. Setup is actually very easy too.

Download

Download Total Population Bot

Download Single Population Bot

After you’ve extracted the archive you’ll find an .exe inside of the bots – run it once and it’ll generate the configuration folders for you.

https://files.paranoid.gg/explorer_3w45zltzcU.png

Setup Discord Bot

Head on over to this link and click New Application and give it a name

Give your new bot an image if you have one and we now we want to create the actual bot! So click Bot -> Add Bot -> Yes, do it!

Once again give the bot its profile image and set the gateway intents to on just for good measure. Make sure you save your bot.

Now we need to get the bot in our discord

Now go back to the Bot tab and click copy on the token button

Configuring the Bot

Under Discord replace the NULL with the token you just copied

Make sure it’s in quotes!

Now you need the battlemetrics ServerID’s you can find them at the end of the URL for any of the public pages for your servers.

{
  "Tokens": {
    "Discord": "NzcxMzg5Mzc2MTAxNjEzNjI4.X5raVg.-NJ5_WNmdKSlku7_Pmcq_ocDB4M"
  },
  "Bot": {
    "AvatarUrl": null
  },
  "BattleMetrics": {
    "Servers": ["2082241", "2387727", "2800656"]
  }
}

Insert the tokens as I have in the above example and save the file. Ignore changing the AvatarURL from “null”. Navigate back one layer of folders and find the exe from before. Run it again and BLAM! Congratulations, you now have your own Total Population Bot that will return your connection info!

As for the Single Server Bot it’s the same process but just a single Battlemetrics ServerID that you need. If you have any questions don’t hesitate to contact me on discord Nex#0001!

Copyright 2020 Paranoid Network LTD

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Tagged: