Commit Graph

54 Commits

Author SHA1 Message Date
c63793be2d
Lint: Update linter config
and fix some newly appearing linter errors

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-06-09 13:01:32 +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
c78356f68f
Lint: Update linter config, improve code quality
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-01-01 17:52:39 +01:00
bcc5b4eba7
[core] Update go-irc to v4.0.0
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-09-11 19:51:38 +02:00
0a53863b69
[core] Add channel specific module configuration interface
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-09-02 14:12:08 +02:00
a58b72c268
[#16] Implement Raffle module (#47) 2023-07-14 16:15:58 +02:00
f5f8feb730
[core] Deps: Update dependencies
also switch to yaml.v3 to improve config rendering

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-06-30 17:42:13 +02:00
fdf3d95322
[core] Fix missing timer configuration for permits
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-06-16 22:00:46 +02:00
4f12b5c206
[editor] Add validation for template fields
closes #38

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-04-02 15:04:51 +02:00
014f90c94c
[editor] Notify frontend to reload data after token change
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-02-06 23:41:54 +01:00
61a3facb64
[core] Add validation for rule UUIDs to be unique
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-12-18 14:48:57 +01:00
0a937a65d0
prepare release v3.0.0
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-11-02 22:54:52 +01:00
2c71f57d02
[core] Add config validation command
- Fix missing field validation for required fields
- Add validation of template fields
- Report all issues in configuration

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-10-31 17:47:06 +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
61cc2d64b3
[core] Add rule-subscription feature
- Add remote url to rules
- Add cron to update remote URLs hourly
- Add frontend display for shared rules
- Add frontend feature to subscribe rules

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-10-07 19:23:51 +02:00
a7533cbd8b
[core] Move storage to SQLite database (#30)
fixes #29
2022-09-10 13:39:07 +02:00
7fa2c2e4b6
Lint: Replace deprecated io/ioutil package
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-09-06 00:34:30 +02:00
58b2f17885
[core] Fix: Accept 1s cooldown, fix user and channel cooldowns
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-03-12 01:28:20 +01:00
084c849fbb
Lint: Fix daedcode / error message
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-01-31 02:14:36 +01:00
8247978151
[lint] Properly format inputs
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-25 23:48:16 +01:00
8ba6d2ef08
[core] BREAKING: Allow actors to set fields those after them (#11)
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-11-15 21:14:40 +01:00
77aa2e411c
[core] Implement write authorization for APIs (#9) 2021-10-25 21:40:52 +02:00
fdeccc304a
[core] Allow the bot to track config editor changes through Git
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-10-22 17:09:39 +02:00
b59676492e
Breaking: Add configuration interface and switch to more generic config format (#7) 2021-09-22 15:36:45 +02:00
06ec111163
Fix: Nil pointer segfaults due to direct access to message object
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-09-02 23:26:39 +02:00
404ece80ed
Provide HTTP server and registration function
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-08-25 20:55:02 +02:00
b47ffbfff7
Add plugin support to allow extending of functionality (#6) 2021-08-19 15:33:56 +02:00
50a155ddb2
Lint: Update linter list, disable gomnd for some lines
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-06-29 00:05:11 +02:00
ede8a95ed4
Use more flexible Actor format to allow addition of new actors (#5) 2021-06-11 13:52:42 +02:00
b6d59045d0
Add global variables to be used in templates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-25 16:26:03 +02:00
60fe2621c4
Drop HCL support (causes too much effort for too little benefit)
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-25 01:01:46 +02:00
aa649da902
Add HCL config format support
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-24 17:36:16 +02:00
aa735fc01f
Unlock auto-messages to prevent dead-locks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-11 01:01:12 +02:00
ef0767e396
Log all config loads
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-11 00:45:27 +02:00
d1e63f0c2b
Log amount of loaded rules on reload
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-05-11 00:24:36 +02:00
29fd5f25f5
Lint: Reduce complexity of loadConfig function
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-04-21 20:03:25 +02:00
5a2620b316
Add raw-log functionality
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-04-09 18:14:44 +02:00
b2b1401ded
Move rule to own source file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-27 18:00:56 +01:00
95be0de55b
Add automated messages (#2) 2021-03-27 17:59:56 +01:00
396a6452d9
Fix: Channel name must be stripped
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-21 15:09:22 +01:00
c18f96f889
Allow to specify user-groups to skip cooldown
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-21 14:36:28 +01:00
f6a1c33cb7
Add config parameter to disable rule on offline stream
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-21 14:06:13 +01:00
cc8160ec67
Fix: Allow templating to read user input
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-06 01:42:40 +01:00
6a218030a0
Add counter_set support
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-03-06 01:35:20 +01:00
1ade654a13
Improve timer entries
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-01-24 01:46:40 +01:00
2a1b8d2a6c
Add fallback text for failed respond templates
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-01-21 01:00:04 +01:00
6d9484be2d
Add command action to execute arbitrary logic
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2021-01-10 22:15:57 +01:00
433b84fcb7
Add users matching
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-31 19:46:55 +01:00
3a3959c79c
Add delete action for single message
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-27 14:42:51 +01:00
58e984a4f4
Fix: Broken caching of regular expressions
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-25 21:03:57 +01:00