Module: ActiveMatrix::Bot::BuiltinCommands

Defined in:
lib/active_matrix/bot/builtin_commands.rb

Overview

Built-in commands that can be included in bot classes

Examples:

Include in a bot

class MyBot < ActiveMatrix::Bot::Base
  include ActiveMatrix::Bot::BuiltinCommands
end

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



13
14
15
16
# File 'lib/active_matrix/bot/builtin_commands.rb', line 13

def self.included(base)
  base.extend(ClassMethods)
  base.register_builtin_commands
end