private Program() { discord = new DiscordClient(new DiscordConfiguration { Token = app.Default.BotAuth, UseInternalLogHandler = true, LogLevel = LogLevel.Debug }); config = new Config(); subHandler = new SubHandler(config); pageChecker = new PageChecker(discord.DebugLogger, config); commands = discord.UseCommandsNext(new CommandsNextConfiguration { StringPrefix = app.Default.Prefix, Dependencies = BuildDependancies() }); commands.RegisterCommands <BotCommands>(); }
public BotCommands(SubHandler subHandler, PageChecker pageChecker, Config config) { this.subHandler = subHandler; this.pageChecker = pageChecker; this.config = config; }