Faceit Stats bot will help you find out brief and detailed statistics about player, such as the count of wins, winrate, skill level, average K/D, etc. Bot is very easy to use.
Clone the repository (you will need git
installed)
$ git clone https://github.com/itzme1on/faceitstats
$ cd faceitstats
Install Node.js v12+
if you haven't already then install dependencies:
$ npm install
Go to src
directory and open config.json
file. Here you need to insert your Discord Bot token and Faceit API access token. In order to get an Faceit API access token, you need to have a Faceit account, then you must log in and create a new app. Enter the name of your application and add description. Then go to API KEYS
and add a new api key. In type
parameter select Server side
and click Create
. Copy your api key and paste it into faceitapitoken
. Don't forget to insert the token of your Discord bot into token
. If desired, you can also change the bot status and commands prefix.
You should open the console in the bot folder, than go to src
and use node bot.js
$ cd faceitstats
$ cd src
$ node bot.js
Command | Description |
---|---|
fs!help | Open help section and displays all bot's commands |
fs!player [nickname] | Display short player statistic |
fs!stats [nickname] | Display detailed player statistic |
Package | Version | Link |
---|---|---|
Node.js | v12 |
*click* |
discord.js | v12 |
|
faceit-js | v0.0.3 |
|
faceit-js-api | v0.3.3 |
|
request | v2.88.2 |