fetch spamming ss api
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 48s
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 48s
This commit is contained in:
parent
1f4be74c54
commit
a773488e9b
@ -46,10 +46,6 @@ export class ScoreService {
|
||||
const score = getScoreSaberScoreFromToken(scoreToken, leaderboardToken);
|
||||
const leaderboard = getScoreSaberLeaderboardFromToken(leaderboardToken);
|
||||
const playerInfo = score.playerInfo;
|
||||
const player = await scoresaberService.lookupPlayer(playerInfo.id);
|
||||
if (!player) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Not ranked
|
||||
if (leaderboard.stars <= 0) {
|
||||
@ -60,6 +56,11 @@ export class ScoreService {
|
||||
return;
|
||||
}
|
||||
|
||||
const player = await scoresaberService.lookupPlayer(playerInfo.id);
|
||||
if (!player) {
|
||||
return;
|
||||
}
|
||||
|
||||
await logToChannel(
|
||||
DiscordChannels.numberOneFeed,
|
||||
new EmbedBuilder()
|
||||
|
Reference in New Issue
Block a user