Sha256: c3b127d9414c42d58980108092c9ea69d4c0bb045f3258571c561abc1d0908cc
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
class Popcorn < Linkbot::Plugin def self.on_message(message, matches) quotes = ['http://i.imgur.com/qlRu3.gif', 'http://i.imgur.com/DDMBW.gif', 'http://i.imgur.com/SbyLU.gif', 'http://i.imgur.com/y8F8s.gif', 'http://i.imgur.com/lozGr.gif', 'http://i.imgur.com/YG6vv.gif', 'http://i.imgur.com/IUoJx.gif', 'http://i.imgur.com/lae9h.gif', 'http://www.strangecosmos.com/images/content/167278.gif', 'http://i.imgur.com/enRL0.gif', 'http://i.imgur.com/QfkRE.gif', 'http://i.imgur.com/kXfy9.gif', 'http://i.imgur.com/ZDdhJ.gif', 'http://www.threadbombing.com/data/media/2/scarjo_popcorn.gif' ] quotes[rand(quotes.length)] end def self.help "!popcorn - Everyone loves popcorn" end Linkbot::Plugin.register('popcorn', self, { :message => {:regex => /!popcorn/, :handler => :on_message, :help => :help}, :"direct-message" => {:regex => /!popcorn/, :handler => :on_message, :help => :help} } ) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protolink-0.2.8 | example/linkbot/plugins/popcorn.rb |