Skip to content

Commit

Permalink
prepare release v3.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Nov 2, 2022
1 parent 2c71f57 commit 0a937a6
Show file tree
Hide file tree
Showing 76 changed files with 144 additions and 137 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches-ignore:
- stable
tags:
- 'v*'

permissions:
contents: write
Expand Down
7 changes: 6 additions & 1 deletion History.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions action_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion actorDocs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion automessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion botEditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion botUserState.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion chatcommands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions configEditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configEditor_automessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion configEditor_general.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion configEditor_global.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion configEditor_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion functions_irc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion functions_twitch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"time"

"github.com/Luzifer/twitch-bot/v2/plugins"
"github.com/Luzifer/twitch-bot/v3/plugins"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Luzifer/twitch-bot/v2
module github.com/Luzifer/twitch-bot/v3

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/actors/announce/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/ban/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/counter/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/counter/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/counter/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/delay/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/delete/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/filesay/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/modchannel/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/nuke/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
6 changes: 3 additions & 3 deletions internal/actors/punish/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/punish/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/punish/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions internal/actors/quotedb/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/quotedb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/quotedb/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/quotedb/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion internal/actors/raw/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 0a937a6

Please sign in to comment.