module: change path to github.com/beeper/groupme
Signed-off-by: Sumner Evans <sumner@beeper.com>
This commit is contained in:
parent
07d2cae5b2
commit
4d37d06c58
@ -14,7 +14,7 @@ repos:
|
|||||||
- id: go-imports-repo
|
- id: go-imports-repo
|
||||||
args:
|
args:
|
||||||
- "-local"
|
- "-local"
|
||||||
- "github.com/beeper/hungryserv"
|
- "github.com/beeper/groupme"
|
||||||
- "-w"
|
- "-w"
|
||||||
- id: go-vet-repo-mod
|
- id: go-vet-repo-mod
|
||||||
# - id: go-staticcheck-repo-mod
|
# - id: go-staticcheck-repo-mod
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
# Matrix GroupMe Go Bridge
|
# Matrix GroupMe Go Bridge
|
||||||
A Matrix-GroupMe puppeting bridge
|
A Matrix-GroupMe puppeting bridge
|
||||||
|
|
||||||
### [Wiki](https://github.com/karmanyaahm/matrix-groupme-go/wiki)
|
[Features & Roadmap](./ROADMAP.md)
|
||||||
|
|
||||||
### [Features & Roadmap](https://github.com/karmanyaahm/matrix-groupme-go/blob/master/ROADMAP.md)
|
|
||||||
|
|
||||||
## Discussion
|
## Discussion
|
||||||
Matrix room: [#groupme-go-bridge:malhotra.cc](https://matrix.to/#/#groupme-go-bridge:malhotra.cc)
|
Matrix room: [#groupme-go-bridge:malhotra.cc](https://matrix.to/#/#groupme-go-bridge:malhotra.cc)
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
whatsappExt "github.com/karmanyaahm/matrix-groupme-go/whatsapp-ext"
|
whatsappExt "github.com/beeper/groupme/whatsapp-ext"
|
||||||
"maunium.net/go/maulogger/v2"
|
"maunium.net/go/maulogger/v2"
|
||||||
|
|
||||||
"maunium.net/go/mautrix"
|
"maunium.net/go/mautrix"
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
"maunium.net/go/mautrix/event"
|
"maunium.net/go/mautrix/event"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BridgeConfig struct {
|
type BridgeConfig struct {
|
||||||
|
@ -31,7 +31,7 @@ import (
|
|||||||
"maunium.net/go/mautrix/event"
|
"maunium.net/go/mautrix/event"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
var NoSessionFound = crypto.NoSessionFound
|
var NoSessionFound = crypto.NoSessionFound
|
||||||
|
@ -40,7 +40,7 @@ func NewSQLCryptoStore(db *Database, userID id.UserID, ghostIDFormat string) *SQ
|
|||||||
raw, _ := db.DB.DB()
|
raw, _ := db.DB.DB()
|
||||||
return &SQLCryptoStore{
|
return &SQLCryptoStore{
|
||||||
SQLCryptoStore: crypto.NewSQLCryptoStore(raw, db.dialect, "", "",
|
SQLCryptoStore: crypto.NewSQLCryptoStore(raw, db.dialect, "", "",
|
||||||
[]byte("github.com/karmanyaahm/matrix-groupme-go"),
|
[]byte("github.com/beeper/groupme"),
|
||||||
&cryptoLogger{db.log.Sub("CryptoStore")}),
|
&cryptoLogger{db.log.Sub("CryptoStore")}),
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
GhostIDFormat: ghostIDFormat,
|
GhostIDFormat: ghostIDFormat,
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/schema"
|
"gorm.io/gorm/schema"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database/upgrades"
|
"github.com/beeper/groupme/database/upgrades"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Database struct {
|
type Database struct {
|
||||||
|
@ -18,10 +18,10 @@ package database
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
log "maunium.net/go/maulogger/v2"
|
log "maunium.net/go/maulogger/v2"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/groupmeExt"
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
|
"github.com/beeper/groupme/groupmeExt"
|
||||||
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MessageQuery struct {
|
type MessageQuery struct {
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
log "maunium.net/go/maulogger/v2"
|
log "maunium.net/go/maulogger/v2"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// JID is the puppet or the group
|
// JID is the puppet or the group
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PuppetQuery struct {
|
type PuppetQuery struct {
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
package database
|
package database
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
|
||||||
log "maunium.net/go/maulogger/v2"
|
log "maunium.net/go/maulogger/v2"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ReactionQuery struct {
|
type ReactionQuery struct {
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
log "maunium.net/go/maulogger/v2"
|
log "maunium.net/go/maulogger/v2"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
"maunium.net/go/mautrix/format"
|
"maunium.net/go/mautrix/format"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var italicRegex = regexp.MustCompile("([\\s>~*]|^)_(.+?)_([^a-zA-Z\\d]|$)")
|
var italicRegex = regexp.MustCompile("([\\s>~*]|^)_(.+?)_([^a-zA-Z\\d]|$)")
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module github.com/karmanyaahm/matrix-groupme-go
|
module github.com/beeper/groupme
|
||||||
|
|
||||||
go 1.15
|
go 1.15
|
||||||
|
|
||||||
|
@ -3,8 +3,8 @@ package groupmeExt
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
|
"github.com/beeper/groupme/types"
|
||||||
"github.com/karmanyaahm/groupme"
|
"github.com/karmanyaahm/groupme"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Client struct {
|
type Client struct {
|
||||||
|
@ -9,8 +9,8 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/beeper/groupme/types"
|
||||||
"github.com/karmanyaahm/groupme"
|
"github.com/karmanyaahm/groupme"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type Message struct{ groupme.Message }
|
type Message struct{ groupme.Message }
|
||||||
|
8
main.go
8
main.go
@ -34,10 +34,10 @@ import (
|
|||||||
"maunium.net/go/mautrix/event"
|
"maunium.net/go/mautrix/event"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/config"
|
"github.com/beeper/groupme/config"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database/upgrades"
|
"github.com/beeper/groupme/database/upgrades"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -30,7 +30,7 @@ import (
|
|||||||
"maunium.net/go/mautrix/format"
|
"maunium.net/go/mautrix/format"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MatrixHandler struct {
|
type MatrixHandler struct {
|
||||||
|
@ -30,8 +30,8 @@ import (
|
|||||||
"maunium.net/go/mautrix/event"
|
"maunium.net/go/mautrix/event"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MetricsHandler struct {
|
type MetricsHandler struct {
|
||||||
|
@ -55,10 +55,10 @@ import (
|
|||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
"maunium.net/go/mautrix/pushrules"
|
"maunium.net/go/mautrix/pushrules"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/groupmeExt"
|
"github.com/beeper/groupme/groupmeExt"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
whatsappExt "github.com/karmanyaahm/matrix-groupme-go/whatsapp-ext"
|
whatsappExt "github.com/beeper/groupme/whatsapp-ext"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (bridge *Bridge) GetPortalByMXID(mxid id.RoomID) *Portal {
|
func (bridge *Bridge) GetPortalByMXID(mxid id.RoomID) *Portal {
|
||||||
|
@ -28,10 +28,10 @@ import (
|
|||||||
"maunium.net/go/mautrix/appservice"
|
"maunium.net/go/mautrix/appservice"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
"github.com/beeper/groupme/database"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/groupmeExt"
|
"github.com/beeper/groupme/groupmeExt"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
whatsappExt "github.com/karmanyaahm/matrix-groupme-go/whatsapp-ext"
|
whatsappExt "github.com/beeper/groupme/whatsapp-ext"
|
||||||
)
|
)
|
||||||
|
|
||||||
var userIDRegex *regexp.Regexp
|
var userIDRegex *regexp.Regexp
|
||||||
|
8
user.go
8
user.go
@ -34,11 +34,11 @@ import (
|
|||||||
"maunium.net/go/mautrix/format"
|
"maunium.net/go/mautrix/format"
|
||||||
"maunium.net/go/mautrix/id"
|
"maunium.net/go/mautrix/id"
|
||||||
|
|
||||||
|
"github.com/beeper/groupme/database"
|
||||||
|
"github.com/beeper/groupme/groupmeExt"
|
||||||
|
"github.com/beeper/groupme/types"
|
||||||
|
whatsappExt "github.com/beeper/groupme/whatsapp-ext"
|
||||||
"github.com/karmanyaahm/groupme"
|
"github.com/karmanyaahm/groupme"
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/database"
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/groupmeExt"
|
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
|
||||||
whatsappExt "github.com/karmanyaahm/matrix-groupme-go/whatsapp-ext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type User struct {
|
type User struct {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
package whatsappExt
|
package whatsappExt
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/karmanyaahm/matrix-groupme-go/types"
|
"github.com/beeper/groupme/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CreateGroupResponse struct {
|
type CreateGroupResponse struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user