Implement the command parser
Right now this just supports help and version, but will be getting new commands shortly.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user