class CustomCommand

Defined in:

groogy-bot/custom_command.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Command

apply(bot, client) apply, command : String command, documentation : String documentation, execute(bot, client, msg, match) execute, has_permission?(msg) has_permission?, pattern : Regex pattern

Constructor methods inherited from class Command

new(command : String, pattern : Regex, documentation : String) new

Constructor Detail

def self.new(command, response : String) #

[View source]

Class Method Detail

def self.add(command) #

[View source]
def self.each(&) #

[View source]
def self.load #

[View source]
def self.remove(name) #

[View source]
def self.write #

[View source]

Instance Method Detail

def delete #

[View source]
def deleted : Bool #

[View source]
def execute(bot, client, msg, match) #

[View source]
def parse_response(msg) #

[View source]
def response : String #

[View source]