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