Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 3.2 KB

README.md

File metadata and controls

68 lines (41 loc) · 3.2 KB

SteamStatsDiscordBot

This is a bot I am working on that pulls information from Steam, OpenDota, and maybe others in the future to give information.

Commands

!ping to see if the bot is online.

!ping

!help to see available commands.

!help

!gethero <hero-name> to see hero info.

!gethero

!getitem <item-name> to see item info.

!getitem

!dotaprofile <steam id (custom or not)> to get basic dota info.

!dotaprofile

!csgostats <steam id (custom or not)> to get csgo info.

!csgostats

!banstatus <steam id (custom or not)> to get ban info.

!banstatus

!randtablenum <Line> <Min> <Max> <Number Of Numbers> <Repeats(true or false)> to get a random number from the AP Stats Table.

!randtablenum

!playercounts to see how many players are on steam and in steam games.

!playercounts

!dotaleaderboards to see the current Dota 2 MMR leaderboards.

!dotaleaderboards

!mmrconversion to see the approximate Dota 2 MMR conversion table.

!mmrconversion

Anti-Spam

The bot only accepts commands every 5 seconds for each user, so multiple people can send 1 command each within 5 seconds, but a single person can't send commands more than 1 per 5 seconds.

Setup

Create a file named auth.json in the same directory as bot.js. It should consist of

{
   "token": "discord-bot-token",
   "steamKey": "steam-api-key",
   "adminID": "admin-discord-id"
}

You can get a steam api key here.

Create a discord bot here.

Find your discord id with this guide.

The bot refreshes dota data once a week, but it can be manually refreshed by !refreshdotadata. Only the admin of the bot defined in auth.json can use this command. This data is pulled from this repository.