class Worker

Overview

Main app object. Also stores subsystems references

Defined in:

worker.cr
worker/api_client.cr
worker/api_client/converter.cr
worker/api_client/converter/date_to_time.cr
worker/api_client/converter/datetime_to_time.cr
worker/api_client/converter/seconds_to_time_span.cr
worker/api_client/http_client.cr
worker/api_client/mapping.cr
worker/api_client/mapping/audio.cr
worker/api_client/mapping/audio_list.cr
worker/api_client/mapping/audio_request.cr
worker/api_client/mapping/daily_statistic.cr
worker/api_client/mapping/donation.cr
worker/api_client/mapping/server.cr
worker/api_client/mapping/setting.cr
worker/api_client/mapping/statistic.cr
worker/api_client/websocket_client.cr
worker/audio_player.cr
worker/audio_player/asset_audio.cr
worker/audio_player/audio.cr
worker/audio_player/connection_lost_error.cr
worker/audio_player/failed_to_connect_error.cr
worker/audio_player/queue.cr
worker/audio_player/remote_audio.cr
worker/audio_players_storage.cr
worker/audio_preparer.cr
worker/audio_selection.cr
worker/audio_selections_storage.cr
worker/command_call.cr
worker/command_call_executor.cr
worker/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
worker/command_call_handler.cr
worker/command_call_handler/queue.cr
worker/discord_client.cr
worker/discord_client/async_voice_client.cr
worker/discord_client/not_found_error.cr
worker/discord_client/voice_client.cr
worker/hudba_client.cr
worker/hudba_client/converter.cr
worker/hudba_client/converter/seconds_to_time_span.cr
worker/hudba_client/http_client.cr
worker/hudba_client/mapping.cr
worker/hudba_client/mapping/audio.cr
worker/hudba_client/mapping/audio_request.cr
worker/hudba_client/mapping/playlist.cr
worker/message_handler.cr

Constant Summary

Log = ::Log.for("worker")
SUBSYSTEMS = ["api_client", "hudba_client", "discord_client", "message_handler", "command_call_handler", "command_call_executor", "audio_players_storage", "audio_selections_storage", "audio_preparer"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(shard_id : Int32, shard_num : Int32) #

[View source]

Instance Method Detail

def api_client : ApiClient #

[View source]
def audio_players_storage : AudioPlayersStorage #

[View source]
def audio_preparer : AudioPreparer #

[View source]
def audio_selections_storage : AudioSelectionsStorage #

[View source]
def command_call_executor : CommandCallExecutor #

[View source]
def command_call_handler : CommandCallHandler #

[View source]
def discord_client : DiscordClient #

[View source]
def hudba_client : HudbaClient #

[View source]
def message_handler : MessageHandler #

[View source]
def run : Nil #

[View source]
def shard_id : Int32 #

[View source]
def shard_num : Int32 #

[View source]
def stop : Nil #

[View source]