From a59168da0bf8e9db0c8d729490ecece6103d8f5b Mon Sep 17 00:00:00 2001 From: Toastie Date: Mon, 14 Oct 2024 15:38:33 +1300 Subject: [PATCH] fixed some names being wrong --- .../Modules/Games/ChatterBot/ChatterBotService.cs | 8 ++++---- .../Games/ChatterBot/_common/OfficialCleverbotSession.cs | 2 +- src/EllieBot/Modules/Help/Help.cs | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/EllieBot/Modules/Games/ChatterBot/ChatterBotService.cs b/src/EllieBot/Modules/Games/ChatterBot/ChatterBotService.cs index b18b75b..0d2c841 100644 --- a/src/EllieBot/Modules/Games/ChatterBot/ChatterBotService.cs +++ b/src/EllieBot/Modules/Games/ChatterBot/ChatterBotService.cs @@ -96,15 +96,15 @@ public class ChatterBotService : IExecOnMessage public string PrepareMessage(IUserMessage msg) { - var nadekoId = _client.CurrentUser.Id; - var normalMention = $"<@{nadekoId}> "; - var nickMention = $"<@!{nadekoId}> "; + var ellieId = _client.CurrentUser.Id; + var normalMention = $"<@{ellieId}> "; + var nickMention = $"<@!{ellieId}> "; string message; if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture)) message = msg.Content[normalMention.Length..].Trim(); else if (msg.Content.StartsWith(nickMention, StringComparison.InvariantCulture)) message = msg.Content[nickMention.Length..].Trim(); - else if (msg.ReferencedMessage?.Author.Id == nadekoId) + else if (msg.ReferencedMessage?.Author.Id == ellieId) message = msg.Content; else return null; diff --git a/src/EllieBot/Modules/Games/ChatterBot/_common/OfficialCleverbotSession.cs b/src/EllieBot/Modules/Games/ChatterBot/_common/OfficialCleverbotSession.cs index d435947..b20f1d0 100644 --- a/src/EllieBot/Modules/Games/ChatterBot/_common/OfficialCleverbotSession.cs +++ b/src/EllieBot/Modules/Games/ChatterBot/_common/OfficialCleverbotSession.cs @@ -8,7 +8,7 @@ namespace EllieBot.Modules.Games.Common.ChatterBot; public class OfficialCleverbotSession : IChatterBotSession { private string QueryString - => $"https://www.cleverbot.com/getreply?key={_apiKey}" + "&wrapper=nadekobot" + "&input={0}" + "&cs={1}"; + => $"https://www.cleverbot.com/getreply?key={_apiKey}" + "&wrapper=elliebot" + "&input={0}" + "&cs={1}"; private readonly string _apiKey; private readonly IHttpClientFactory _httpFactory; diff --git a/src/EllieBot/Modules/Help/Help.cs b/src/EllieBot/Modules/Help/Help.cs index 7fafa23..8b7c006 100644 --- a/src/EllieBot/Modules/Help/Help.cs +++ b/src/EllieBot/Modules/Help/Help.cs @@ -512,8 +512,8 @@ public sealed partial class Help : EllieModule [Cmd] public async Task Guide() => await Response() - .Confirm(strs.guide("https://nadeko.bot/commands", - "https://nadekobot.readthedocs.io/en/latest/")) + .Confirm(strs.guide("https://commands.elliebot.net", + "https://docs.elliebot.net")) .SendAsync(); [Cmd] @@ -527,7 +527,7 @@ public sealed partial class Help : EllieModule eb .WithDescription(""" EllieBot relies on donations to keep the servers, services and APIs running. - Donating will give you access to some exclusive features. You can read about them on the [patreon page](https://patreon.com/join/nadekobot) + Donating will give you access to some exclusive features. You can read about them on the [patreon page](https://patreon.com/join/elliebot) """) .AddField("Donation Instructions", $""" @@ -535,7 +535,7 @@ public sealed partial class Help : EllieModule **Step 1:** ❤️ Pledge on Patreon ❤️ - `1.` Go to and choose a tier. + `1.` Go to and choose a tier. `2.` Make sure your payment is processed and accepted. **Step 2** 🤝 Connect your Discord account 🤝