badLlama121 / discordBot

discordBot testing area
0 stars 3 forks source link

Implement initial version of string scoring #20

Closed bran-solo closed 5 months ago

bran-solo commented 1 year ago

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 commented 1 year ago

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

bran-solo commented 1 year ago

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 commented 5 months ago

Implemented in #24