public MusicService(LaveyBot bot)
        {
            this._bot      = bot;
            this._log      = LogManager.GetLogger("MusicService");
            this._players  = new ConcurrentDictionary <ulong, MusicPlayer>();
            this._endpoint = new ConnectionEndpoint(this._bot.Config.Lavalink.Endpoint.Hostname, this._bot.Config.Lavalink.Endpoint.Port);

            this._config = new LavalinkConfiguration
            {
                Password       = bot.Config.Lavalink.Password,
                RestEndpoint   = this._endpoint,
                SocketEndpoint = this._endpoint
            };

            this._bot.Discord.Ready       += this.OnReady;
            this._bot.Discord.Heartbeated += this.OnHeartbeat;
        }
Exemplo n.º 2
0
 public GamesModule(LaveyBot bot)
 {
     this.HangmanWords  = bot.Config.Hangman.HangmanWords;
     this.HangmanPrefix = bot.Config.Hangman.HangmanPrefix;
 }