summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/points.rb
AgeCommit message (Collapse)Author
2020-04-13plugin(points): forgot one special case, see #34Matthias Hecker
Tokens that include itself ++/-- are now ignored as well.
2020-04-13plugin(points): new message parser, see #34Matthias Hecker
2020-04-12plugin(points): disregard self after stripping color codesMatthias Hecker
2020-04-11plugin(points): strip/ignore some terms closes #34Matthias Hecker
- strip color/bold codes in terms - ignore terms with ++/-- in them
2020-04-06plugin(points): +/- must come after, closes #34Matthias Hecker
This modifies the karma/points plugin to ignore increment/ decrement suffixes. `--SOMETHING` is more trouble than its worth, people will write --NAME as a signature, or paste a command line argument, e.g. `ls --sort time` which causes issues. I also added tests for the points plugin, the plan is to make the plugin testing easier more "rubionic"
2015-12-15Improvements to the points pluginEric Sorenson
This commit makes a couple of improvements the points plugin: - added a 'pointsdump' command to show everything in the registry, not just the best and worst - fixed Hash#index deprecation warnings under ruby >1.9 - made nicer messages when displaying stats on an empty registry
2015-12-15Renames the 'karma' plugin to a 'points' systemEric Sorenson
Prior to this commit, rbot used a "karma" system for keeping track of user points. This phrasing, while widespread, is unnecessarily appropriationist. This commit renames the plugin to a more neutral "points" system, accomplishing exactly the same goal without using culturally problematic language. For more background please read: http://bit.ly/1MfLmce