No commit activity in last 3 years
No release in over 3 years
A Cinch plugin to count +1, scores are saved in yaml file for persistence.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 2
 Project Readme

Cinch YAML score plugin

Code Climate

A Cinch plugin to count +1, scores are saved in yaml file for persistence.

Installation

First install the gem by running:

gem install cinch-yaml-score

Then load it in your bot:

require "cinch"
require "cinch/plugins/yamlscore"

bot = Cinch::Bot.new do
  configure do |c|
    c.plugins.plugins = [Cinch::Plugins::YamlScore]
    # The following line is optional, if committed there will be no message.
    c.plugins.options[Cinch::Plugins::YamlScore] = { warn_no_user_message: "User %s is not in the channel, who do you want to score?" }
  end
end

bot.start

Commands

!scores
!score <user>
<user>[,:]? [+-]1
<user>[,:]? ?[+-]{2}$