Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
/ beatleader-score-bot Public archive

This is a discord bot for tracking the scores of specified users on the BeatLeader board and posting embed messages in the specified discord channel.

Notifications You must be signed in to change notification settings

m1xVR/beatleader-score-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

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.

General slash commands:

  • /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.

Other commands:

  • !bsr [mapcode] -> same as /bsr

Installation

This bot runs on node.js.

  1. Install node.js
  2. Run npm install and make sure it succeeds
  3. 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
  1. Run node deploy-commands.js
  2. Run node . to run the bot!

About country monitoring:

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 monitoring
  • RANK_TOP -> number of ranks for monitoring
  • RANK_TOP_COUNTRIES -> list of countries to monitoring
  • NAME_RANK_TOP -> custome leaderboard name for message

Previews

Preview of score message:

img

Preview of map details message:

img

Preview of country rank change message:

img

About

This is a discord bot for tracking the scores of specified users on the BeatLeader board and posting embed messages in the specified discord channel.

Topics

Resources

Stars

Watchers

Forks