fixed some names being wrong

This commit is contained in:
Toastie (DCS Team) 2024-10-14 15:38:33 +13:00
parent 4c813e95c5
commit a59168da0b
No known key found for this signature in database
3 changed files with 9 additions and 9 deletions

View file

@ -96,15 +96,15 @@ public class ChatterBotService : IExecOnMessage
public string PrepareMessage(IUserMessage msg) public string PrepareMessage(IUserMessage msg)
{ {
var nadekoId = _client.CurrentUser.Id; var ellieId = _client.CurrentUser.Id;
var normalMention = $"<@{nadekoId}> "; var normalMention = $"<@{ellieId}> ";
var nickMention = $"<@!{nadekoId}> "; var nickMention = $"<@!{ellieId}> ";
string message; string message;
if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture)) if (msg.Content.StartsWith(normalMention, StringComparison.InvariantCulture))
message = msg.Content[normalMention.Length..].Trim(); message = msg.Content[normalMention.Length..].Trim();
else if (msg.Content.StartsWith(nickMention, StringComparison.InvariantCulture)) else if (msg.Content.StartsWith(nickMention, StringComparison.InvariantCulture))
message = msg.Content[nickMention.Length..].Trim(); message = msg.Content[nickMention.Length..].Trim();
else if (msg.ReferencedMessage?.Author.Id == nadekoId) else if (msg.ReferencedMessage?.Author.Id == ellieId)
message = msg.Content; message = msg.Content;
else else
return null; return null;

View file

@ -8,7 +8,7 @@ namespace EllieBot.Modules.Games.Common.ChatterBot;
public class OfficialCleverbotSession : IChatterBotSession public class OfficialCleverbotSession : IChatterBotSession
{ {
private string QueryString 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 string _apiKey;
private readonly IHttpClientFactory _httpFactory; private readonly IHttpClientFactory _httpFactory;

View file

@ -512,8 +512,8 @@ public sealed partial class Help : EllieModule<HelpService>
[Cmd] [Cmd]
public async Task Guide() public async Task Guide()
=> await Response() => await Response()
.Confirm(strs.guide("https://nadeko.bot/commands", .Confirm(strs.guide("https://commands.elliebot.net",
"https://nadekobot.readthedocs.io/en/latest/")) "https://docs.elliebot.net"))
.SendAsync(); .SendAsync();
[Cmd] [Cmd]
@ -527,7 +527,7 @@ public sealed partial class Help : EllieModule<HelpService>
eb eb
.WithDescription(""" .WithDescription("""
EllieBot relies on donations to keep the servers, services and APIs running. 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", .AddField("Donation Instructions",
$""" $"""
@ -535,7 +535,7 @@ public sealed partial class Help : EllieModule<HelpService>
**Step 1:** Pledge on Patreon **Step 1:** Pledge on Patreon
`1.` Go to <https://patreon.com/join/nadekobot> and choose a tier. `1.` Go to <https://patreon.com/join/elliebot> and choose a tier.
`2.` Make sure your payment is processed and accepted. `2.` Make sure your payment is processed and accepted.
**Step 2** 🤝 Connect your Discord account 🤝 **Step 2** 🤝 Connect your Discord account 🤝