class Command

Defined in:

chatty/commands/command.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.get_command(ircm : IRCMessage) : Command #

[View source]
def self.new(name : String, description : String, &proc : IRCMessage -> String) #

[View source]

Class Method Detail

def self.all : Hash(String, Command) #

[View source]
def self.is_command?(ircm : IRCMessage) : Bool #

[View source]
def self.link #

[View source]
def self.link=(nl : String) #

[View source]
def self.naughty?(args : Array(String)) : Bool #

tries to use a twitch chat command 🤬


[View source]
def self.parse_ircm(ircm : IRCMessage) : Tuple(Model::Ducky | Nil, Array(String)) #

[View source]
def self.static : Array(String) #

[View source]
def self.static=(new_static : Array(String)) #

[View source]

Instance Method Detail

def call(ircm : IRCMessage) : String #

[View source]
def description : String #

[View source]
def name : String #

[View source]