From 50f8cec33eb5a6a1b8877eadacd25bbfac4a5e85 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Wed, 29 Jun 2016 19:17:37 +0200 Subject: [PATCH] Moved `~av` from conversations to searches --- NadekoBot/Modules/Conversations/Conversations.cs | 15 --------------- NadekoBot/Modules/Searches/SearchesModule.cs | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/NadekoBot/Modules/Conversations/Conversations.cs b/NadekoBot/Modules/Conversations/Conversations.cs index bb928110..c15f29d9 100644 --- a/NadekoBot/Modules/Conversations/Conversations.cs +++ b/NadekoBot/Modules/Conversations/Conversations.cs @@ -255,21 +255,6 @@ namespace NadekoBot.Modules.Conversations await e.Channel.SendMessage(construct).ConfigureAwait(false); }); - cgb.CreateCommand("av") - .Alias("avatar") - .Parameter("mention", ParameterType.Required) - .Description("Shows a mentioned person's avatar.\n**Usage**: ~av @X") - .Do(async e => - { - var usr = e.Channel.FindUsers(e.GetArg("mention")).FirstOrDefault(); - if (usr == null) - { - await e.Channel.SendMessage("Invalid user specified.").ConfigureAwait(false); - return; - } - await e.Channel.SendMessage(await usr.AvatarUrl.ShortenUrl()).ConfigureAwait(false); - }); - }); } diff --git a/NadekoBot/Modules/Searches/SearchesModule.cs b/NadekoBot/Modules/Searches/SearchesModule.cs index b65394c4..e8d57934 100644 --- a/NadekoBot/Modules/Searches/SearchesModule.cs +++ b/NadekoBot/Modules/Searches/SearchesModule.cs @@ -475,6 +475,21 @@ $@"🌍 **Weather for** 【{obj["target"]}】 } }); + cgb.CreateCommand(Prefix + "av") + .Alias(Prefix + "avatar") + .Parameter("mention", ParameterType.Required) + .Description("Shows a mentioned person's avatar.\n**Usage**: ~av @X") + .Do(async e => + { + var usr = e.Channel.FindUsers(e.GetArg("mention")).FirstOrDefault(); + if (usr == null) + { + await e.Channel.SendMessage("Invalid user specified.").ConfigureAwait(false); + return; + } + await e.Channel.SendMessage(await usr.AvatarUrl.ShortenUrl()).ConfigureAwait(false); + }); + }); } }