From e3a4c4bd4349e71fdbd7a6b8156327aa10e53ad6 Mon Sep 17 00:00:00 2001 From: Toastie Date: Mon, 29 Jul 2024 18:54:10 +1200 Subject: [PATCH] slight update to lmgtfy command's strings --- src/EllieBot/Modules/Searches/Searches.cs | 8 +++----- src/EllieBot/data/strings/commands/commands.en-US.yml | 6 +++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/EllieBot/Modules/Searches/Searches.cs b/src/EllieBot/Modules/Searches/Searches.cs index 21eb45d..b6a7140 100644 --- a/src/EllieBot/Modules/Searches/Searches.cs +++ b/src/EllieBot/Modules/Searches/Searches.cs @@ -2,7 +2,6 @@ using Microsoft.Extensions.Caching.Memory; using EllieBot.Modules.Searches.Common; using EllieBot.Modules.Searches.Services; -using EllieBot.Modules.Utility; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using SixLabors.ImageSharp; @@ -11,7 +10,6 @@ using SixLabors.ImageSharp.PixelFormats; using SixLabors.ImageSharp.Processing; using System.Diagnostics.CodeAnalysis; using System.Net; -using System.Net.Http.Json; using Color = SixLabors.ImageSharp.Color; namespace EllieBot.Modules.Searches; @@ -171,12 +169,12 @@ public partial class Searches : EllieModule } [Cmd] - public async Task Lmgtfy([Leftover] string ffs = null) + public async Task Lmgtfy([Leftover] string smh = null) { - if (!await ValidateQuery(ffs)) + if (!await ValidateQuery(smh)) return; - var shortenedUrl = await _google.ShortenUrl($"https://letmegooglethat.com/?q={Uri.EscapeDataString(ffs)}"); + var shortenedUrl = await _google.ShortenUrl($"https://letmegooglethat.com/?q={Uri.EscapeDataString(smh)}"); await Response().Confirm($"<{shortenedUrl}>").SendAsync(); } diff --git a/src/EllieBot/data/strings/commands/commands.en-US.yml b/src/EllieBot/data/strings/commands/commands.en-US.yml index ce0f56f..8e5ff9d 100644 --- a/src/EllieBot/data/strings/commands/commands.en-US.yml +++ b/src/EllieBot/data/strings/commands/commands.en-US.yml @@ -2078,11 +2078,11 @@ image: - query: desc: "The search term used to retrieve the desired image." lmgtfy: - desc: Google something for an idiot. + desc: Google something for a baka. ex: - - query + - How to eat a banana params: - - ffs: + - smh: desc: "The search query to be entered into the search engine." google: desc: Get a Google search link for some terms.