class Openra::IRCBot::Plugins::WeeMan
Public Instance Methods
execute(m, user)
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 9 def execute(m, user) m.reply <<-QUOTE.strip.gsub(/\s+/, ' ') #{prefix(user)} #{first.sample} #{second.sample} #{third.sample} #{fourth.sample} QUOTE end
Private Instance Methods
first()
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 18 def first @first ||= Openra::IRCBot.dict('wee_man.first') end
fourth()
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 30 def fourth @fourth ||= Openra::IRCBot.dict('wee_man.fourth') end
prefix(user)
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 34 def prefix(user) if user prefix = Openra::IRCBot.dict('wee_man.prefix.user', user: user) else prefix = Openra::IRCBot.dict('wee_man.prefix.anon') end end
second()
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 22 def second @second ||= Openra::IRCBot.dict('wee_man.second') end
third()
click to toggle source
# File lib/openra/irc_bot/plugins/wee_man.rb, line 26 def third @third ||= Openra::IRCBot.dict('wee_man.third') end