1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-02 20:13:13 +00:00

add: chatterbot, (but not prompting) will also trigger if the user replies to a bot's message

This commit is contained in:
Kwoth 2024-07-05 04:55:33 +00:00
parent 4ce756d760
commit 0ad6b741e7

View file

@ -96,6 +96,8 @@ public class ChatterBotService : IExecOnMessage
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)
message = msg.Content;
else
return null;