public GuildSettingsTracker(TrafficRouterBot routerBot, FileHandler fileHandler)
        {
            _routerBot   = routerBot;
            _fileHandler = fileHandler;

            ReadSettingsFromFile();
        }
示例#2
0
        public MessageHandler(TrafficRouterBot routerBot, CommandHandler commandHandler, GuildSettingsTracker settingsTracker)
        {
            _routerBot = routerBot;
            _routerBot.Client.MessageReceived += OnMessageReceived;

            _commandHandler  = commandHandler;
            _settingsTracker = settingsTracker;
        }
 private static async Task MainAsync()
 {
     TrafficRouterBot bot = new TrafficRouterBot();
     await bot.InitAsync();
 }
示例#4
0
 public CommandHandler(TrafficRouterBot routerBot, GuildSettingsTracker settingsTracker)
 {
     _routerBot       = routerBot;
     _settingsTracker = settingsTracker;
 }