13 lines
245 B
Ruby
13 lines
245 B
Ruby
|
# coding: utf-8
|
||
|
class Caffe
|
||
|
include Cinch::Plugin
|
||
|
|
||
|
match /caff(è|e)/
|
||
|
|
||
|
def execute(m)
|
||
|
users = [ "qup", "imega", "gresci" ]
|
||
|
requests = [ "andiamo al bar?", "caffè?", "bar?" ]
|
||
|
m.reply users.sample+": "+requests.sample
|
||
|
end
|
||
|
end
|