fixed some names being wrong
This commit is contained in:
parent
4c813e95c5
commit
a59168da0b
3 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -512,8 +512,8 @@ public sealed partial class Help : EllieModule<HelpService>
|
|||
[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<HelpService>
|
|||
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<HelpService>
|
|||
|
||||
**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.
|
||||
|
||||
**Step 2** 🤝 Connect your Discord account 🤝
|
||||
|
|
Loading…
Reference in a new issue