Sha256: 9e7647587f00a1c80dd45a28d6c993872dce72dbdd279915697c7e0ccf3e2aed
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cogbot-0.0.3 | plugins/dice.rb |
cogbot-0.0.2 | plugins/dice.rb |