Skip to content

Releases: GravityWolfNotAmused/PlayerCountDiscordBot

Attempt to fix crash from Steam not being reachable.

14 Mar 23:16
Compare
Choose a tag to compare
1.0.3

Changed to include full project, so others can make changes.

Crash Logging Fixed

10 Feb 06:11
Compare
Choose a tag to compare
Fix to crash logging

I messed up the path, and I want to print message reguardless of IOException thrown by File#CreateText

People claimed there is crashing.

07 Feb 18:21
Compare
Choose a tag to compare

There are some users who had mentioned to me that the bots are crashing throughout the day, so I have tried to get that information and spit it out to a text files, so I can fix this issue. Please report your crash logs to the repositories Issues tab.

I became bored, and I finally had time....

27 Dec 03:43
Compare
Choose a tag to compare

Many times in the past I was asked where someone could download, or get V++'s player count bots, so I decided to make a bot that allows you to do only that. Source code is in the repository if you wish to see it. It requires some work to get started.

Run the bot once for Config.json

Requirements:

.Net Core 3.1

Notes:

AntiVirus software may stop the executable from running.

Getting a Steam API key

In order to get a steam API key, you will need a domain to link it to. Trying looking into Google's domain site. After you have gotten a domain navigate to Steam'd Web API Key Register, and get your Steam API Key. Copy your Key and put it in your config file by replacing SteamAPIKeyHere with your Steam API Key.

image

image

Creating a bot(s)

You must repeat this step for each server you wish to track.

First, navigate to Discord's Developer Portal, and create a new Application by selecting New Application in the top right of the page, and give you application a name:

NewApplication

After you have created an Application for your discord bot, you will need to navigate to the Bot tab, and click Add Bot:

AddBot

After you have created your bot and named it, you will need to copy the bots Token into your config by replacing DiscordTokenHere with your bots token.

image

image

Configuring Server's

After you have added your Steam API key, and your bot's token you must add the botAddress, this address is your query address for the server. This is so we know what game server's player count to display in the status of each bot. In order to configure the bot to display the player count, you must add the IP, and the Port in the format Address:Port ex. 23.23.233.233:27015 where 127.0.0.1:2532 is located. This address is NOT the connection address.

image

After all of the data has been added to the Config.json, and you have saved the file you may run the application. All logging is tied behind _isDebug variable in the Config.json. Please report any issues to Issues tab.