Commit graph

61 commits

Author SHA1 Message Date
Dragory
28692962bc
refactor: replace io-ts with zod 2024-01-14 14:25:42 +00:00
Dragory
63c41f0278 feat: new username support vol 2 2023-06-24 12:07:58 +00:00
Dragory
5f194bf1ef
chore: fix lint errors; tweak lint rules 2023-05-08 22:58:51 +03:00
Dragory
16fa19d3e9
chore: prettier 2023-05-08 21:33:40 +03:00
Tiago R
06877e90cc
Update djs & knub (#395)
* update pkgs

Signed-off-by: GitHub <noreply@github.com>

* new knub typings

Signed-off-by: GitHub <noreply@github.com>

* more pkg updates

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* channel typings

Signed-off-by: GitHub <noreply@github.com>

* more message utils typings fixes

Signed-off-by: GitHub <noreply@github.com>

* migrate permissions

Signed-off-by: GitHub <noreply@github.com>

* fix: InternalPoster webhookables

Signed-off-by: GitHub <noreply@github.com>

* djs typings: Attachment & Util

Signed-off-by: GitHub <noreply@github.com>

* more typings

Signed-off-by: GitHub <noreply@github.com>

* fix: rename permissionNames

Signed-off-by: GitHub <noreply@github.com>

* more fixes

Signed-off-by: GitHub <noreply@github.com>

* half the number of errors

* knub commands => messageCommands

Signed-off-by: GitHub <noreply@github.com>

* configPreprocessor => configParser

Signed-off-by: GitHub <noreply@github.com>

* fix channel.messages

Signed-off-by: GitHub <noreply@github.com>

* revert automod any typing

Signed-off-by: GitHub <noreply@github.com>

* more configParser typings

Signed-off-by: GitHub <noreply@github.com>

* revert

Signed-off-by: GitHub <noreply@github.com>

* remove knub type params

Signed-off-by: GitHub <noreply@github.com>

* fix more MessageEmbed / MessageOptions

Signed-off-by: GitHub <noreply@github.com>

* dumb commit for @almeidx to see why this is stupid

Signed-off-by: GitHub <noreply@github.com>

* temp disable custom_events

Signed-off-by: GitHub <noreply@github.com>

* more minor typings fixes - 23 err left

Signed-off-by: GitHub <noreply@github.com>

* update djs dep

* +debug build method (revert this)

Signed-off-by: GitHub <noreply@github.com>

* Revert "+debug build method (revert this)"

This reverts commit a80af1e729b742d1aad1097df538d224fbd32ce7.

* Redo +debug build (Revert this)

Signed-off-by: GitHub <noreply@github.com>

* uniform before/after Load shorthands

Signed-off-by: GitHub <noreply@github.com>

* remove unused imports & add prettier plugin

Signed-off-by: GitHub <noreply@github.com>

* env fixes for web platform hosting

Signed-off-by: GitHub <noreply@github.com>

* feat: knub v32-next; related fixes

* fix: allow legacy keys in change_perms action

* fix: request Message Content intent

* fix: use Knub's config validation logic in API

* fix(dashboard): fix error when there are no message and/or slash commands in a plugin

* fix(automod): start_thread action thread options

* fix(CustomEvents): message command types

* chore: remove unneeded type annotation

* feat: add forum channel icon; use thread icon for news threads

* chore: make tslint happy

* chore: fix formatting

---------

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: almeidx <almeidx@pm.me>
Co-authored-by: Dragory <2606411+Dragory@users.noreply.github.com>
2023-04-01 14:58:17 +03:00
Almeida
7fb0d02adf
fix discord-api-types imports & usage of removed guild features (#335) 2022-06-26 14:09:27 +03:00
almeidx
7259f6017e
chore: remove double parenthesis in match_attachment_type trigger 2022-02-20 02:05:57 +00:00
Dragory
09125956a0
chore: run prettier on unformatted files 2021-11-03 16:54:21 +02:00
metal
446f188e16
feat: add automod thread_archive and thread_unarchive triggers (#292)
Co-authored-by: Almeida <almeidx@pm.me>
2021-10-31 22:08:29 +02:00
Almeida
6709115166
feat: add thread_create_spam automod trigger (#273) 2021-10-31 19:23:26 +02:00
Almeida
92dfbca362
feat: add thread_create and thread_delete automod triggers (#272)
Co-authored-by: metal <admin@metalruller.com>
2021-10-31 17:21:53 +02:00
Dragory
13c94a81cc
feat: Phisherman integration 2021-10-31 17:17:31 +02:00
Dragory
44f5b77cc7
perf(automod): also merge regexes in match_links, match_words 2021-10-17 08:03:38 +03:00
Dragory
d874617e48
perf: merge regexes in match_regex trigger while taking backreferences into account 2021-10-09 12:50:47 +03:00
Dragory
ef53ee64c6
fix: revert regex batching 2021-10-05 22:10:56 +03:00
Dragory
04c81727fb
debug+ 2021-10-05 21:51:29 +03:00
Dragory
b951feeabd
fix(automod): fix empty patterns list in match_regex matching every message 2021-10-05 21:48:02 +03:00
Dragory
392e2da2d1
perf(automod): bundle automod regex patterns for potentially increased performance 2021-10-05 21:30:35 +03:00
Dragory
ac79eb09f5
Reformat all files with Prettier 2021-09-11 19:06:51 +03:00
Dragory
70fb0b5baa
Ignore mime type charset and other extra details in match_mime_type 2021-09-05 21:01:13 +03:00
Hiroyuki
6a45ce67fa
feat(automod): MIME type trigger (#247) 2021-09-04 19:18:33 +03:00
Dragory
f208dc3013
matchAttachmentType fix 2021-08-18 22:44:54 +03:00
Dragory
e3c9dbf851
Hotfix 6 2021-08-18 22:29:46 +03:00
almeidx
5de35f711d
use Util methods for escaping inline code and code blocks 2021-07-29 17:35:27 +01:00
almeidx
74a676913e
user.tag 2021-07-29 00:37:19 +01:00
Dark
0822fc15e5
Type fixes for djs 2021-06-30 04:56:56 +02:00
Dark
f9dd82f201
Add member_leave automod trigger
At least i think so - cant test it until knub changes are done
2021-06-17 02:30:12 +02:00
Dark
5efdf5ce95
Formatting and initial ButtonRoles DB work 2021-06-08 02:23:30 +02:00
Dark
6ac9d2f2a2
Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
Dark
d0a1beb809
Finish preliminary rework, ready to test 2021-06-02 04:07:50 +02:00
Dark
52839cc9f3
More rework progress, remove all eris imports 2021-06-01 02:05:55 +02:00
Dragory
ec81f63b5d
Remove leftover console.log() 2021-04-29 02:15:06 +03:00
Nils
51db942d97
Allow Automod to distinguish whether mod actions are manual or automatic (#179) 2021-04-28 22:06:33 +03:00
Dragory
2e5224124f
Improve antiraid trigger automod logs 2021-04-02 19:50:37 +03:00
Dragory
3afc95c858
Fix antiraid_level automod trigger not being available 2021-04-02 19:47:30 +03:00
Dragory
9ac4e15573
automod: add any_message trigger 2021-04-02 17:57:04 +03:00
Dragory
b28186aa0a
automod: add antiraid_level trigger 2021-04-02 17:53:16 +03:00
Dragory
4147298120
Add counter documentation/examples. Tweak counter triggers/actions in automod.
Rename change_counter automod action to add_to_counter,
add set_counter action, rename counter trigger to counter_trigger.
2021-04-02 17:44:43 +03:00
Dragory
ab8ea2e7e5
counters: move triggers to counters plugin; architectural tweaks 2021-04-02 16:36:45 +03:00
Dragory
93912541b4
automod: add triggers for mod actions 2021-02-14 16:58:02 +02:00
Dragory
c3407e2d5d
Counters v0.9
Includes automod trigger/action. No user-facing commands yet.
2021-02-13 17:29:10 +02:00
Dragory
bc5455bf9f
Fix accidental early return in match_invites automod trigger 2020-11-09 20:43:46 +02:00
Dragory
f3609aa8ab
Fix config parsing issues caused by RoleAddedTrigger/RoleRemovedTrigger default config 2020-11-09 20:12:54 +02:00
Dragory
629002b8d9
Turn on strict TS compilation. Fix up and tweak types accordingly. 2020-11-09 20:03:57 +02:00
Dragory
3aada93a80
Add sticker_spam automod trigger 2020-10-16 02:01:07 +03:00
Dragory
025f2bec7f
Add missing triggers to automod AvailableTriggers type 2020-09-15 02:12:17 +03:00
Dragory
46400166ea
Disable match_embeds by default in other triggers as well. Add strip_markdown option to match_regex as well. 2020-09-15 02:02:24 +03:00
Dragory
47319e2177
automod: disable match_embeds by default 2020-09-15 01:07:59 +03:00
Dragory
cb5723db7c
automod: add strip_markdown option to match_words trigger 2020-09-15 01:07:28 +03:00
Dragory
a5c40a58bf
automod: make match_attachment_type case-insensitive 2020-09-15 01:02:28 +03:00