Beispiel #1
0
 public PlayerService(DiscordSocketClient client, Interfaces.ILogger logger)
 {
     _client     = client;
     _logger     = logger;
     _loggerLvl2 = new LavalinkWrapperLogger();
     _loggerLvl2.SetLogger(_logger);
     lavalinkManager = new LavalinkNode(new LavalinkNodeOptions
     {
         RestUri      = "http://localhost:2333/",
         WebSocketUri = "ws://localhost:2333/",
         Password     = ConfigurationManager.AppSettings["LavalinkPassword"],
         //DebugPayloads = true,
         DisconnectOnStop = false,
     }, new DiscordClientWrapper(client), _loggerLvl2);
     _client.Ready            += () => lavalinkManager.InitializeAsync();
     lavalinkManager.TrackEnd += OnTrackEnd;
 }
 public JabberNet(Interfaces.ILogger logger)
 {
     Logger = logger;
 }
Beispiel #3
0
 public void SetLogger(Interfaces.ILogger logger)
 {
     this.logger = logger;
 }
Beispiel #4
0
 public JobContextModel(Interfaces.ILogger logger, Interfaces.IConsoleOutput consoleOutput)
 {
     Logger        = logger;
     ConsoleOutput = consoleOutput;
 }