Commit graph

41 commits

Author SHA1 Message Date
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
f2f4d43412
Fix: Permits must only count for one channel
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-24 15:59:11 +01:00
914f0a8a24
Use strings array for channel matching
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-24 15:07:20 +01:00
6e4af652b9
Add DisableOnMatchMessages functionality
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-12-22 01:46:37 +01:00
da62d913c8
Initial version 2020-12-21 01:33:57 +01:00