Commit Graph

84 Commits

Author SHA1 Message Date
PalmDevs
49c29bebfb fix(bots/discord): correct whitelist logic 2024-08-04 00:29:20 +07:00
PalmDevs
6d463df586 fix(bots/discord): set the label property correctly for message scans 2024-08-03 22:22:42 +07:00
PalmDevs
a7688fa9b9 fix(bots/discord): send right response for after regexes 2024-08-03 01:31:45 +07:00
PalmDevs
5925d90209 fix(bots/discord/commands/eval): evaluate in current context 2024-08-03 01:31:44 +07:00
PalmDevs
b9d08fff64 feat(bots/discord)!: add more attachment scan options 2024-08-02 19:26:20 +07:00
PalmDevs
6875b32fd0 feat(bots/discord/commands): add reload command 2024-08-02 19:26:20 +07:00
PalmDevs
c36684091d fix(bots/discord): open database as read-write 2024-08-02 19:26:19 +07:00
PalmDevs
f5939e2528 fix(bots/discord): remove bad text channel checks 2024-08-02 19:26:18 +07:00
PalmDevs
412e00317d fix(bots/discord): remove redundant footer for response embeds 2024-08-02 19:26:17 +07:00
PalmDevs
8fe78e424e fix(bots/discord)!: rename config replyToReplied to respondToReply 2024-08-02 19:26:12 +07:00
PalmDevs
bf661556e1 feat(bots/discord): add sticky messages 2024-08-01 02:29:49 +07:00
PalmDevs
763ef253f9 fix(bots/discord): import config from context 2024-07-31 21:25:12 +07:00
PalmDevs
bc437a5ec7 fix: other small issues 2024-07-31 19:34:12 +07:00
PalmDevs
620f9339f0 feat(bots/discord): allow admins to bypass permission checks 2024-07-31 19:34:11 +07:00
PalmDevs
1a4ec1ece8 feat(bots/discord): add more options for curing, fix default regex 2024-07-31 19:34:10 +07:00
PalmDevs
98ec37b5d1 fix(bots/discord): always true check causing no messages to be scanned 2024-07-31 19:34:10 +07:00
PalmDevs
ab62e55e76 fix(bots/discord): broken regex when prefix set to special characters 2024-07-31 02:12:30 +07:00
PalmDevs
d234d79310 fix(bots/discord): reset counter when reconnected to api, redo message scan filter logic 2024-07-31 00:22:02 +07:00
PalmDevs
d31616ebcb fix(bots/discord): hanging process when disconnecting from API too many times 2024-07-30 21:30:54 +07:00
PalmDevs
646ec8da87 feat(bots/discord): framework changes and new features
- Migrated to a new command framework which looks better and works better
- Fixed commands not being bundled correctly
- Added message (prefix) commands with argument validation
- Added a new CommandErrorType, for invalid arguments
- `/eval` is now a bit safer
- Corrected colors for the coinflip embed
- `/stop` now works even when the bot is not connected to the API
2024-07-30 21:15:36 +07:00
PalmDevs
38c06997b4 fix(bots/discord): cross-device link build errors 2024-07-28 21:14:07 +07:00
PalmDevs
cdb6001955 feat(bots/discord): blacklist and whitelist for filters 2024-07-28 20:43:25 +07:00
PalmDevs
cbf91162e2 fix(bot/discord): start remove preset timeout for role-preset command 2024-07-26 01:25:52 +07:00
PalmDevs
27662ed91a feat(bots/discord): add replyToReplied option in response config 2024-07-26 01:25:50 +07:00
PalmDevs
d0acab1915 feat(bots/discord)!: add admin config 2024-07-26 01:25:49 +07:00
PalmDevs
e86180fe29 feat(bots/discord)!: allow message scan response to be message payloads 2024-07-26 01:25:48 +07:00
PalmDevs
1f5c5a92a6 fix(bots/discord): set timeout for eligible mutes to unmute faster 2024-07-26 01:25:47 +07:00
PalmDevs
b79a1c7575 fix(bots/discord): only check for member permissions when specified while correcting responses 2024-07-26 01:25:46 +07:00
PalmDevs
875bd209b2 fix(bots/discord): wrong database schema path 2024-07-24 01:12:30 +07:00
PalmDevs
4834685186 feat(bots/discord): don't nest builds in src directory, autogen db when missing 2024-07-23 21:01:04 +07:00
PalmDevs
2f86586179 feat(bots/discord): add api.disconnectRetryInterval config 2024-07-20 23:30:10 +07:00
PalmDevs
09dc70632d fix(bots/discord/scripts): unintentional escaping on windows 2024-07-09 01:07:27 +07:00
PalmDevs
fb8af00866 fix(bots/discord): remove auto-generated files 2024-07-09 00:56:22 +07:00
Palm
77fefb9bef chore: fix more build issues
BREAKING CHANGE: In `@revanced/discord-bot`, its environment variable
                 `DATABASE_URL` has been renamed to `DATABASE_PATH`
                 and the `file:` prefix is no longer needed
2024-07-08 17:48:45 +00:00
PalmDevs
9b6ba56d99 chore: use alternative ways to bundle 2024-07-08 19:43:03 +07:00
PalmDevs
0bfd03583d feat(events)!: use better api for events 2024-07-04 21:11:38 +07:00
PalmDevs
af3759caf4 fix(bots/discord): use env for initializing database 2024-07-04 21:11:35 +07:00
PalmDevs
3b2596e748 fix(bots/discord/commands): minor issues 2024-06-24 23:18:27 +07:00
PalmDevs
0303fe3e36 fix(bots/discord): do decancer after resetting nickname 2024-06-24 23:17:28 +07:00
PalmDevs
ee885ca758 feat(bots/discord/utils/embeds): make title parameter nullable 2024-06-24 23:16:27 +07:00
PalmDevs
2e1e009b42 feat(bots/discord): add more fallbacks for decancering 2024-06-24 23:15:33 +07:00
PalmDevs
39cba97341 fix(bots/discord): owners cannot bypass checks on some commands 2024-06-24 23:02:08 +07:00
PalmDevs
e64d1da00c feat(bots/discord/commands): add eval command 2024-06-24 23:00:59 +07:00
PalmDevs
f50b26b82d fix(bots/discord): apply active role presets if members rejoin 2024-06-24 23:00:58 +07:00
PalmDevs
1723e8cacf feat(bots/discord): support nickname decancering 2024-06-24 23:00:54 +07:00
PalmDevs
a2bf3eade9 fix(bots/discord/commands): refactor and add checks 2024-06-24 20:50:46 +07:00
PalmDevs
fb01ce5740 feat(bots/discord/commands): add purge and role-preset commands 2024-06-24 20:48:04 +07:00
PalmDevs
83c314ef5f fix(bots/discord/utils/duration): fix empty string returning with duration is 0 2024-06-24 20:47:14 +07:00
PalmDevs
b056291ad0 fix(bots/discord/utils/discord/embeds): set thumbnail on moderation embeds 2024-06-24 20:46:31 +07:00
PalmDevs
7e8270f7d2 fix(bots/discord/utils/discord): add moderation module related functions 2024-06-24 20:25:16 +07:00