This is a Discord bot written in Node.js.
It serves the channel data on a Battle.net users Call of Duty Warzone career with simple commands.
The bot also saves the data of the users that has run the command in MongoDB to update a leader board.
The leader board is accessible through the !leaderboard
command.
Replies from the bot comes as an "embed", a richer type of message:
Big thank you to the project over at the node Call of Duty API wrapper for providing an easy to use API wrapper.
To use this bot you need:
- an Activision account
- Node.js installed.
- a Discord developer account with a bot user created
-
- to add the bot account to your server (also covered in the link above).
- a MongoDB account, it's free!
- Clone this repository to a folder.
- Enter the values of your Activision, Discord bot and MongoDB accounts in the file called "config_EXAMPLE.json".
- Open the folder with your favorite command line tool and run the command
npm install
- After that is done run the command
node server.js
- The server will reply with a "Ready!" when it is ready.
To test that everything is working I suggest that you type in !wins <player_id>
.
This command both loads data from the CoD API and pushes data to the database. If you get no error there you should be good to go!
The commands available and their respective usage is best seen by using the !help
command.
This lists all commands and how they are used together with a short but silly description.