Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
 public BotCommands(SubHandler subHandler, PageChecker pageChecker, Config config)
 {
     this.subHandler  = subHandler;
     this.pageChecker = pageChecker;
     this.config      = config;
 }