botpop/plugins/example.rb
2015-08-24 20:03:53 +02:00

15 lines
405 B
Ruby

class MyFury < Botpop::Plugin
include Cinch::Plugin
match(/!whatkingofanimal.*/, use_prefix: false, method: :exec_whatkingofanimal)
HELP = ["!whatkingofanimal", "!animallist", "!checkanimal [type]"]
ENABLED = config['enable'].nil? ? false : config['enable']
CONFIG = config
def exec_whatkingofanimal m
m.reply "Die you son of a" + ["lion", "pig", "red panda"].sample + " !!"
end
end