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);
|
var commandName = command.Key.Replace("%mention%", NadekoBot.BotMention);
|
||||||
|
|
||||||
cgb.CreateCommand(commandName)
|
var c = cgb.CreateCommand(commandName);
|
||||||
.Description($"Custom reaction.\n**Usage**:{command.Key}")
|
if (commandName.Contains(NadekoBot.BotMention))
|
||||||
|
c.Alias(commandName.Replace("<@", "<@!"));
|
||||||
|
c.Description($"Custom reaction.\n**Usage**:{command.Key}")
|
||||||
.Parameter("args", ParameterType.Unparsed)
|
.Parameter("args", ParameterType.Unparsed)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user