public Prefix(DatabaseContext database, TurretBot bot) { this.Database = database; this.Bot = bot; }
/// <summary> /// Creates a new instance of this music service. /// </summary> /// <param name="redis">Redis client to use for persistence.</param> /// <param name="rng">Cryptographically-secure random number generator implementaion.</param> public MusicService(RedisClient redis, SecureRandom rng, LavalinkService lavalink, TurretBot bot) { this.Lavalink = lavalink; this.Redis = redis; this.RNG = rng; this.MusicData = new ConcurrentDictionary <ulong, GuildMusicData>(); this.Discord = bot.Discord; this.Lavalink.TrackExceptionThrown += this.Lavalink_TrackExceptionThrown; }
public MiscModule(TurretBot bot) { this.Bot = bot; }