subecho / KarmaChameleon

A Simple Karma Bot User for Slack
GNU General Public License v3.0
6 stars 1 forks source link

Issue with the Bot treating "foo++" and "foo ++" as different entities. #10

Closed subecho closed 6 years ago

subecho commented 6 years ago

There was a mistake with the regex and how the messages are presented to the increment and decrement methods in the bot class. Since we just send the message minus the operator, we need to trim the whitespace from the right side of the string when we send it.

subecho commented 6 years ago

Addressed by c8e25052f4a4ec7b05f5c5b7848d1b430736e125.