plugin(points): +/- must come after, closes #34
authorMatthias Hecker <mail@apoc.cc>
Mon, 6 Apr 2020 19:08:55 +0000 (21:08 +0200)
committerMatthias Hecker <mail@apoc.cc>
Mon, 6 Apr 2020 19:08:55 +0000 (21:08 +0200)
commit07a397f63f0c7dc7f53830a57ce9048cfd9efb53
treeb5fca98ca966fafcc8017f276bd2524af2e889c3
parent618df277b7cb7d160ba5c86d1a22298a4741ed5f
plugin(points): +/- must come after, closes #34

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"
data/rbot/plugins/points.rb
lib/rbot/language.rb
test/mock.rb
test/plugins/test_points.rb