Sha256: c76403b277ef14aa6587ce130b40e1cbbef759e06b0a52ff678aa9811d889c15

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

module Ruboty
  module Handlers
    class Help < Base
      on(
        /help( me)?(?: (?<filter>.+))?\z/i,
        description: "Show this help message",
        name: "help",
      )

      def help(message)
        Ruboty::Actions::Help.new(message).call
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ruboty-1.3.1 lib/ruboty/handlers/help.rb
ruboty-1.3.0 lib/ruboty/handlers/help.rb
ruboty-1.2.4 lib/ruboty/handlers/help.rb
ruboty-1.2.3 lib/ruboty/handlers/help.rb
ruboty-1.2.2 lib/ruboty/handlers/help.rb
ruboty-1.2.1 lib/ruboty/handlers/help.rb
ruboty-1.2.0 lib/ruboty/handlers/help.rb