Skip to content

cinchrb/cinch-timebomb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages