Skip to content

A Discord bot serving the channel with Call of Duty Warzone data

License

Notifications You must be signed in to change notification settings

jocke45/node-server-cod

Repository files navigation

Discord bot for CoD Warzone using node.js

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: wins

Big thank you to the project over at the node Call of Duty API wrapper for providing an easy to use API wrapper.

Installation

prerequisites

To use this bot you need:

Yes, I have all of that already. How do I install?

  1. Clone this repository to a folder.
  2. Enter the values of your Activision, Discord bot and MongoDB accounts in the file called "config_EXAMPLE.json".
  3. Open the folder with your favorite command line tool and run the command npm install
  4. After that is done run the command node server.js
  5. 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!

Usage

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.

help

Screenshots

!wins

wins

!kills

kills

!leaderboard

leaderboard

!fails

fails

About

A Discord bot serving the channel with Call of Duty Warzone data

Resources

License

Stars

Watchers

Forks