add alias for server nicknames for custom reactions

This commit is contained in:
Master Kwoth 2016-05-07 19:03:32 +02:00
parent 61b3254f6d
commit 582d030bf7

View File

@ -32,8 +32,10 @@ namespace NadekoBot.Modules.CustomReactions
{
var commandName = command.Key.Replace("%mention%", NadekoBot.BotMention);
cgb.CreateCommand(commandName)
.Description($"Custom reaction.\n**Usage**:{command.Key}")
var c = cgb.CreateCommand(commandName);
if (commandName.Contains(NadekoBot.BotMention))
c.Alias(commandName.Replace("<@", "<@!"));
c.Description($"Custom reaction.\n**Usage**:{command.Key}")
.Parameter("args", ParameterType.Unparsed)
.Do(async e =>
{