Skip to content

Commit a7bc8fb

Browse files
authored
Update package imports to V2 (botlabs-gg#1195)
* update package versions to v2 * fix dependabot alert for vulnerability * fix dependabot alert for vulnerability Co-authored-by: Ashish Jhanwar <[email protected]>
1 parent 087c988 commit a7bc8fb

File tree

380 files changed

+1421
-1392
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+1421
-1392
lines changed

admin/plugin_admin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package admin
22

33
import (
4-
"github.com/botlabs-gg/yagpdb/common"
4+
"github.com/botlabs-gg/yagpdb/v2/common"
55
)
66

77
var logger = common.GetPluginLogger(&Plugin{})

admin/web.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import (
1111
"time"
1212

1313
"emperror.dev/errors"
14-
"github.com/botlabs-gg/yagpdb/bot/botrest"
15-
"github.com/botlabs-gg/yagpdb/common"
16-
"github.com/botlabs-gg/yagpdb/common/config"
17-
"github.com/botlabs-gg/yagpdb/common/internalapi"
18-
"github.com/botlabs-gg/yagpdb/lib/dshardorchestrator/orchestrator/rest"
19-
"github.com/botlabs-gg/yagpdb/web"
14+
"github.com/botlabs-gg/yagpdb/v2/bot/botrest"
15+
"github.com/botlabs-gg/yagpdb/v2/common"
16+
"github.com/botlabs-gg/yagpdb/v2/common/config"
17+
"github.com/botlabs-gg/yagpdb/v2/common/internalapi"
18+
"github.com/botlabs-gg/yagpdb/v2/lib/dshardorchestrator/orchestrator/rest"
19+
"github.com/botlabs-gg/yagpdb/v2/web"
2020
"goji.io"
2121
"goji.io/pat"
2222
)

analytics/analytics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package analytics
33
import (
44
"sync"
55

6-
"github.com/botlabs-gg/yagpdb/common"
7-
"github.com/botlabs-gg/yagpdb/common/config"
6+
"github.com/botlabs-gg/yagpdb/v2/common"
7+
"github.com/botlabs-gg/yagpdb/v2/common/config"
88
"github.com/mediocregopher/radix/v3"
99
)
1010

analytics/backgroundworker.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"time"
88

99
"emperror.dev/errors"
10-
"github.com/botlabs-gg/yagpdb/common"
11-
"github.com/botlabs-gg/yagpdb/common/backgroundworkers"
10+
"github.com/botlabs-gg/yagpdb/v2/common"
11+
"github.com/botlabs-gg/yagpdb/v2/common/backgroundworkers"
1212
"github.com/mediocregopher/radix/v3"
1313
)
1414

antiphishing/antiphishing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"sync"
1111

12-
"github.com/botlabs-gg/yagpdb/common"
12+
"github.com/botlabs-gg/yagpdb/v2/common"
1313
"github.com/mediocregopher/radix/v3"
1414
"github.com/sirupsen/logrus"
1515
)

antiphishing/backgroundworkers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"sync"
55
"time"
66

7-
"github.com/botlabs-gg/yagpdb/common/backgroundworkers"
7+
"github.com/botlabs-gg/yagpdb/v2/common/backgroundworkers"
88
)
99

1010
var _ backgroundworkers.BackgroundWorkerPlugin = (*Plugin)(nil)

automod/automod.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"unicode"
99

1010
"emperror.dev/errors"
11-
"github.com/botlabs-gg/yagpdb/automod/models"
12-
"github.com/botlabs-gg/yagpdb/common"
13-
"github.com/botlabs-gg/yagpdb/common/featureflags"
14-
"github.com/botlabs-gg/yagpdb/premium"
11+
"github.com/botlabs-gg/yagpdb/v2/automod/models"
12+
"github.com/botlabs-gg/yagpdb/v2/common"
13+
"github.com/botlabs-gg/yagpdb/v2/common/featureflags"
14+
"github.com/botlabs-gg/yagpdb/v2/premium"
1515
"github.com/karlseguin/ccache"
1616
"github.com/volatiletech/sqlboiler/queries/qm"
1717
)

automod/automod_bot.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import (
66
"errors"
77
"sort"
88

9-
"github.com/botlabs-gg/yagpdb/analytics"
10-
"github.com/botlabs-gg/yagpdb/automod/models"
11-
"github.com/botlabs-gg/yagpdb/bot"
12-
"github.com/botlabs-gg/yagpdb/bot/eventsystem"
13-
"github.com/botlabs-gg/yagpdb/commands"
14-
"github.com/botlabs-gg/yagpdb/common"
15-
"github.com/botlabs-gg/yagpdb/common/scheduledevents2"
16-
schEventsModels "github.com/botlabs-gg/yagpdb/common/scheduledevents2/models"
17-
"github.com/botlabs-gg/yagpdb/lib/discordgo"
18-
"github.com/botlabs-gg/yagpdb/lib/dstate"
9+
"github.com/botlabs-gg/yagpdb/v2/analytics"
10+
"github.com/botlabs-gg/yagpdb/v2/automod/models"
11+
"github.com/botlabs-gg/yagpdb/v2/bot"
12+
"github.com/botlabs-gg/yagpdb/v2/bot/eventsystem"
13+
"github.com/botlabs-gg/yagpdb/v2/commands"
14+
"github.com/botlabs-gg/yagpdb/v2/common"
15+
"github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2"
16+
schEventsModels "github.com/botlabs-gg/yagpdb/v2/common/scheduledevents2/models"
17+
"github.com/botlabs-gg/yagpdb/v2/lib/discordgo"
18+
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
1919
"github.com/volatiletech/null"
2020
"github.com/volatiletech/sqlboiler/boil"
2121
"github.com/volatiletech/sqlboiler/queries/qm"

automod/automod_web.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ import (
1212
"strconv"
1313
"strings"
1414

15-
"github.com/botlabs-gg/yagpdb/automod/models"
16-
"github.com/botlabs-gg/yagpdb/common"
17-
"github.com/botlabs-gg/yagpdb/common/cplogs"
18-
"github.com/botlabs-gg/yagpdb/common/featureflags"
19-
"github.com/botlabs-gg/yagpdb/common/pubsub"
20-
"github.com/botlabs-gg/yagpdb/lib/dstate"
21-
"github.com/botlabs-gg/yagpdb/moderation"
22-
"github.com/botlabs-gg/yagpdb/web"
15+
"github.com/botlabs-gg/yagpdb/v2/automod/models"
16+
"github.com/botlabs-gg/yagpdb/v2/common"
17+
"github.com/botlabs-gg/yagpdb/v2/common/cplogs"
18+
"github.com/botlabs-gg/yagpdb/v2/common/featureflags"
19+
"github.com/botlabs-gg/yagpdb/v2/common/pubsub"
20+
"github.com/botlabs-gg/yagpdb/v2/lib/dstate"
21+
"github.com/botlabs-gg/yagpdb/v2/moderation"
22+
"github.com/botlabs-gg/yagpdb/v2/web"
2323
"github.com/fatih/structs"
2424
"github.com/gorilla/schema"
2525
"github.com/volatiletech/sqlboiler/boil"

automod/cachedruleset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55

66
"emperror.dev/errors"
7-
"github.com/botlabs-gg/yagpdb/automod/models"
7+
"github.com/botlabs-gg/yagpdb/v2/automod/models"
88
)
99

1010
type ParsedRuleset struct {

0 commit comments

Comments
 (0)