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