Skip to content
No description or website provided.
Ruby
Find file
Latest commit 015dd47 @dominikh dominikh use cinch 2.0
Failed to load latest commit information.
lib/cinch/plugins use cinch 2.0
LICENSE initial commit
README.md fix readme formatting
cinch-timebomb.gemspec use cinch 2.0

README.md

Timebomb plugin

This plugin provides dice for your channel.

Installation

First install the gem by running: [sudo] gem install cinch-timebomb

Then load it in your bot: require "cinch" require "cinch/plugins/timebomb"

bot = Cinch::Bot.new do
  configure do |c|
    # add all required options here
    c.plugins.plugins = [Cinch::Plugins::Timebomb] # optionally add more plugins
  end
end

bot.start

Commands

  • timebomb
  • cutwire

Examples

timebomb dominikh

Options

:min_duration & :max_duration

These options determine how long a user has time to defuse the bomb. The actual duration is a random value between :min_duration and :max_duration. Defaults to 10 and 30, respectively.

:wires

How many wires the user has to pick from. Defaults to 6.

:channels

This option is an array of channels the timebomb plugin should be enabled in. This is a required option with no default value.

Example configuration

configure do |c|
  c.plugins.options[Cinch::Plugins::Timebomb] = {min_duration: 5,
                                             max_duration: 20,
                                             wires: 5,
                                             channels: ["#cinch-bots"]
end
Something went wrong with that request. Please try again.