Class: Waylon::Skills::Fun
- Inherits:
-
Waylon::Skill
- Object
- Waylon::Skill
- Waylon::Skills::Fun
- Defined in:
- lib/waylon/skills/fun.rb
Overview
A place for some builtin fun
Instance Attribute Summary
Attributes inherited from Waylon::Skill
#request, #route, #sense, #tokens
Instance Method Summary collapse
-
#hello ⇒ Object
Responds to “hello” in less boring ways.
Methods inherited from Waylon::Skill
#acknowledgement, #codify, config_namespace, #details, #initialize, #mention, #message, #named_tokens, perform, queue, #react, #reply, #reply_with_blocks, route, #threaded_reply
Methods included from BaseComponent
Constructor Details
This class inherits a constructor from Waylon::Skill
Instance Method Details
#hello ⇒ Object
Responds to “hello” in less boring ways
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/waylon/skills/fun.rb', line 15 def hello responses = [ "Hello there!", "Hi!", "Hi, how's it going?", "How can I be of service?" ] react :wave reply responses.sample end |