Added Rock, Paper, Scissors.

This commit is contained in:
2022-10-24 01:55:30 +02:00
parent 29f69fa40a
commit 6428c01e6c
8 changed files with 83 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ function getLeaders(points, user, ping = true, limit = Infinity) {
const username = userKey.split(':')[1] || userKey; // process the points file
if (index === 0) {
return `${style.bold(style.yellow(`${ping ? config.usernamePrefix : ''}${username}`))} with ${style.bold(`${score}`)} points`;
return `${style.bold(style.yellow(`${ping || username === user.username ? config.usernamePrefix : ''}${username}`))} with ${style.bold(`${score}`)} points`;
}
return `${style.bold(style.cyan(`${ping ? config.usernamePrefix : ''}${username}`))} with ${style.bold(`${score}`)} points`;