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:
parent
4ce756d760
commit
0ad6b741e7
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue