This plugin provides dice for your channel.
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
- timebomb
- cutwire
timebomb dominikh
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.
How many wires the user has to pick from. Defaults to 6.
This option is an array of channels the timebomb plugin should be enabled in. This is a required option with no default value.
configure do |c|
c.plugins.options[Cinch::Plugins::Timebomb] = {min_duration: 5,
max_duration: 20,
wires: 5,
channels: ["#cinch-bots"]
end