From 41ae1823738b5dbd09e0ac67f851caffd747d4c1 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sun, 24 Dec 2023 07:50:41 +0000 Subject: [PATCH] Removed .revimg and .revav, closes #417 --- src/NadekoBot/Modules/Searches/Searches.cs | 24 ------------------- .../Modules/Searches/SearchesService.cs | 3 +++ src/NadekoBot/data/aliases.yml | 4 ---- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/Searches.cs b/src/NadekoBot/Modules/Searches/Searches.cs index c928c308a..0e8b66d65 100644 --- a/src/NadekoBot/Modules/Searches/Searches.cs +++ b/src/NadekoBot/Modules/Searches/Searches.cs @@ -422,30 +422,6 @@ public partial class Searches : NadekoModule await SendConfirmAsync("🐈" + GetText(strs.catfact), fact); } - //done in 3.0 - [Cmd] - [RequireContext(ContextType.Guild)] - public async Task Revav([Leftover] IGuildUser usr = null) - { - if (usr is null) - usr = (IGuildUser)ctx.User; - - var av = usr.RealAvatarUrl(); - await SendConfirmAsync($"https://images.google.com/searchbyimage?image_url={av}"); - } - - //done in 3.0 - [Cmd] - public async Task Revimg([Leftover] string imageLink = null) - { - imageLink = imageLink?.Trim() ?? ""; - - if (string.IsNullOrWhiteSpace(imageLink)) - return; - - await SendConfirmAsync($"https://images.google.com/searchbyimage?image_url={imageLink}"); - } - [Cmd] public async Task Wiki([Leftover] string query = null) { diff --git a/src/NadekoBot/Modules/Searches/SearchesService.cs b/src/NadekoBot/Modules/Searches/SearchesService.cs index eedea43a1..00edaa19e 100644 --- a/src/NadekoBot/Modules/Searches/SearchesService.cs +++ b/src/NadekoBot/Modules/Searches/SearchesService.cs @@ -9,6 +9,9 @@ using SixLabors.ImageSharp; using SixLabors.ImageSharp.Drawing.Processing; using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; +using System.Collections; +using System.Net.Http.Json; +using System.Text.Json.Serialization; using Color = SixLabors.ImageSharp.Color; using Image = SixLabors.ImageSharp.Image; diff --git a/src/NadekoBot/data/aliases.yml b/src/NadekoBot/data/aliases.yml index 5b7957e4a..85157bcf2 100644 --- a/src/NadekoBot/data/aliases.yml +++ b/src/NadekoBot/data/aliases.yml @@ -647,10 +647,6 @@ chucknorris: magicitem: - magicitem - mi -revav: - - revav -revimg: - - revimg safebooru: - safebooru wiki: