Added confirmation message

This commit is contained in:
Noikoio 2018-03-04 15:08:57 -08:00
parent 6ca73a9b6b
commit 681d0a370d
2 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Noikoio.RegexBot.Module.ModLogs
{

View file

@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Discord.WebSocket;
using Discord.WebSocket;
using Newtonsoft.Json.Linq;
using Noikoio.RegexBot.ConfigItem;
using System.Threading.Tasks;
namespace Noikoio.RegexBot.Module.ModLogs
{
@ -42,7 +39,11 @@ namespace Noikoio.RegexBot.Module.ModLogs
return null;
}
return new GuildConfig((JObject)configSection);
var conf = new GuildConfig((JObject)configSection);
if (conf.RptTypes != EventType.None)
await Log("Enabled event autoreporting to " + conf.RptTarget);
return conf;
}
}
}