示例#1
0
        public BotService()
        {
            DiscordSocketConfig config = new DiscordSocketConfig
            {
                MessageCacheSize = 512
            };

            Client = new DiscordSocketClient(config);

            StartTime = DateTime.UtcNow;

            Settings = null;

            // Bot services
            Accounts   = null;
            Chat       = new ChatService(this);
            Scp        = new ScpService(this);
            Dad        = new DadService(this);
            Highlights = new HighlightService(this);
        }
示例#2
0
 public DepressedHandler(DiscordSocketClient client,
                         CommandService commandService,
                         LoggingService loggingService,
                         AutoResponseService autoResponseService,
                         DadService dadService,
                         ReactionService reactionService,
                         ModerationService moderationService,
                         OwoService owoService,
                         CountingService countingService,
                         ConfessionalService confessionalService,
                         IServiceProvider serviceProvider)
 {
     _client       = client;
     _service      = commandService;
     _logger       = loggingService;
     _autoResponse = autoResponseService;
     _dad          = dadService;
     _reaction     = reactionService;
     _moderation   = moderationService;
     _owo          = owoService;
     _counting     = countingService;
     _confessional = confessionalService;
     _provider     = serviceProvider;
 }