From 582d030bf703dd874cc9dc00eb1a0392d9887779 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 7 May 2016 19:03:32 +0200 Subject: [PATCH] add alias for server nicknames for custom reactions --- NadekoBot/Modules/CustomReactions/CustomReactions.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Modules/CustomReactions/CustomReactions.cs b/NadekoBot/Modules/CustomReactions/CustomReactions.cs index ede0bd96..9d9c8c6a 100644 --- a/NadekoBot/Modules/CustomReactions/CustomReactions.cs +++ b/NadekoBot/Modules/CustomReactions/CustomReactions.cs @@ -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 => {