예제 #1
0
        public ChatService(IServiceProvider services, IOptions <AppSettings> appSettings)
        {
            responseService = services.GetService <ResponseService>();
            discordLogger   = services.GetService <DiscordLogger>();

            officialChat = appSettings.Value.Settings.ProductionGuild.Official;

            ChatSystem      = new Chat(appSettings.Value.ConnectionStrings.ChatHistory);
            ChatSystem.Log += HandleLog;
        }
예제 #2
0
 public ErrorResolver(DiscordLogger discordLogger)
 {
     logger = discordLogger;
 }