Sha256: bdd25e003297fe441a8fd2e8ae99c4966bcc64acaf60bcdfc9d6d82ca27f5781
Contents?: true
Size: 351 Bytes
Versions: 6
Compression:
Stored size: 351 Bytes
Contents
module Cinch module Plugins class Dice include Cinch::Plugin match 'roll' set :plugin_name, 'dice' set :help, <<EOT .roll Rolls a dice. EOT def new(bot) @bot = bot end def execute(m) score = rand(100) + 1 m.reply("#{m.user.nick} rolls #{score}") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
cogbot-0.1.14 | plugins/dice.rb |
cogbot-0.1.13 | plugins/dice.rb |
cogbot-0.1.12 | plugins/dice.rb |
cogbot-0.1.11 | plugins/dice.rb |
cogbot-0.1.10 | plugins/dice.rb |
cogbot-0.1.9 | plugins/dice.rb |