Files
mautrix-discord/database/portalkey.go
Gary Kramlich 456a15ba56 Initial bot functionality
* The bot now properly joins the management room
* The management room is persisted in the database
* Welcome/help messages are sent in the management room
2021-12-30 09:33:06 -06:00

14 lines
204 B
Go

package database
type PortalKey struct {
ID string
Receiver string
}
func (key PortalKey) String() string {
if key.Receiver == key.ID {
return key.ID
}
return key.ID + "-" + key.Receiver
}