add alias for server nicknames for custom reactions
This commit is contained in:
parent
61b3254f6d
commit
582d030bf7
@ -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 =>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user