This is a discord bot for tracking the scores of specified users on the BeatLeader board and posting embed messages in the specified channel.
The score will be published when one of the conditions is met:
- top 10 score on the ranked map;
- top 8 score of personal ranked scores;
- top 100 score on the ranked map and top 25 ranked score of personal scores.
* criteries can be changed in any direction, you can also make unconditional scores posting
Also bot can monitoring change ranking of top N players of county or some countries.
/link [userid]
-> link a player's account to monitoring./unlink [userid]
-> unlink a player's account from monitoring./bsr [mapcode]
-> show map details from a BeatSaber.
!bsr [mapcode]
-> same as /bsr
This bot runs on node.js.
- Install node.js
- Run
npm install
and make sure it succeeds - Set up your
config.json
:
- set
BOT_TOKEN
-> Discord bot TOKEN - set
clientId
-> Discord APPLICATION ID - set
guildId
-> Discord Guild ID - set
channelId
-> Discord Channel ID - channel where scores messages will be posted
- Run
node deploy-commands.js
- Run
node .
to run the bot!
By default, monitoring of the top 50 players from the CIS countries is set. Monitoring is disabled.
Important variables:
ENABLE_COUNTRY_RANKCHANGE_MON
-> enable/disable monitoringRANK_TOP
-> number of ranks for monitoringRANK_TOP_COUNTRIES
-> list of countries to monitoringNAME_RANK_TOP
-> custome leaderboard name for message
Preview of score message:
Preview of map details message:
Preview of country rank change message: