Sha256: 8f30c8c7e7690c5eb15674c4ed34b27297367f7c1ba977f57ba6d2982b985f2c
Contents?: true
Size: 477 Bytes
Versions: 2
Compression:
Stored size: 477 Bytes
Contents
# frozen_string_literal: true module Waylon module Skills # A place for some builtin fun class Fun < Skill # Say hello to Waylon route( /^(hello|hi)$/i, :hello ) # Responds to "hello" in less boring ways def hello responses = [ "Hello there!", "Hi!", "Hi, how's it going?", "How can I be of service?" ] reply responses.sample end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
waylon-core-0.1.1 | lib/waylon/skills/fun.rb |
waylon-core-0.1.0 | lib/waylon/skills/fun.rb |