mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[lint] Fix v2 import path not carrying version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
fb2ad178f0
commit
1409a4bd34
70 changed files with 124 additions and 124 deletions
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
//go:embed actorDocs.tpl
|
||||
|
|
4
auth.go
4
auth.go
|
@ -11,8 +11,8 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var instanceState = uuid.Must(uuid.NewV4()).String()
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var cronParser = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
func getAuthorizationFromRequest(r *http.Request) (string, *twitch.Client, error) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/go-irc/irc"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -15,7 +15,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const expectedMinConfigVersion = 2
|
||||
|
|
|
@ -11,8 +11,8 @@ import (
|
|||
"github.com/gorilla/websocket"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const websocketPingInterval = 30 * time.Second
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func registerEditorAutoMessageRoutes() {
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func registerEditorGlobalMethods() {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func registerEditorRulesRoutes() {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func ptrStr(s string) *string { return &s }
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
korvike "github.com/Luzifer/korvike/functions"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
4
go.mod
4
go.mod
|
@ -1,6 +1,6 @@
|
|||
module github.com/Luzifer/twitch-bot
|
||||
module github.com/Luzifer/twitch-bot/v2
|
||||
|
||||
go 1.18
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/Luzifer/go-openssl/v4 v4.1.0
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "ban"
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func TestCounterStoreLoop(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/go-irc/irc"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "delay"
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "delete"
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "modchannel"
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func TestPunishmentRoundtrip(t *testing.T) {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func TestQuotesRoundtrip(t *testing.T) {
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "raw"
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "respond"
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "timeout"
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func TestVariableRoundtrip(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "whisper"
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type actor struct{}
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const actorName = "customevent"
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var formatMessage plugins.MsgFormatter
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func TestEventDatabaseRoundtrip(t *testing.T) {
|
||||
|
|
|
@ -17,8 +17,8 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func TestTimerRoundtrip(t *testing.T) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package api
|
||||
|
||||
import "github.com/Luzifer/twitch-bot/plugins"
|
||||
import "github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
args.RegisterTemplateFunction("jsonAPI", plugins.GenericTemplateFunctionGetter(jsonAPI))
|
||||
|
|
|
@ -3,7 +3,7 @@ package numeric
|
|||
import (
|
||||
"math"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
|
|
|
@ -2,7 +2,7 @@ package slice
|
|||
|
||||
import (
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
|
|
|
@ -3,11 +3,11 @@ package v2migrator
|
|||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
func (s storageFile) migrateCoreKV(db database.Connector) (err error) {
|
||||
|
|
|
@ -3,8 +3,8 @@ package v2migrator
|
|||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -3,8 +3,8 @@ package v2migrator
|
|||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/internal/v2migrator/crypt"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/v2migrator/crypt"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
4
irc.go
4
irc.go
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
10
main.go
10
main.go
|
@ -25,11 +25,11 @@ import (
|
|||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/rconfig/v2"
|
||||
"github.com/Luzifer/twitch-bot/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/internal/v2migrator"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/v2migrator"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
func loadPlugins(pluginDir string) error {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"github.com/robfig/cron/v3"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
|
@ -18,7 +18,7 @@ import (
|
|||
"gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
const remoteRuleFetchTimeout = 2 * time.Second
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/go-irc/irc"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -10,31 +10,31 @@ import (
|
|||
|
||||
"github.com/Luzifer/go_helpers/v2/backoff"
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/ban"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/delay"
|
||||
deleteactor "github.com/Luzifer/twitch-bot/internal/actors/delete"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/filesay"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/modchannel"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/nuke"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/punish"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/raw"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/respond"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/timeout"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/internal/actors/whisper"
|
||||
"github.com/Luzifer/twitch-bot/internal/apimodules/customevent"
|
||||
"github.com/Luzifer/twitch-bot/internal/apimodules/msgformat"
|
||||
"github.com/Luzifer/twitch-bot/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/internal/template/api"
|
||||
"github.com/Luzifer/twitch-bot/internal/template/numeric"
|
||||
"github.com/Luzifer/twitch-bot/internal/template/random"
|
||||
"github.com/Luzifer/twitch-bot/internal/template/slice"
|
||||
"github.com/Luzifer/twitch-bot/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/ban"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/delay"
|
||||
deleteactor "github.com/Luzifer/twitch-bot/v2/internal/actors/delete"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/filesay"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/modchannel"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/nuke"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/punish"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/raw"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/respond"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/timeout"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/whisper"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/customevent"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/msgformat"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/template/api"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/template/numeric"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/template/random"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/template/slice"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const ircHandleWaitRetries = 10
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
import "github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
import "github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
|
||||
var (
|
||||
channelDefaultScopes = []string{
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
const statusIRCMessageReceivedTimeout = 5 * time.Minute
|
||||
|
|
|
@ -12,7 +12,7 @@ import (
|
|||
log "github.com/sirupsen/logrus"
|
||||
"github.com/wzshiming/openapi/spec"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
|
Loading…
Reference in a new issue