Removed the mandatory requirement to enter the '!' after the discord prefix

This commit is contained in:
Brett Hewitson 2021-12-16 15:57:38 +10:00
parent 327103182c
commit d51c0a95de
14 changed files with 62 additions and 18 deletions

View file

@ -43,15 +43,10 @@ namespace ServerManagerTool.DiscordBot
Token = token;
if (commandPrefix.Any(c => !char.IsLetterOrDigit(c)))
{
throw new Exception("#DiscordBot_InvalidPrefixError");
}
if (!commandPrefix.EndsWith(DiscordBot.PREFIX_DELIMITER))
{
commandPrefix += DiscordBot.PREFIX_DELIMITER;
}
//if (commandPrefix.Any(c => !char.IsLetterOrDigit(c)))
//{
// throw new Exception("#DiscordBot_InvalidPrefixError");
//}
var settings = new Dictionary<string, string>
{