diff --git a/NadekoBot/Modules/Administration/Commands/CustomReactionsCommands.cs b/NadekoBot/Modules/Administration/Commands/CustomReactionsCommands.cs index 93453fef..7309fc57 100644 --- a/NadekoBot/Modules/Administration/Commands/CustomReactionsCommands.cs +++ b/NadekoBot/Modules/Administration/Commands/CustomReactionsCommands.cs @@ -60,6 +60,7 @@ namespace NadekoBot.Modules.Administration.Commands .Description("Deletes a custome reaction with given name (and index)") .Parameter("name", ParameterType.Required) .Parameter("index", ParameterType.Optional) + .AddCheck(SimpleCheckers.OwnerOnly()) .Do(async e => { var name = e.GetArg("name")?.Trim(); diff --git a/NadekoBot/Modules/Conversations/Conversations.cs b/NadekoBot/Modules/Conversations/Conversations.cs index 148af188..177f0478 100644 --- a/NadekoBot/Modules/Conversations/Conversations.cs +++ b/NadekoBot/Modules/Conversations/Conversations.cs @@ -33,7 +33,7 @@ namespace NadekoBot.Modules.Conversations manager.CreateCommands("", cgb => { cgb.AddCheck(PermissionChecker.Instance); - + cgb.CreateCommand("..") .Description("Adds a new quote with the specified name (single word) and message (no limit).\n**Usage**: .. abc My message") .Parameter("keyword", ParameterType.Required) @@ -139,7 +139,7 @@ namespace NadekoBot.Modules.Conversations await e.Channel.SendMessage(e.User.Mention + " I am sad. My Master is not with me.").ConfigureAwait(false); } }); - + cgb.CreateCommand("fire") .Description("Shows a unicode fire message. Optional parameter [x] tells her how many times to repeat the fire.\n**Usage**: @NadekoBot fire [x]") .Parameter("times", ParameterType.Optional) @@ -236,7 +236,7 @@ namespace NadekoBot.Modules.Conversations else await e.Channel.SendMessage("I can't find a message mentioning you.").ConfigureAwait(false); }); - + cgb.CreateCommand("hide") .Description("Hides Nadeko in plain sight!11!!") .Do(async e => @@ -300,7 +300,8 @@ namespace NadekoBot.Modules.Conversations await e.Channel.SendMessage(construct).ConfigureAwait(false); }); - cgb.CreateCommand("av").Alias("avatar") + cgb.CreateCommand("av") + .Alias("avatar") .Parameter("mention", ParameterType.Required) .Description("Shows a mentioned person's avatar.\n**Usage**: ~av @X") .Do(async e => diff --git a/NadekoBot/NadekoBot.cs b/NadekoBot/NadekoBot.cs index 6b90f6d4..e88ea618 100644 --- a/NadekoBot/NadekoBot.cs +++ b/NadekoBot/NadekoBot.cs @@ -7,6 +7,7 @@ using NadekoBot.Classes.JSONModels; using NadekoBot.Modules.Administration; using NadekoBot.Modules.ClashOfClans; using NadekoBot.Modules.Conversations; +using NadekoBot.Modules.CustomReactions; using NadekoBot.Modules.Gambling; using NadekoBot.Modules.Games; using NadekoBot.Modules.Games.Commands; @@ -26,7 +27,6 @@ using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; -using NadekoBot.Modules.CustomReactions; namespace NadekoBot {