mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-09-07 20:39:07 +00:00
prepare release v3.0.0
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2c71f57d02
commit
0a937a65d0
2
.github/workflows/test-and-build.yml
vendored
2
.github/workflows/test-and-build.yml
vendored
@ -5,6 +5,8 @@ on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- stable
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -1,4 +1,4 @@
|
||||
# 3.0.0 / Unreleased
|
||||
# 3.0.0 / 2022-11-02
|
||||
|
||||
**⚠ 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.
|
||||
@ -7,17 +7,22 @@
|
||||
**Changelog:**
|
||||
|
||||
* New Features
|
||||
* [core] Add config validation command
|
||||
* [core] Add rule-subscription feature
|
||||
* [core] Add `outbound_raid` event
|
||||
* [customevent] Add scheduled custom events
|
||||
* [templating] Add `jsonAPI` template function
|
||||
|
||||
* Improvements
|
||||
* [core] Move storage to database (#30, #32) ⚠
|
||||
* [core] Allow to pass ID to channel modification
|
||||
* [core] Extend API and replace deprecated chat commands (#34)
|
||||
* [editor] Add all template functions to highlighter
|
||||
* [overlays] Add `hide` option to debug overlay
|
||||
* [templating] Add sprig functions, replace some built-ins ⚠
|
||||
|
||||
* Bugfixes
|
||||
* [core] Fix: Allow 5s for rule updates
|
||||
|
||||
# 2.7.1 / 2022-09-06
|
||||
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/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)
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"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) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/go-irc/irc"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
"gopkg.in/yaml.v2"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const expectedMinConfigVersion = 2
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func registerEditorAutoMessageRoutes() {
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func registerEditorGlobalMethods() {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func registerEditorRulesRoutes() {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
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 }
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
korvike "github.com/Luzifer/korvike/functions"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/Luzifer/twitch-bot/v2
|
||||
module github.com/Luzifer/twitch-bot/v3
|
||||
|
||||
go 1.19
|
||||
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "ban"
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
|
||||
"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) {
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/go-irc/irc"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "delay"
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "delete"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "modchannel"
|
||||
|
@ -11,8 +11,8 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"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) {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"gorm.io/gorm"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"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) {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "raw"
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "respond"
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "timeout"
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"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) {
|
||||
|
@ -4,8 +4,8 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "whisper"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
type actor struct{}
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const actorName = "customevent"
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"github.com/gofrs/uuid/v3"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const cleanupTimeout = 15 * time.Minute
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"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
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var formatMessage plugins.MsgFormatter
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"gorm.io/gorm"
|
||||
"gorm.io/gorm/clause"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"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) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package api
|
||||
|
||||
import "github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
import "github.com/Luzifer/twitch-bot/v3/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/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func Register(args plugins.RegistrationArguments) error {
|
||||
|
@ -3,11 +3,11 @@ package v2migrator
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"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"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -3,8 +3,8 @@ package v2migrator
|
||||
import (
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -8,9 +8,9 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/v2migrator/crypt"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/v2migrator/crypt"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/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"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/service/timer"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/v2migrator"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
func loadPlugins(pluginDir string) error {
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"github.com/robfig/cron/v3"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
)
|
||||
|
||||
type (
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"gopkg.in/yaml.v2"
|
||||
|
||||
"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
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"github.com/go-irc/irc"
|
||||
"github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -10,32 +10,32 @@ import (
|
||||
|
||||
"github.com/Luzifer/go_helpers/v2/backoff"
|
||||
"github.com/Luzifer/go_helpers/v2/str"
|
||||
"github.com/Luzifer/twitch-bot/v2/internal/actors/announce"
|
||||
"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"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/announce"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/ban"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/counter"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/delay"
|
||||
deleteactor "github.com/Luzifer/twitch-bot/v3/internal/actors/delete"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/filesay"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/modchannel"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/nuke"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/punish"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/quotedb"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/raw"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/respond"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/timeout"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/variables"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/actors/whisper"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/apimodules/customevent"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/apimodules/msgformat"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/apimodules/overlays"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/service/access"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/template/api"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/template/numeric"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/template/random"
|
||||
"github.com/Luzifer/twitch-bot/v3/internal/template/slice"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/database"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
const ircHandleWaitRetries = 10
|
||||
|
@ -1,6 +1,6 @@
|
||||
package main
|
||||
|
||||
import "github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
import "github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
|
||||
var (
|
||||
channelDefaultScopes = []string{
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/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/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
||||
"github.com/Luzifer/twitch-bot/v2/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v2/plugins"
|
||||
"github.com/Luzifer/twitch-bot/v3/pkg/twitch"
|
||||
"github.com/Luzifer/twitch-bot/v3/plugins"
|
||||
)
|
||||
|
||||
type (
|
||||
|
Loading…
Reference in New Issue
Block a user