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
This commit is contained in:
Gary Kramlich
2021-12-30 09:33:06 -06:00
parent 78ab3d3804
commit 456a15ba56
19 changed files with 859 additions and 16 deletions

13
database/portalkey.go Normal file
View File

@@ -0,0 +1,13 @@
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
}