slight update to lmgtfy command's strings
This commit is contained in:
parent
3a597a49ea
commit
e3a4c4bd43
2 changed files with 6 additions and 8 deletions
|
@ -2,7 +2,6 @@
|
||||||
using Microsoft.Extensions.Caching.Memory;
|
using Microsoft.Extensions.Caching.Memory;
|
||||||
using EllieBot.Modules.Searches.Common;
|
using EllieBot.Modules.Searches.Common;
|
||||||
using EllieBot.Modules.Searches.Services;
|
using EllieBot.Modules.Searches.Services;
|
||||||
using EllieBot.Modules.Utility;
|
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using SixLabors.ImageSharp;
|
using SixLabors.ImageSharp;
|
||||||
|
@ -11,7 +10,6 @@ using SixLabors.ImageSharp.PixelFormats;
|
||||||
using SixLabors.ImageSharp.Processing;
|
using SixLabors.ImageSharp.Processing;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.Http.Json;
|
|
||||||
using Color = SixLabors.ImageSharp.Color;
|
using Color = SixLabors.ImageSharp.Color;
|
||||||
|
|
||||||
namespace EllieBot.Modules.Searches;
|
namespace EllieBot.Modules.Searches;
|
||||||
|
@ -171,12 +169,12 @@ public partial class Searches : EllieModule<SearchesService>
|
||||||
}
|
}
|
||||||
|
|
||||||
[Cmd]
|
[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;
|
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();
|
await Response().Confirm($"<{shortenedUrl}>").SendAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2078,11 +2078,11 @@ image:
|
||||||
- query:
|
- query:
|
||||||
desc: "The search term used to retrieve the desired image."
|
desc: "The search term used to retrieve the desired image."
|
||||||
lmgtfy:
|
lmgtfy:
|
||||||
desc: Google something for an idiot.
|
desc: Google something for a baka.
|
||||||
ex:
|
ex:
|
||||||
- query
|
- How to eat a banana
|
||||||
params:
|
params:
|
||||||
- ffs:
|
- smh:
|
||||||
desc: "The search query to be entered into the search engine."
|
desc: "The search query to be entered into the search engine."
|
||||||
google:
|
google:
|
||||||
desc: Get a Google search link for some terms.
|
desc: Get a Google search link for some terms.
|
||||||
|
|
Loading…
Reference in a new issue