I don’t understand how Triagebot handles Zulip commands. I can see in the code that it listens for webhook events at the
/zulip-hook endpoint, but I can’t find any part of the code that’s responsible for figuring out if there is supposed to be a command invocation in a given message.
So what I imagine is that the bot is subscribed to only receive messages that notify it, i.e. pings and private messages. @simulacrum could you enlighten me on how the bot is setup? :D
yep, zulip by default only sends a request to the endpoint if the bot's name (triagebot in this case) is directly mentioned
we only support invocations that are via PM I think right now
so we don't actually look for the name of the bot or anything, just assume that the message in its entirety is the command
It responds in streams but fails to parse commands
right yeah because it's seeing "@triagebot" as the command which isn't a command
Failed to acknowledge @triagebot: Did not delete any notifications.
I have a few ideas in mind
I’ll experiment a bit and see how it goes