Implement the command parser

Right now this just supports help and version, but will be getting new commands
shortly.
This commit is contained in:
Gary Kramlich
2021-12-30 15:08:41 -06:00
parent 456a15ba56
commit 2279916d9c
8 changed files with 246 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import (
"regexp"
log "maunium.net/go/maulogger/v2"
"maunium.net/go/mautrix/appservice"
"maunium.net/go/mautrix/id"
"gitlab.com/beeper/discord/database"
@@ -85,3 +86,7 @@ func (b *Bridge) FormatPuppetMXID(did string) id.UserID {
b.config.Homeserver.Domain,
)
}
func (p *Puppet) DefaultIntent() *appservice.IntentAPI {
return p.bridge.as.Intent(p.MXID)
}