mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-06-06 12:41:55 +02:00
Add user API endpoints and metrics endpoint
This commit is contained in:
parent
c572bbce85
commit
ff7339d88f
10 changed files with 299 additions and 1 deletions
|
@ -31,6 +31,8 @@ func handleCommand(command string, sender id.UserID, id id.RoomID, client *mautr
|
|||
log.Panicln("Invalid user id in client")
|
||||
}
|
||||
|
||||
defer commandsProcessed.Inc()
|
||||
|
||||
command = strings.TrimPrefix(command, "!") // Remove !
|
||||
command = strings.TrimPrefix(command, "@") // Remove @
|
||||
command = strings.TrimPrefix(command, myUsername) // Remove our own username
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue