class Worker::CommandCallExecutor
- Worker::CommandCallExecutor
- Reference
- Object
Overview
Handle command calls
Defined in:
worker/command_call_executor.crworker/command_call_executor/about_command.cr
worker/command_call_executor/cancel_command.cr
worker/command_call_executor/choose_command.cr
worker/command_call_executor/command.cr
worker/command_call_executor/command/with_audios_addition.cr
worker/command_call_executor/donate_command.cr
worker/command_call_executor/error_command.cr
worker/command_call_executor/help_command.cr
worker/command_call_executor/leave_command.cr
worker/command_call_executor/not_authorized_command.cr
worker/command_call_executor/play_command.cr
worker/command_call_executor/queue_command.cr
worker/command_call_executor/remove_command.cr
worker/command_call_executor/repeat_command.cr
worker/command_call_executor/server_command.cr
worker/command_call_executor/settings_command.cr
worker/command_call_executor/shuffle_command.cr
worker/command_call_executor/skip_command.cr
worker/command_call_executor/stop_command.cr
worker/command_call_executor/unavailable_in_dm_command.cr
worker/command_call_executor/unknown_command.cr
Constant Summary
-
COMMANDS_LIST =
[{name: "help", aliases: ["help", "h"], allowed_in_dm: true, required_access_level: AccessLevel::Base, callable: HelpCommand}, {name: "settings", aliases: ["settings", "options"], allowed_in_dm: false, required_access_level: AccessLevel::ServerAdministrator, callable: SettingsCommand}, {name: "about", aliases: ["about"], allowed_in_dm: true, required_access_level: AccessLevel::Base, callable: AboutCommand}, {name: "play", aliases: ["play", "p", "resume"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: PlayCommand}, {name: "choose", aliases: ["choose", "ch"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: ChooseCommand}, {name: "cancel", aliases: ["cancel"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: CancelCommand}, {name: "skip", aliases: ["skip", "s"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: SkipCommand}, {name: "remove", aliases: ["remove"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: RemoveCommand}, {name: "stop", aliases: ["stop"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: StopCommand}, {name: "leave", aliases: ["leave", "pause"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: LeaveCommand}, {name: "shuffle", aliases: ["shuffle"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: ShuffleCommand}, {name: "repeat", aliases: ["repeat"], allowed_in_dm: false, required_access_level: AccessLevel::ServerDj, callable: RepeatCommand}, {name: "server", aliases: ["server"], allowed_in_dm: false, required_access_level: AccessLevel::Base, callable: ServerCommand}, {name: "donate", aliases: ["donate", "premium"], allowed_in_dm: false, required_access_level: AccessLevel::Base, callable: DonateCommand}, {name: "queue", aliases: ["queue", "q"], allowed_in_dm: false, required_access_level: AccessLevel::Base, callable: QueueCommand}]
-
Log =
Worker::Log.for("command_call_executor")