示例#1
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");
 }
示例#3
0
 public SpotifyModule(
     IConfiguration config,
     SynthbotRestClient synthbotWebClient,
     SpotifyInfoService spotifyInfoService,
     ILogger <SpotifyModule> logger,
     SpotifyWebAPI spotifyApi)
 {
     _config             = config;
     _synthbotWebClient  = synthbotWebClient;
     _spotifyInfoService = spotifyInfoService;
     _logger             = logger;
     _spotifyApi         = spotifyApi;
 }