class

Worker::CommandCallExecutor::PlayCommand

Inherits Worker::CommandCallExecutor::Command::WithAudiosAddition < Worker::CommandCallExecutor::Command < Reference < Object

Constants

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 methods

execute
Source

Nested types