Project

lita-poll

0.0
No commit activity in last 3 years
No release in over 3 years
Plugin that enables polling functionality for a lita bot.
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
>= 3.0.0

Runtime

>= 4.2.1
 Project Readme

lita-poll

Plugin that enables polling functionality for a lita bot.

Installation

Add lita-poll to your Lita instance's Gemfile:

gem "lita-poll"

Usage

Poll commands are prefixed with 'poll'.

Created topics are given a 3-hex id and stored in redis.

The following commands are available to all users:

  • poll list - List existing polls
  • poll make [topic] - Create a new poll on [topic]
  • poll option [pollId] [option] - Add [option] to poll with [pollId]
  • poll info [pollId] - Shows information on poll with [pollId]
  • poll vote [pollId] [optNum] - Vote for [optNum] on poll with [pollId]
  • poll tally [pollId] - Tally poll with [pollId]

The following commands are only available to members of the poll_admins group:

  • poll clear - Clear existing polls
  • poll complete [pollId] - End poll with [pollId]

License

MIT