public MusicService(DiscordSocketClient client, LavaRestClient lavaRestClient, LavaSocketClient lavaSocketClient) { _client = client; _lavaRestClient = lavaRestClient; _lavaSocketClient = lavaSocketClient; MusicService.lavaRestClient = lavaRestClient; }
public MusicService(LavaRestClient lavaRestClient, DiscordSocketClient discordSocketClient, LavaSocketClient lavaSocketClient) { client = discordSocketClient; this.lavaRestClient = lavaRestClient; this.lavaSocketClient = lavaSocketClient; }
public SpotifyRunConfig(LavaRestClient lavaRest, SpotifyWebAPI api, SpotifyConfig config, SpotifyTrackConverter trackConverter) { this.LavaRest = lavaRest; this.Api = api; this.Config = config; this.TrackConverter = trackConverter; }
public MusicHandler(LavaRestClient lavaRestClient, LavaSocketClient lavaSocketClient, DiscordSocketClient client, IDiscordLogger logger) { _lavaRestClient = lavaRestClient ?? throw new ArgumentNullException(nameof(lavaRestClient)); _lavaSocketClient = lavaSocketClient ?? throw new ArgumentNullException(nameof(lavaSocketClient)); _client = client ?? throw new ArgumentNullException(nameof(client)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public MusicService(LavaRestClient lavaRestClient, LavaSocketClient lavaSocketClient, Interfaces.IDiscordClient client) { _lavaRestClient = lavaRestClient; _lavaSocketClient = lavaSocketClient; _client = client.Client; InitializeAsync(); }
public MusicService(LavaRestClient lavaRestClient, DiscordSocketClient client, LavaSocketClient lavaSocketClient, LogService logService) { _client = client; _lavaRestClient = lavaRestClient; _lavaSocketClient = lavaSocketClient; _logService = logService; }
public AudioService(DiscordSocketClient client) { _client = client; _lavaRestClient = new LavaRestClient(); _lavaClient = new LavaSocketClient(); _queues = new Dictionary <ulong, Queue <IPlayable> >(); _client.Ready += OnReady; }
public Audio(VictoriaService vic, LogHandler logger, HelpService helpService, LocalManagementService local) { Vic = vic; Logger = logger; HelpService = helpService; Local = local; RestClient = vic.RestClient; LavaShardClient = vic.Client; }
public DiscordEventHandler(DiscordShardedClient client, CommandHandler commandHandler , ServerActivityLogger serverActivityLogger, WasagotchiTimer wasagotchiTimer, Events events, MessageRewardHandler messageRewardHandler, MusicService musicService, LavaShardClient lavaShardClient, LavaRestClient lavaRestClient) { _client = client; _commandHandler = commandHandler; _serverActivityLogger = serverActivityLogger; _wasagotchiTimer = wasagotchiTimer; _events = events; _messageRewardHandler = messageRewardHandler; _musicService = musicService; _lavaShardClient = lavaShardClient; _lavaRestClient = lavaRestClient; }
public SpotifyHandlerService(EnergizeClient client) { this.Logger = client.Logger; this.Api = new SpotifyWebAPI { TokenType = "Bearer", UseAuth = true, UseAutoRetry = true }; this.LavaRest = GetLavaRestClient(); // TODO: add configuration entry this.Config = Essentials.Config.Instance.Spotify; this.SpotifyAuthTimer = new Timer(this.TradeSpotifyToken); SpotifyRunConfig spotifyRunConfig = new SpotifyRunConfig(this.LavaRest, this.Api, this.Config, new SpotifyTrackConverter(this.LavaRest, this.Config)); this.TrackProvider = new SpotifyTrackProvider(spotifyRunConfig); this.SearchProvider = new SpotifySearchProvider(spotifyRunConfig); this.PlaylistProvider = new SpotifyPlaylistProvider(spotifyRunConfig); this.AlbumProvider = new SpotifyAlbumProvider(spotifyRunConfig); this.ArtistProvider = new SpotifyArtistProvider(spotifyRunConfig); }
public AudioSearchModule(LavaSocketClient lavaSocketClient, LavaRestClient lavaRestClient, TrackHandler trackHandler) { _lavaSocketClient = lavaSocketClient; _lavaRestClient = lavaRestClient; _trackHandler = trackHandler; }
public override async Task Do(SearchArgs args) { var searchResult = await LavaRestClient.SearchSoundcloud(args.Query); await HandleSearchResult(searchResult); }
public AudioService(LavaRestClient lavaRestClient, DiscordSocketClient client, LavaSocketClient lavaSocketClient) { _client = client; _lavaRestClient = lavaRestClient; _lavaSocketClient = lavaSocketClient; }
public AudioService(LavaSocketClient lavaSocketClient, LavaRestClient lavaRestClient) { _lavaSocketClient = lavaSocketClient; _lavaRestClient = lavaRestClient; }
public AudioModule(LavaSocketClient lavaSocketClient, LavaRestClient lavaRestClient, DatabaseHandler databaseHandler) { _lavaSocketClient = lavaSocketClient; _lavaRestClient = lavaRestClient; _databaseHandler = databaseHandler; }
public AudioService(LavaSocketClient _lavaSocketClient, LavaRestClient _lavaRestClient) { lavaSocketClient = _lavaSocketClient; lavaRestClient = _lavaRestClient; isSearching = false; }
public MusicService(LavaRestClient lavaRestClient, DiscordShardedClient client, LavaShardClient lavaShardClient) { _client = client; _lavaRestClient = lavaRestClient; _lavaShardClient = lavaShardClient; }
public SpotifyTrackConverter(LavaRestClient lavaRest, SpotifyConfig config) { this.LavaRest = lavaRest; this.Config = config; }
public AudioService(LavaSocketClient lavaClient, LavaRestClient lavaRestClient) { LavaClient = lavaClient; LavaRestClient = lavaRestClient; Music.AudioService = this; }