public SpotifyInteractiveModule(
     IConfiguration config,
     SynthbotRestClient synthbotWebClient,
     ILogger <SpotifyModule> logger,
     SpotifyWebAPI spotifyApi)
 {
     _config            = config;
     _synthbotWebClient = synthbotWebClient;
     _logger            = logger;
     _spotifyApi        = spotifyApi;
 }
Example #2
0
        public CommandHandlingService(IServiceProvider provider, DiscordSocketClient discord, CommandService commands, SpotifyInfoService spotifyInfoService, SynthbotRestClient synthbotWebClient)
        {
            _discord            = discord;
            _commands           = commands;
            _provider           = provider;
            _spotifyInfoService = spotifyInfoService;
            _synthbotWebClient  = synthbotWebClient;

            _discord.UserVoiceStateUpdated += UserVoiceChannelEventHandlerAsync;

            _discord.MessageReceived += MessageReceived;
        }
 public VoiceStatusChangedHandler(
     DiscordSocketClient discord,
     SynthbotRestClient synthbotRestClient,
     SpotifyInfoService spotifyInfoService,
     IConfiguration config)
 {
     _discord              = discord;
     _synthbotRestClient   = synthbotRestClient;
     _spotifyInfoService   = spotifyInfoService;
     _config               = config;
     _notificationsEnabled = config.GetValue <bool>("NotificationsEnabled");
 }
Example #4
0
 public InfoModule(SynthbotRestClient client)
 {
     _client = client;
 }