A plugin for Ruboty which manage members' karma.
Add this line to your application's Gemfile:
gem 'ruboty-karma'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruboty-karma
@ruboty @name ++
@ruboty will increase @name's karma.
If you want to make @ruboty to say other response, you can use RUBOTY_KARMA_ADD.
ex
export RUBOTY_KARMA_ADD=%s got %d karma total! Awesome!
You can use ruboty-replace
to use shortcut commands.
Register
@ruboty: replace thx @?([^ :]+) with @ruboty @\1 ++
Use
thx @name (you can write message here)
@ruboty list karma
@ruboty will show you list of members' karma.
If you don't intend to mention others, you can list with -q
or --quiet
.
@ruboty list karma -q (or @ruboty list karma --quiet)
Names on the list will be separated with space and it won't disturb anyone.
# not-quiet
hkdnet : 1
# quiet
h k d n e t : 1
It doesn't look smart, but you may need this.
If you want list to be always quiet, you can use ruboty-replace
.
Register
@ruboty: replace list karma with list karma -q
Bug reports and pull requests are welcome on GitHub at https://github.com/hkdnet/ruboty-karma. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.