Bot to use on Discord's servers. Main bot features are fetching users, clans, statistics, clan periodic summary etc. from Wargaming API.
- Install node.js, version
16.0.0
or higher. - Use
npm install
command. - Register Discord Application here.
- Add bot's permissions, generate OAuth URL and use this URL to add bot to the server.
- Generate and copy bot token.
- Register Wargaming Application (mobile) here and copy APP ID.
- Create
.env
file with environment variables in the following format:
DISCORD_TOKEN=INSERT_DISCORD_APP_TOKEN_HERE
WARGAMING_ID=INSERT_WARGAMIN_APP_ID_HERE
WARGAMING_SERVER=INSER_WARGAMING_SERVER
BOT_NAME=INSERT_BOT_NAME_HERE
Wargaming servers: eu
, ru
, asia
, na (type com
instead).
- Use
node index.js
to run script and authenticate bot program.
- Type
{BOT_NAME} tell a joke
for print random joke.
- Type
{BOT_NAME} find: {wows_player_nickname}
for print found users, account ID and URL to wows-numbers stats.
- Type
{BOT_NAME} find clan: {clan_name_or_tag}
for print found clans and URL to wows-numbers page of the clan.
- Type
{BOT_NAME} stats: {wows_player_nickname}
for print user stats. The nickname must be valid to find the appropriate user (I'm working on it to add PR, colors etc.).
- Type
{BOT_NAME} colors
for print color ranges according to statistics.
- Type
{BOT_NAME} help
for print list of available commands.
- I'm using WoWS-Numbers.com for PR formula & colors calculation.
- I'm using Wargaming API for fetching info about players.
- I'm using ICNDb.com for fetching jokes.