diff --git a/action_script.go b/action_script.go index f8af49e..ef3ba98 100644 --- a/action_script.go +++ b/action_script.go @@ -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() { diff --git a/actions.go b/actions.go index 83d9d8a..be0226b 100644 --- a/actions.go +++ b/actions.go @@ -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 ( diff --git a/actorDocs.go b/actorDocs.go index b7baeb5..b251e37 100644 --- a/actorDocs.go +++ b/actorDocs.go @@ -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 diff --git a/auth.go b/auth.go index 4db5312..3d7a69e 100644 --- a/auth.go +++ b/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() diff --git a/automessage.go b/automessage.go index 583c171..e766d03 100644 --- a/automessage.go +++ b/automessage.go @@ -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) diff --git a/botEditor.go b/botEditor.go index f13311c..1c1bf15 100644 --- a/botEditor.go +++ b/botEditor.go @@ -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) { diff --git a/botUserState.go b/botUserState.go index 24938d4..1e49429 100644 --- a/botUserState.go +++ b/botUserState.go @@ -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 ( diff --git a/config.go b/config.go index c6a2121..59c1ec8 100644 --- a/config.go +++ b/config.go @@ -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 diff --git a/configEditor.go b/configEditor.go index caea21a..3cd9955 100644 --- a/configEditor.go +++ b/configEditor.go @@ -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 diff --git a/configEditor_automessage.go b/configEditor_automessage.go index 6b1e1d8..a012214 100644 --- a/configEditor_automessage.go +++ b/configEditor_automessage.go @@ -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() { diff --git a/configEditor_general.go b/configEditor_general.go index 96f2c5f..1f9d6be 100644 --- a/configEditor_general.go +++ b/configEditor_general.go @@ -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 ( diff --git a/configEditor_global.go b/configEditor_global.go index 6a0e682..e32b44b 100644 --- a/configEditor_global.go +++ b/configEditor_global.go @@ -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() { diff --git a/configEditor_rules.go b/configEditor_rules.go index a91c3ac..3e9a0dd 100644 --- a/configEditor_rules.go +++ b/configEditor_rules.go @@ -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() { diff --git a/events.go b/events.go index 4dd0360..a430e09 100644 --- a/events.go +++ b/events.go @@ -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 } diff --git a/functions.go b/functions.go index e7d733d..c5a1c0a 100644 --- a/functions.go +++ b/functions.go @@ -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 ( diff --git a/functions_irc.go b/functions_irc.go index c0045d5..a45210d 100644 --- a/functions_irc.go +++ b/functions_irc.go @@ -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() { diff --git a/functions_twitch.go b/functions_twitch.go index 1bbfe8d..ead35bd 100644 --- a/functions_twitch.go +++ b/functions_twitch.go @@ -4,7 +4,7 @@ import ( "strings" "time" - "github.com/Luzifer/twitch-bot/plugins" + "github.com/Luzifer/twitch-bot/v2/plugins" ) func init() { diff --git a/go.mod b/go.mod index 59db8f3..9323243 100644 --- a/go.mod +++ b/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 diff --git a/internal/actors/ban/actor.go b/internal/actors/ban/actor.go index 8c146a5..1e3d908 100644 --- a/internal/actors/ban/actor.go +++ b/internal/actors/ban/actor.go @@ -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" diff --git a/internal/actors/counter/actor.go b/internal/actors/counter/actor.go index 1d37a4e..bbc13c7 100644 --- a/internal/actors/counter/actor.go +++ b/internal/actors/counter/actor.go @@ -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 ( diff --git a/internal/actors/counter/database.go b/internal/actors/counter/database.go index 704c87d..a295de0 100644 --- a/internal/actors/counter/database.go +++ b/internal/actors/counter/database.go @@ -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 ( diff --git a/internal/actors/counter/database_test.go b/internal/actors/counter/database_test.go index de392ff..5671192 100644 --- a/internal/actors/counter/database_test.go +++ b/internal/actors/counter/database_test.go @@ -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) { diff --git a/internal/actors/delay/actor.go b/internal/actors/delay/actor.go index 3210255..45e6d70 100644 --- a/internal/actors/delay/actor.go +++ b/internal/actors/delay/actor.go @@ -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" diff --git a/internal/actors/delete/actor.go b/internal/actors/delete/actor.go index 2d3b003..95d3551 100644 --- a/internal/actors/delete/actor.go +++ b/internal/actors/delete/actor.go @@ -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" diff --git a/internal/actors/filesay/actor.go b/internal/actors/filesay/actor.go index 8188797..14f2a8c 100644 --- a/internal/actors/filesay/actor.go +++ b/internal/actors/filesay/actor.go @@ -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 ( diff --git a/internal/actors/modchannel/actor.go b/internal/actors/modchannel/actor.go index b9290f5..3acb55a 100644 --- a/internal/actors/modchannel/actor.go +++ b/internal/actors/modchannel/actor.go @@ -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" diff --git a/internal/actors/nuke/actor.go b/internal/actors/nuke/actor.go index 3417d8f..9869995 100644 --- a/internal/actors/nuke/actor.go +++ b/internal/actors/nuke/actor.go @@ -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 ( diff --git a/internal/actors/punish/actor.go b/internal/actors/punish/actor.go index e79b6cd..013d804 100644 --- a/internal/actors/punish/actor.go +++ b/internal/actors/punish/actor.go @@ -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 ( diff --git a/internal/actors/punish/database.go b/internal/actors/punish/database.go index 5706688..efeca8c 100644 --- a/internal/actors/punish/database.go +++ b/internal/actors/punish/database.go @@ -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 ( diff --git a/internal/actors/punish/database_test.go b/internal/actors/punish/database_test.go index 6fa0c21..2dd5649 100644 --- a/internal/actors/punish/database_test.go +++ b/internal/actors/punish/database_test.go @@ -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) { diff --git a/internal/actors/quotedb/actor.go b/internal/actors/quotedb/actor.go index c2aa1a5..1c8bc55 100644 --- a/internal/actors/quotedb/actor.go +++ b/internal/actors/quotedb/actor.go @@ -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 ( diff --git a/internal/actors/quotedb/database.go b/internal/actors/quotedb/database.go index 8a1333d..a66a8dc 100644 --- a/internal/actors/quotedb/database.go +++ b/internal/actors/quotedb/database.go @@ -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 ( diff --git a/internal/actors/quotedb/database_test.go b/internal/actors/quotedb/database_test.go index a13a88a..33ff45c 100644 --- a/internal/actors/quotedb/database_test.go +++ b/internal/actors/quotedb/database_test.go @@ -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) { diff --git a/internal/actors/quotedb/http.go b/internal/actors/quotedb/http.go index e4d2e7d..484936a 100644 --- a/internal/actors/quotedb/http.go +++ b/internal/actors/quotedb/http.go @@ -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 ( diff --git a/internal/actors/raw/actor.go b/internal/actors/raw/actor.go index e147772..698e73f 100644 --- a/internal/actors/raw/actor.go +++ b/internal/actors/raw/actor.go @@ -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" diff --git a/internal/actors/respond/actor.go b/internal/actors/respond/actor.go index a8180ee..888e92a 100644 --- a/internal/actors/respond/actor.go +++ b/internal/actors/respond/actor.go @@ -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" diff --git a/internal/actors/timeout/actor.go b/internal/actors/timeout/actor.go index fd5c13b..7de091e 100644 --- a/internal/actors/timeout/actor.go +++ b/internal/actors/timeout/actor.go @@ -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" diff --git a/internal/actors/variables/actor.go b/internal/actors/variables/actor.go index 77bf0cf..40d91d3 100644 --- a/internal/actors/variables/actor.go +++ b/internal/actors/variables/actor.go @@ -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 ( diff --git a/internal/actors/variables/database.go b/internal/actors/variables/database.go index 844e64f..9ecc020 100644 --- a/internal/actors/variables/database.go +++ b/internal/actors/variables/database.go @@ -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 ( diff --git a/internal/actors/variables/database_test.go b/internal/actors/variables/database_test.go index 9bebf13..1e27d65 100644 --- a/internal/actors/variables/database_test.go +++ b/internal/actors/variables/database_test.go @@ -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) { diff --git a/internal/actors/whisper/actor.go b/internal/actors/whisper/actor.go index 5f7cc5f..09aebbb 100644 --- a/internal/actors/whisper/actor.go +++ b/internal/actors/whisper/actor.go @@ -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" diff --git a/internal/apimodules/customevent/actor.go b/internal/apimodules/customevent/actor.go index 21cef76..ca67a6c 100644 --- a/internal/apimodules/customevent/actor.go +++ b/internal/apimodules/customevent/actor.go @@ -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{} diff --git a/internal/apimodules/customevent/customevent.go b/internal/apimodules/customevent/customevent.go index 1c55d72..526078e 100644 --- a/internal/apimodules/customevent/customevent.go +++ b/internal/apimodules/customevent/customevent.go @@ -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" diff --git a/internal/apimodules/msgformat/msgformat.go b/internal/apimodules/msgformat/msgformat.go index db59cbc..42b17b6 100644 --- a/internal/apimodules/msgformat/msgformat.go +++ b/internal/apimodules/msgformat/msgformat.go @@ -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 diff --git a/internal/apimodules/overlays/database.go b/internal/apimodules/overlays/database.go index a8a64d1..bdea4d6 100644 --- a/internal/apimodules/overlays/database.go +++ b/internal/apimodules/overlays/database.go @@ -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 ( diff --git a/internal/apimodules/overlays/database_test.go b/internal/apimodules/overlays/database_test.go index d3cd9f9..94170e4 100644 --- a/internal/apimodules/overlays/database_test.go +++ b/internal/apimodules/overlays/database_test.go @@ -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) { diff --git a/internal/apimodules/overlays/overlays.go b/internal/apimodules/overlays/overlays.go index 1536040..2d0454f 100644 --- a/internal/apimodules/overlays/overlays.go +++ b/internal/apimodules/overlays/overlays.go @@ -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 ( diff --git a/internal/service/access/access.go b/internal/service/access/access.go index e991891..3b39381 100644 --- a/internal/service/access/access.go +++ b/internal/service/access/access.go @@ -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 ( diff --git a/internal/service/timer/timer.go b/internal/service/timer/timer.go index 37585e7..67326ef 100644 --- a/internal/service/timer/timer.go +++ b/internal/service/timer/timer.go @@ -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 ( diff --git a/internal/service/timer/timer_test.go b/internal/service/timer/timer_test.go index e0a0b16..5b1bd0f 100644 --- a/internal/service/timer/timer_test.go +++ b/internal/service/timer/timer_test.go @@ -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) { diff --git a/internal/template/api/api.go b/internal/template/api/api.go index d49b440..ab8b849 100644 --- a/internal/template/api/api.go +++ b/internal/template/api/api.go @@ -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)) diff --git a/internal/template/numeric/numeric.go b/internal/template/numeric/numeric.go index 22f9102..f299584 100644 --- a/internal/template/numeric/numeric.go +++ b/internal/template/numeric/numeric.go @@ -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 { diff --git a/internal/template/random/random.go b/internal/template/random/random.go index 8c92d0a..4a657f8 100644 --- a/internal/template/random/random.go +++ b/internal/template/random/random.go @@ -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 { diff --git a/internal/template/slice/slice.go b/internal/template/slice/slice.go index 17eec4a..73c840e 100644 --- a/internal/template/slice/slice.go +++ b/internal/template/slice/slice.go @@ -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 { diff --git a/internal/v2migrator/core.go b/internal/v2migrator/core.go index d3e43cf..e23662b 100644 --- a/internal/v2migrator/core.go +++ b/internal/v2migrator/core.go @@ -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) { diff --git a/internal/v2migrator/modOverlays.go b/internal/v2migrator/modOverlays.go index 4804f02..854958a 100644 --- a/internal/v2migrator/modOverlays.go +++ b/internal/v2migrator/modOverlays.go @@ -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 ( diff --git a/internal/v2migrator/modQuoteDB.go b/internal/v2migrator/modQuoteDB.go index 8cf89d4..3843736 100644 --- a/internal/v2migrator/modQuoteDB.go +++ b/internal/v2migrator/modQuoteDB.go @@ -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 ( diff --git a/internal/v2migrator/store.go b/internal/v2migrator/store.go index eacd86f..53847ed 100644 --- a/internal/v2migrator/store.go +++ b/internal/v2migrator/store.go @@ -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 ( diff --git a/irc.go b/irc.go index 92a830a..3ecceaf 100644 --- a/irc.go +++ b/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 ( diff --git a/main.go b/main.go index 8d49d7e..fb8aa31 100644 --- a/main.go +++ b/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 ( diff --git a/msgformatter.go b/msgformatter.go index 5a0eec9..70d1806 100644 --- a/msgformatter.go +++ b/msgformatter.go @@ -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 ( diff --git a/plugins.go b/plugins.go index 9fca854..ad677fd 100644 --- a/plugins.go +++ b/plugins.go @@ -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 { diff --git a/plugins/interface.go b/plugins/interface.go index 15d8c8e..d4f8443 100644 --- a/plugins/interface.go +++ b/plugins/interface.go @@ -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 ( diff --git a/plugins/rule.go b/plugins/rule.go index 1f3b076..9e01518 100644 --- a/plugins/rule.go +++ b/plugins/rule.go @@ -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 diff --git a/plugins/rule_test.go b/plugins/rule_test.go index 2c69869..d7b02fe 100644 --- a/plugins/rule_test.go +++ b/plugins/rule_test.go @@ -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 ( diff --git a/plugins_core.go b/plugins_core.go index 6ae13d5..ba05771 100644 --- a/plugins_core.go +++ b/plugins_core.go @@ -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 diff --git a/scopes.go b/scopes.go index 6d12430..cec3003 100644 --- a/scopes.go +++ b/scopes.go @@ -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{ diff --git a/status.go b/status.go index 02dc76e..c9f4cde 100644 --- a/status.go +++ b/status.go @@ -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 diff --git a/swagger.go b/swagger.go index e76fc68..cbee506 100644 --- a/swagger.go +++ b/swagger.go @@ -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 ( diff --git a/twitchWatcher.go b/twitchWatcher.go index 890768d..0fd56de 100644 --- a/twitchWatcher.go +++ b/twitchWatcher.go @@ -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 (