0.0
No commit activity in last 3 years
No release in over 3 years
Strawpoll plugin for Cinch.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 0

Runtime

>= 2.3.1, ~> 2.3.1
~> 0.13.7
>= 1.8.3, ~> 1.8.3
 Project Readme

Chatrealm IRC Support tinnvec

cinch-strawpoll

Strawpoll plugin for Cinch. http://strawpoll.me

Installation

In your Gemfile

gem 'cinch-strawpoll'

Don't forget to bundle install

bundle install

Add to your bot config

require 'cinch'
require 'cinch/plugins/strawpoll'
...
bot = Cinch::Bot.new do
  configure do |c|
    ...
    c.plugins.plugins = [
      ...
      Cinch::Plugins::Strawpoll
    ]
    c.plugins.options = {
      ...
      Cinch::Plugins::Strawpoll => {
        repeat_time:    60, # Seconds to wait between poll notifications
        repeat_count:   3   # Total number of poll notifications
      }
    }
  end
end

Usage

!poll <title> | <option>, <option>

Request a strawpoll using <title> and a minimum of 2 <option> separated by commas.

Announcements will be made repeat_count times, one every repeat_time seconds.