module ResponderBot
Constants
- VERSION
Public Class Methods
default_matchers()
click to toggle source
# File lib/responder_bot.rb, line 4 def self.default_matchers { quit: Regexp.new('^qu?i?t?', 'i'), exit: Regexp.new('^ex?i?t?', 'i'), yes: Regexp.new('^y', 'i'), no: Regexp.new('^n', 'i'), number: /^[0-9]+/, # The likert scale is a psychometric scale often used in surveys / # questionnaires and has a lot of research backing it's effectiveness. # https://en.wikipedia.org/wiki/Likert_scale likert: ->(text) { (1..5).cover?(text.strip[0].to_i) } } end