mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Removed the mandatory requirement to enter the '!' after the discord prefix
This commit is contained in:
parent
327103182c
commit
d51c0a95de
14 changed files with 62 additions and 18 deletions
|
|
@ -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>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue