mirror of
https://github.com/maubot/maubot
synced 2025-08-29 21:20:37 +00:00
Fill event values with matched command stuff
This commit is contained in:
parent
4536fcfe62
commit
ad5e2ef72f
3 changed files with 75 additions and 9 deletions
|
@ -104,6 +104,7 @@ func (client *Client) TriggerCommand(command *ParsedCommand, evt *maubot.Event)
|
|||
log.Warnf("Command %s triggered by %s doesn't have any handlers.", command.Name, evt.Sender)
|
||||
return maubot.Continue
|
||||
}
|
||||
|
||||
log.Debugf("Command %s on client %s triggered by %s\n", command.Name, client.UserID, evt.Sender)
|
||||
for _, handler := range handlers {
|
||||
result := handler(evt)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue