Skip to content

tinnvec/cinch-strawpoll

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

About

Cinch plugin for Strawpoll.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages