Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
groogy-bot
master
AddCommandCommand
AddGameCommand
AddVoteSlotCommand
AvailableVotersCommand
Bot
ClaimVoteSlotCommand
Command
Configuration
CustomCommand
Data
FilibusterCommand
HelpCommand
HelpExplainCommand
NayCommand
PingCommand
Player
Playlist
RemoveCommandCommand
RemoveGameCommand
RemoveVoteSlotCommand
RequestSongCommand
Response
Song
SongCommand
SongQueue
StartGameCommand
StartMusicCommand
StartVoteCommand
StopGameCommand
StopMusicCommand
User
Vote
VoteGame
VotersCommand
VoteSlot
VoteStatusCommand
YayCommand
Built with Crystal 1.9.2
2023-10-07 16:25:14 UTC
class
CustomCommand
CustomCommand
Command
Reference
Object
Defined in:
groogy-bot/custom_command.cr
Constructors
.new
(command, response : String)
Class Method Summary
.add
(command)
.each
(&)
.load
.remove
(name)
.write
Instance Method Summary
#delete
#deleted
: Bool
#execute
(bot, client, msg, match)
#parse_response
(msg)
#response
: String
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
]