class Worker::CommandCallExecutor::PlayCommand

Included Modules

Defined in:

worker/command_call_executor/play_command.cr

Constant Summary

ASSETS_LIST = {rickroll: AudioPlayer::AssetAudio.new("rickroll", "Rick Astley", "Never Gonna Give You Up", 211_u32), dj_watermelon: AudioPlayer::AssetAudio.new("dj_watermelon", "DJ", "Арбуз", 6_u32), cornfield_chase: AudioPlayer::AssetAudio.new("cornfield_chase", "Hanz Zimmer", "Cornfield Chase", 127_u32), boomer_violin: AudioPlayer::AssetAudio.new("boomer_violin", "Бумер", "Скрипка", 28_u32), mario_death: AudioPlayer::AssetAudio.new("mario_death", "Mario", "Death", 5_u32)}
SELECTION_SIZE = 10
VK_URL_REGEX = /(?:https?:\/\/)?(?:www\.)?(?:vk|vkontakte)\.(?:com|ru)\//i
YOUTUBE_VIDEO_ID_REGEX = /(?:https?:\/\/)?(?:www\.)?youtu(?:\.be\/|be.com\/\S*(?:watch|embed)(?:(?:(?=\/[^&\s\?]+(?!\S))\/)|(?:\S*v=|v\/)))([^&\s\?]+)/i

Instance Method Summary

Instance methods inherited from class Worker::CommandCallExecutor::Command

execute execute

Constructor methods inherited from class Worker::CommandCallExecutor::Command

new(worker : Worker, command_call : CommandCall, command_data : CommandData | Nil = nil) new

Instance Method Detail

def execute : Nil #

[View source]