30305600e7
[spotify] Fix: Refresh-Token gets revoked when using two functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-05-13 18:26:38 +02:00
5dd6a5323c
[core] Add locking to prevent concurrent rule executions
...
refs #59
ensures counter actions are not triggered concurrently by two persons
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-05-01 22:39:18 +02:00
a01ce9aa5f
prepare release v3.30.0
2024-04-26 19:49:45 +02:00
eb37a75da8
Update dependencies
...
remove addition of Sprig functions as korvike functions now are based on
the Sprig functions
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-26 19:34:35 +02:00
3cefd39960
CI: Update linter config
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-26 17:48:17 +02:00
ebf734be40
[templating] Add userExists
function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-18 00:26:14 +02:00
f56a7a3266
[eventsub] Suspicious user topics were moved from beta to v1
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-13 17:29:14 +02:00
932879c8df
prepare release v3.29.2
2024-04-13 14:19:20 +02:00
97dbc74ebc
CI: Fix missing permissions in workflow
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-13 14:13:36 +02:00
2c9d8ef33c
prepare release v3.29.1
2024-04-13 14:01:53 +02:00
de3a4941ed
CI: Fix bugs in new CI flow
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-13 13:55:54 +02:00
8dd3d7db0c
prepare release v3.29.0
2024-04-13 13:17:00 +02:00
2c17ef58fa
[counter] Revise template parsing logic
...
in order to support both `counter_set` and `counter_step` set to
conditional templates and therefore i.e. combine deathcounter increase
/ decrease / set and query into one rule
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-08 19:47:15 +02:00
8154a50351
[core] Enforce field validation on config
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-08 17:40:24 +02:00
8c2c4e7c62
[docs] Add field-type annotations to events
...
closes #57
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
7737d939f4
[eventsub] Add support for suspicious user events
...
- User status is updated
- User sent a message while having sus-user status
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
acf96c31ad
[core] Fix: Do not cache nil-TwitchClient
...
as client is assigned after plugins are initialized
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
afe2963d33
[core] Fix: Don't initialize twitch client before start checks
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
293a7d9e30
[counter] Allow counterTopList
to specify how to sort
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
94b040ed81
[counter] Record first seen and last updated on counters
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
b131a7be5f
[clip] Fix: Optional fields were required
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
6c941fb330
CI: Concatenate workflow into one workflow
...
from one file per job through script
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
264eef4130
[core] Fix: Do not retry core-kv query when it's not set
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
35b47bca65
[linkcheck] Remove flaky test
...
caused by domaingrabber grabbing some random domain
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
e7e9877c05
[core] Remove deprecated fallback token / token migration
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
a49a1844ba
[docs] Fix typo
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
dc8f645f24
[spotify] Switch to PKCE flow, remove need for clientSecret
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
a9984b2df2
[spotify] Improve error handling / documentation
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
30482591a7
[core] Switch to go_helpers FieldCollection
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-07 13:37:13 +02:00
262742603c
[eventsub] Fix: Fetching existing subscriptions broken
...
as of fetch must not specify more than one filter
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-03 13:14:44 +02:00
f76cbebda3
CI: Build tags to develop, drop stable tag
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-02 16:29:35 +02:00
4dd903288c
prepare release v3.28.1
2024-04-02 16:17:41 +02:00
9d1ede2b1e
Lint: Fix error caused by stupid linter
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-02 16:12:35 +02:00
60abc308fb
prepare release v3.28.0
2024-04-02 15:22:29 +02:00
e8eb6cd0f4
[templating] add humanDateDiff
and formatHumanDateDiff
functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-02 15:19:49 +02:00
bc9c3eeb15
[spotify] Add spotifyLink
template function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-28 18:29:39 +01:00
bb83c34344
Update dependencies
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-28 00:18:28 +01:00
f684abc29f
Lint: Update linter config, remove no longer required exeptions
...
which might be a false-negative and re-added later
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-28 00:15:53 +01:00
1d4cbd9a66
[eventsub] Fix: Properly handle 409 error
...
by fetching the existing subscription instead of failing to access the
expected response which is not there in case of a collision
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-28 00:09:28 +01:00
0e4a963bc7
[eventsub] Fix: Twitch renamed field in adbreak_begin
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-25 22:23:31 +01:00
3f376cb2ce
[docs] Fix: Add missing documentation for adbreak_begin
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-25 22:13:13 +01:00
46db72b2cc
[overlays] Reduce socket abnormal closure to warning
...
resolves TWITCH-BOT-A
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-23 12:16:10 +01:00
c3085ea7f9
[eventsub] Suppress error on abnormal closure and reconnect
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-23 12:03:39 +01:00
031ad331e4
[eventsub] Fix: Do not retry subscription on collision
...
resolves #TWITCH-BOT-7
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-22 21:29:07 +01:00
abe839df3a
prepare release v3.27.0
2024-03-20 18:14:57 +01:00
6970069778
[core] Add Sentry-Environment configuration
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-20 12:01:41 +01:00
fbfcb959c0
[overlays] Fix: JOIN / PART events spamming the database
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-15 20:48:17 +01:00
7f4470e692
[spotify] Add spotifyCurrentPlaying
template function
...
together with Spotify integration for the bot
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-15 19:51:00 +01:00
caadb6b590
[core] Fix: Newly initialized bots crash when not authorized yet
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-14 15:56:53 +01:00
c5d83f9b77
prepare release v3.26.1
2024-03-06 17:50:50 +01:00