Class: HackBot::Plugins::ChannelInteraction
- Inherits:
-
Object
- Object
- HackBot::Plugins::ChannelInteraction
- Includes:
- Cinch::Plugin
- Defined in:
- lib/hack_bot/plugins/channel_interaction.rb
Instance Method Summary collapse
Instance Method Details
#hello(m) ⇒ Object
11 12 13 14 |
# File 'lib/hack_bot/plugins/channel_interaction.rb', line 11 def hello(m) user = m.user m.reply "Hello, #{user}! Welcome to #openhackabq!" end |
#nachos(m) ⇒ Object
16 17 18 19 |
# File 'lib/hack_bot/plugins/channel_interaction.rb', line 16 def nachos(m) user = m.user m.reply "I love nachos, too! I'll make you some, #{user}!" end |
#who_info(m, nick) ⇒ Object
21 22 23 24 |
# File 'lib/hack_bot/plugins/channel_interaction.rb', line 21 def who_info(m, nick) user = User(nick) m.reply "#{nick} is #{user.realname}." end |