Class: Waylon::Skills::Fun

Inherits:
Waylon::Skill show all
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

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

included

Constructor Details

This class inherits a constructor from Waylon::Skill

Instance Method Details

#helloObject

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