Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude bots from leaderboard #281

Merged
merged 7 commits into from
Aug 14, 2022
Merged

Conversation

KevinBacabac
Copy link
Contributor

#265

I don't have a database to test this ticket

Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In terms of not having a database, shouldn't SQLite be installed due to being found in yarn.lock?

@Picowchew
Copy link
Collaborator

I might as well add that the change would be taking place in the messageCreate listener instead of the leaderboard, since bots shouldn't have a coin balance at all. Bots not appearing in the leaderboard would just be one effect of this.

@Picowchew
Copy link
Collaborator

The issue has been updated just now for clearer specifications; sorry about that!

@KevinBacabac
Copy link
Contributor Author

No problem it's ready to test

@@ -112,6 +113,11 @@ export class MessageCreateListener extends Listener {
return;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This case can be removed, since it is already covered below.

@Picowchew
Copy link
Collaborator

Also, do you mind adding 275813801792634880 as IRC_USER_ID for staging and updating README.md for the new config variable IRC_USER_ID?

Copy link
Collaborator

@Picowchew Picowchew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Picowchew Picowchew merged commit be59ad8 into uwcsc:master Aug 14, 2022
@KevinBacabac KevinBacabac deleted the leaderboard branch August 14, 2022 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants