Class: ChannelInteractions
- Inherits:
-
Object
- Object
- ChannelInteractions
- Includes:
- Cinch::Plugin
- Defined in:
- lib/hack_bot/channel_interaction.rb
Instance Method Summary collapse
Instance Method Details
#hello(m) ⇒ Object
11 12 13 |
# File 'lib/hack_bot/channel_interaction.rb', line 11 def hello(m) m.reply "Hello, #{m.user.nick}! Welcome to #openhackabq!" end |
#nachos(m) ⇒ Object
15 16 17 |
# File 'lib/hack_bot/channel_interaction.rb', line 15 def nachos(m) m.reply "I love nachos, too! I'll make you some, #{m.user.nick}!" end |
#next_meeting(m) ⇒ Object
24 25 26 |
# File 'lib/hack_bot/channel_interaction.rb', line 24 def next_meeting(m) m.reply 'The next meeting will be starting 6:00pm on March 27 at Convivium Coworking (https://goo.gl/34F40H).' end |
#who_info(m, nick) ⇒ Object
19 20 21 22 |
# File 'lib/hack_bot/channel_interaction.rb', line 19 def who_info(m, nick) user = User(nick) m.reply "#{nick} is #{user.realname}." end |