ebf734be40
[templating] Add userExists
function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-18 00:26:14 +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
e8eb6cd0f4
[templating] add humanDateDiff
and formatHumanDateDiff
functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-04-02 15:19:49 +02:00
c78356f68f
Lint: Update linter config, improve code quality
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-01-01 17:52:39 +01:00
9ebdaa8a71
[templating] Add scheduleSegments
function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-11-05 13:44:16 +01:00
1d35bd3a4f
[templating] Add function chatterHasBadge
...
and fix `botHasBadge` which previously did what `chatterHasBadge` does
now which was fully incorrect behavior
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-10-26 19:07:17 +02:00
fbc76761b4
[core] Fix: Replace deprecated follow API
...
- add `moderator:read:followers` scope to bot-defaults
- document requirement of bot to be mod to read followers
- adjust `GetFollowDate` method to use new channel followers endpoint
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-09-29 14:58:59 +02:00
220a501ab8
[templating] Refactor: Move twitch functions into library package
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-09-03 13:01:57 +02:00
1585df5e90
[docs] Add auto-generated template documentation ( #50 )
2023-08-25 23:37:37 +02:00
a39dc5e4c6
[templating] Add b64urldec
and b64urlenc
functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-08-25 13:14:23 +02:00
21557a5538
[template] Add textAPI
function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-07-15 23:54:22 +02:00
f9c6be800b
[template] Add subCount
, subPoints
template functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-04-22 22:23:35 +02:00
0a937a65d0
prepare release v3.0.0
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-11-02 22:54:52 +01:00
1409a4bd34
[lint] Fix v2 import path not carrying version
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-10-23 15:06:45 +02:00
af38aaa5e4
[templating] Add sprig functions, replace some built-ins
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-10-02 17:12:52 +02:00
499313fbe6
[templating] Add jsonAPI
template function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-09-26 23:32:48 +02:00
e259ca209c
Lint: Fix broken / missing nosec / nolint comments
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-09-06 00:35:20 +02:00
07a83e2fdb
Add randomString
template function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-08-16 17:55:23 +02:00
bf9ec094bf
Add "mod" function for modulo in templating
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-07-15 19:25:05 +02:00
b0d9b5782f
[template] Add inList
function
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-06-20 21:55:24 +02:00
8b8c7601f1
[msgformat] Add more mathematical functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-02-10 01:12:57 +01:00
8247978151
[lint] Properly format inputs
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-25 23:48:16 +01:00
c884a7c532
[templating] Add multiply
and seededRandom
template functions
...
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-19 22:53:30 +01:00