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

Implement initial version of string scoring #20

Closed
bran-solo opened this issue Oct 11, 2023 · 3 comments
Closed

Implement initial version of string scoring #20

bran-solo opened this issue Oct 11, 2023 · 3 comments

Comments

@bran-solo
Copy link
Collaborator

Base requirements:

  1. Persistent store keeps track of scores of all phrases.
  2. 'string' followed by ++ increments score for that phrase.
  3. 'string' followed by -- decrements score for that phrase.
  4. '!score ' should reply with the score for that phrase.

Initial version will not have any sort of filtering / spam protection.

"One blocked message" logic should apply to queries triggering this.

Score needs to persist even when the bot goes offline and comes back online later. I'd be fine with just storing dead simple scores in a flat file but if you want to go nuts and record when/who voted for what to do more intricate stuff with stats, go nuts.

@zippy1981
Copy link
Collaborator

@bran-solo I didnt implement 'one blocked message' logice here. Does it not score if 'one blocked message' happens?

@bran-solo
Copy link
Collaborator Author

As currently implemented it only applies to !s. Why don't we make it apply for all queries on the bot? (I can get off my ass and do more code changes if you'd like)

@zippy1981
Copy link
Collaborator

Implemented in #24

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

No branches or pull requests

2 participants