prepare release v3.0.0

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-11-02 22:38:14 +01:00
parent 2c71f57d02
commit 0a937a65d0
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
76 changed files with 144 additions and 137 deletions

View file

@ -5,6 +5,8 @@ on:
push: push:
branches-ignore: branches-ignore:
- stable - stable
tags:
- 'v*'
permissions: permissions:
contents: write contents: write

View file

@ -1,4 +1,4 @@
# 3.0.0 / Unreleased # 3.0.0 / 2022-11-02
**⚠ Breaking Changes:** **⚠ Breaking Changes:**
- Backend storage format has been switched from JSON-file to database. Migrations must be run before use of `v3.x` version. See [README](https://github.com/Luzifer/twitch-bot#upgrade-from-v2x-to-v3x) for instructions. - Backend storage format has been switched from JSON-file to database. Migrations must be run before use of `v3.x` version. See [README](https://github.com/Luzifer/twitch-bot#upgrade-from-v2x-to-v3x) for instructions.
@ -7,17 +7,22 @@
**Changelog:** **Changelog:**
* New Features * New Features
* [core] Add config validation command
* [core] Add rule-subscription feature * [core] Add rule-subscription feature
* [core] Add `outbound_raid` event
* [customevent] Add scheduled custom events
* [templating] Add `jsonAPI` template function * [templating] Add `jsonAPI` template function
* Improvements * Improvements
* [core] Move storage to database (#30, #32) ⚠ * [core] Move storage to database (#30, #32) ⚠
* [core] Allow to pass ID to channel modification * [core] Allow to pass ID to channel modification
* [core] Extend API and replace deprecated chat commands (#34)
* [editor] Add all template functions to highlighter * [editor] Add all template functions to highlighter
* [overlays] Add `hide` option to debug overlay * [overlays] Add `hide` option to debug overlay
* [templating] Add sprig functions, replace some built-ins ⚠ * [templating] Add sprig functions, replace some built-ins ⚠
* Bugfixes * Bugfixes
* [core] Fix: Allow 5s for rule updates
# 2.7.1 / 2022-09-06 # 2.7.1 / 2022-09-06

View file

@ -10,8 +10,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func init() { func init() {

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
//go:embed actorDocs.tpl //go:embed actorDocs.tpl

View file

@ -11,8 +11,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var instanceState = uuid.Must(uuid.NewV4()).String() var instanceState = uuid.Must(uuid.NewV4()).String()

View file

@ -13,7 +13,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var cronParser = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor) var cronParser = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)

View file

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
func getAuthorizationFromRequest(r *http.Request) (string, *twitch.Client, error) { func getAuthorizationFromRequest(r *http.Request) (string, *twitch.Client, error) {

View file

@ -6,7 +6,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
type ( type (

View file

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -15,7 +15,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const expectedMinConfigVersion = 2 const expectedMinConfigVersion = 2

View file

@ -11,8 +11,8 @@ import (
"github.com/gorilla/websocket" "github.com/gorilla/websocket"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const websocketPingInterval = 30 * time.Second const websocketPingInterval = 30 * time.Second

View file

@ -9,7 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func registerEditorAutoMessageRoutes() { func registerEditorAutoMessageRoutes() {

View file

@ -12,7 +12,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type ( type (

View file

@ -8,7 +8,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func registerEditorGlobalMethods() { func registerEditorGlobalMethods() {

View file

@ -9,7 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func registerEditorRulesRoutes() { func registerEditorRulesRoutes() {

View file

@ -5,7 +5,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func ptrStr(s string) *string { return &s } func ptrStr(s string) *string { return &s }

View file

@ -13,7 +13,7 @@ import (
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
korvike "github.com/Luzifer/korvike/functions" korvike "github.com/Luzifer/korvike/functions"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func init() { func init() {

View file

@ -4,7 +4,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func init() { func init() {

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/Luzifer/twitch-bot/v2 module github.com/Luzifer/twitch-bot/v3
go 1.19 go 1.19

View file

@ -6,8 +6,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -8,8 +8,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "ban" const actorName = "ban"

View file

@ -10,8 +10,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -5,7 +5,7 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -5,7 +5,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func TestCounterStoreLoop(t *testing.T) { func TestCounterStoreLoop(t *testing.T) {

View file

@ -6,7 +6,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "delay" const actorName = "delay"

View file

@ -4,8 +4,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "delete" const actorName = "delete"

View file

@ -10,7 +10,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ( const (

View file

@ -7,8 +7,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "modchannel" const actorName = "modchannel"

View file

@ -11,8 +11,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ( const (

View file

@ -8,9 +8,9 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ( const (

View file

@ -8,7 +8,7 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func TestPunishmentRoundtrip(t *testing.T) { func TestPunishmentRoundtrip(t *testing.T) {

View file

@ -6,8 +6,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ( const (

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"gorm.io/gorm" "gorm.io/gorm"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func TestQuotesRoundtrip(t *testing.T) { func TestQuotesRoundtrip(t *testing.T) {

View file

@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -4,7 +4,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "raw" const actorName = "raw"

View file

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "respond" const actorName = "respond"

View file

@ -8,8 +8,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "timeout" const actorName = "timeout"

View file

@ -8,8 +8,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -5,7 +5,7 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func TestVariableRoundtrip(t *testing.T) { func TestVariableRoundtrip(t *testing.T) {

View file

@ -4,8 +4,8 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "whisper" const actorName = "whisper"

View file

@ -7,7 +7,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type actor struct{} type actor struct{}

View file

@ -10,8 +10,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const actorName = "customevent" const actorName = "customevent"

View file

@ -8,8 +8,8 @@ import (
"github.com/gofrs/uuid/v3" "github.com/gofrs/uuid/v3"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const cleanupTimeout = 15 * time.Minute const cleanupTimeout = 15 * time.Minute

View file

@ -7,7 +7,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
const memoryCacheRefreshInterval = 5 * time.Minute const memoryCacheRefreshInterval = 5 * time.Minute

View file

@ -6,7 +6,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var formatMessage plugins.MsgFormatter var formatMessage plugins.MsgFormatter

View file

@ -8,8 +8,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type ( type (

View file

@ -7,8 +7,8 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func TestEventDatabaseRoundtrip(t *testing.T) { func TestEventDatabaseRoundtrip(t *testing.T) {

View file

@ -17,8 +17,8 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ( const (

View file

@ -8,8 +8,8 @@ import (
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
const ( const (

View file

@ -10,8 +10,8 @@ import (
"gorm.io/gorm" "gorm.io/gorm"
"gorm.io/gorm/clause" "gorm.io/gorm/clause"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type ( type (

View file

@ -7,7 +7,7 @@ import (
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func TestTimerRoundtrip(t *testing.T) { func TestTimerRoundtrip(t *testing.T) {

View file

@ -1,6 +1,6 @@
package api package api
import "github.com/Luzifer/twitch-bot/v2/plugins" import "github.com/Luzifer/twitch-bot/v3/plugins"
func Register(args plugins.RegistrationArguments) error { func Register(args plugins.RegistrationArguments) error {
args.RegisterTemplateFunction("jsonAPI", plugins.GenericTemplateFunctionGetter(jsonAPI)) args.RegisterTemplateFunction("jsonAPI", plugins.GenericTemplateFunctionGetter(jsonAPI))

View file

@ -3,7 +3,7 @@ package numeric
import ( import (
"math" "math"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func Register(args plugins.RegistrationArguments) error { func Register(args plugins.RegistrationArguments) error {

View file

@ -8,7 +8,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func Register(args plugins.RegistrationArguments) error { func Register(args plugins.RegistrationArguments) error {

View file

@ -2,7 +2,7 @@ package slice
import ( import (
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func Register(args plugins.RegistrationArguments) error { func Register(args plugins.RegistrationArguments) error {

View file

@ -3,11 +3,11 @@ package v2migrator
import ( import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/internal/actors/counter" "github.com/Luzifer/twitch-bot/v3/internal/actors/counter"
"github.com/Luzifer/twitch-bot/v2/internal/actors/variables" "github.com/Luzifer/twitch-bot/v3/internal/actors/variables"
"github.com/Luzifer/twitch-bot/v2/internal/service/access" "github.com/Luzifer/twitch-bot/v3/internal/service/access"
"github.com/Luzifer/twitch-bot/v2/internal/service/timer" "github.com/Luzifer/twitch-bot/v3/internal/service/timer"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
func (s storageFile) migrateCoreKV(db database.Connector) (err error) { func (s storageFile) migrateCoreKV(db database.Connector) (err error) {

View file

@ -3,8 +3,8 @@ package v2migrator
import ( import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/overlays" "github.com/Luzifer/twitch-bot/v3/internal/apimodules/overlays"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -3,8 +3,8 @@ package v2migrator
import ( import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/internal/actors/quotedb" "github.com/Luzifer/twitch-bot/v3/internal/actors/quotedb"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
) )
type ( type (

View file

@ -8,9 +8,9 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/internal/v2migrator/crypt" "github.com/Luzifer/twitch-bot/v3/internal/v2migrator/crypt"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type ( type (

4
irc.go
View file

@ -13,8 +13,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

10
main.go
View file

@ -25,11 +25,11 @@ import (
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/rconfig/v2" "github.com/Luzifer/rconfig/v2"
"github.com/Luzifer/twitch-bot/v2/internal/service/access" "github.com/Luzifer/twitch-bot/v3/internal/service/access"
"github.com/Luzifer/twitch-bot/v2/internal/service/timer" "github.com/Luzifer/twitch-bot/v3/internal/service/timer"
"github.com/Luzifer/twitch-bot/v2/internal/v2migrator" "github.com/Luzifer/twitch-bot/v3/internal/v2migrator"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
const ( const (

View file

@ -10,7 +10,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -12,7 +12,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
func loadPlugins(pluginDir string) error { func loadPlugins(pluginDir string) error {

View file

@ -6,8 +6,8 @@ import (
"github.com/robfig/cron/v3" "github.com/robfig/cron/v3"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
type ( type (

View file

@ -18,7 +18,7 @@ import (
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
const remoteRuleFetchTimeout = 5 * time.Second const remoteRuleFetchTimeout = 5 * time.Second

View file

@ -8,7 +8,7 @@ import (
"github.com/go-irc/irc" "github.com/go-irc/irc"
"github.com/sirupsen/logrus" "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
) )
var ( var (

View file

@ -10,32 +10,32 @@ import (
"github.com/Luzifer/go_helpers/v2/backoff" "github.com/Luzifer/go_helpers/v2/backoff"
"github.com/Luzifer/go_helpers/v2/str" "github.com/Luzifer/go_helpers/v2/str"
"github.com/Luzifer/twitch-bot/v2/internal/actors/announce" "github.com/Luzifer/twitch-bot/v3/internal/actors/announce"
"github.com/Luzifer/twitch-bot/v2/internal/actors/ban" "github.com/Luzifer/twitch-bot/v3/internal/actors/ban"
"github.com/Luzifer/twitch-bot/v2/internal/actors/counter" "github.com/Luzifer/twitch-bot/v3/internal/actors/counter"
"github.com/Luzifer/twitch-bot/v2/internal/actors/delay" "github.com/Luzifer/twitch-bot/v3/internal/actors/delay"
deleteactor "github.com/Luzifer/twitch-bot/v2/internal/actors/delete" deleteactor "github.com/Luzifer/twitch-bot/v3/internal/actors/delete"
"github.com/Luzifer/twitch-bot/v2/internal/actors/filesay" "github.com/Luzifer/twitch-bot/v3/internal/actors/filesay"
"github.com/Luzifer/twitch-bot/v2/internal/actors/modchannel" "github.com/Luzifer/twitch-bot/v3/internal/actors/modchannel"
"github.com/Luzifer/twitch-bot/v2/internal/actors/nuke" "github.com/Luzifer/twitch-bot/v3/internal/actors/nuke"
"github.com/Luzifer/twitch-bot/v2/internal/actors/punish" "github.com/Luzifer/twitch-bot/v3/internal/actors/punish"
"github.com/Luzifer/twitch-bot/v2/internal/actors/quotedb" "github.com/Luzifer/twitch-bot/v3/internal/actors/quotedb"
"github.com/Luzifer/twitch-bot/v2/internal/actors/raw" "github.com/Luzifer/twitch-bot/v3/internal/actors/raw"
"github.com/Luzifer/twitch-bot/v2/internal/actors/respond" "github.com/Luzifer/twitch-bot/v3/internal/actors/respond"
"github.com/Luzifer/twitch-bot/v2/internal/actors/timeout" "github.com/Luzifer/twitch-bot/v3/internal/actors/timeout"
"github.com/Luzifer/twitch-bot/v2/internal/actors/variables" "github.com/Luzifer/twitch-bot/v3/internal/actors/variables"
"github.com/Luzifer/twitch-bot/v2/internal/actors/whisper" "github.com/Luzifer/twitch-bot/v3/internal/actors/whisper"
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/customevent" "github.com/Luzifer/twitch-bot/v3/internal/apimodules/customevent"
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/msgformat" "github.com/Luzifer/twitch-bot/v3/internal/apimodules/msgformat"
"github.com/Luzifer/twitch-bot/v2/internal/apimodules/overlays" "github.com/Luzifer/twitch-bot/v3/internal/apimodules/overlays"
"github.com/Luzifer/twitch-bot/v2/internal/service/access" "github.com/Luzifer/twitch-bot/v3/internal/service/access"
"github.com/Luzifer/twitch-bot/v2/internal/template/api" "github.com/Luzifer/twitch-bot/v3/internal/template/api"
"github.com/Luzifer/twitch-bot/v2/internal/template/numeric" "github.com/Luzifer/twitch-bot/v3/internal/template/numeric"
"github.com/Luzifer/twitch-bot/v2/internal/template/random" "github.com/Luzifer/twitch-bot/v3/internal/template/random"
"github.com/Luzifer/twitch-bot/v2/internal/template/slice" "github.com/Luzifer/twitch-bot/v3/internal/template/slice"
"github.com/Luzifer/twitch-bot/v2/pkg/database" "github.com/Luzifer/twitch-bot/v3/pkg/database"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const ircHandleWaitRetries = 10 const ircHandleWaitRetries = 10

View file

@ -1,6 +1,6 @@
package main package main
import "github.com/Luzifer/twitch-bot/v2/pkg/twitch" import "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
var ( var (
channelDefaultScopes = []string{ channelDefaultScopes = []string{

View file

@ -9,7 +9,7 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
const statusIRCMessageReceivedTimeout = 5 * time.Minute const statusIRCMessageReceivedTimeout = 5 * time.Minute

View file

@ -12,7 +12,7 @@ import (
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/wzshiming/openapi/spec" "github.com/wzshiming/openapi/spec"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
var ( var (

View file

@ -7,8 +7,8 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"github.com/Luzifer/twitch-bot/v2/pkg/twitch" "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
"github.com/Luzifer/twitch-bot/v2/plugins" "github.com/Luzifer/twitch-bot/v3/plugins"
) )
type ( type (