Add user API endpoints and metrics endpoint

This commit is contained in:
Kevin Kandlbinder 2022-03-01 14:08:53 +01:00
parent c572bbce85
commit ff7339d88f
10 changed files with 299 additions and 1 deletions

View file

@ -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