Commit graph

43 commits

Author SHA1 Message Date
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
Dragory
1f4f27c26a
perf(messageSaver): passthrough bot messages without saving them 2021-10-17 08:13:08 +03:00
Dragory
7a35b477bc
fix: hotfix 2021-10-09 14:30:46 +03:00
Dragory
b7c7e002eb
perf: move encryption/decryption to a separate thread 2021-10-09 14:22:51 +03:00
Dragory
0b337a13a4
perf: insert + ignore errors instead of INSERT IGNORE 2021-10-09 13:05:02 +03:00
Dragory
72d5d9d17a
chore: move saved message clean-up loop with other global loops 2021-10-09 12:18:19 +03:00
Dragory
394573318d
chore: code clean-up for GuildSavedMessages 2021-10-09 12:03:29 +03:00
Dragory
e5389c0e55
perf(savedMessages): save a db lookup and message content decryption by building the returned entity manually after creation 2021-10-09 11:49:34 +03:00
Dragory
ac79eb09f5
Reformat all files with Prettier 2021-09-11 19:06:51 +03:00
Dragory
0d1bfefce0
Optimize/tweak message saving 2021-09-04 19:05:47 +03:00
Dragory
7054412640
MessageSaver: use a queue, add more logging for duplicate IDs 2021-08-20 21:00:53 +03:00
Dragory
7deb737918
-+debug 2021-08-19 01:24:01 +03:00
Dragory
b06e51f25c
Hotfix 12 2021-08-18 23:03:28 +03:00
Dragory
929716a958
Hotfix 11 2021-08-18 22:50:31 +03:00
Dragory
bed6589d48
Typed log functions + more 2021-08-18 01:51:42 +03:00
almeidx
3537305c59
upgrade discord.js 2021-08-04 20:45:42 +01:00
Dark
acb4913495
More fixes, change rest of stripObjectToScalars to configAccessibleObj 2021-07-21 22:14:09 +02:00
Dark
2700f4e389
Allow !clean to delete messages not already saved
If a message is found that is not stored, we save it and then bulk delete
2021-06-17 02:10:23 +02:00
Dark
6ac9d2f2a2
Organise all imports, make Mutes depend on Logs 2021-06-06 23:51:32 +02:00
Dark
edcfd2333f
Bot now connects, lint fixes 2021-06-02 19:35:44 +02:00
Dark
d0a1beb809
Finish preliminary rework, ready to test 2021-06-02 04:07:50 +02:00
Dark
8f7a6510eb
Pre-plugin moves 2021-05-31 21:12:24 +02:00
Dragory
f6be4f4af6
Update to Knub30.0.0-beta.37 and Eris 0.15, first pass 2021-05-23 14:35:16 +03: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
c67a1df11d
Add support for server-specific timezone and date format settings 2020-08-10 00:24:06 +03:00
Dragory
1064a1ca46
Add custom logger. Fix a bunch of errors. Optimize imports. 2020-07-22 22:56:21 +03:00
Dragory
c308a9b5ce
logs: fix bulk deletes not being logged 2020-06-04 02:51:15 +03:00
Dragory
de71520747
Add username/nickname history retention periods 2020-06-02 00:26:06 +03:00
Dragory
80f6f69ccd
Message cleanup tweaks 2020-06-01 21:28:07 +03:00
Dragory
0eb6a0ef97
Tweaks to avoid deadlocks in GuildSavedMessages 2020-05-30 22:30:44 +03:00
Dragory
a011d4524d
Push cleanup interval back to 5min 2020-05-28 03:13:34 +03:00
Dragory
d781c6c3b4
Fix deletion limit in message cleanup 2020-05-28 03:09:27 +03:00
Dragory
bf3cae2201
Run message cleanup more frequently with a lower limit 2020-05-28 02:52:51 +03:00
Dragory
26f1042b8e
Retain bot messages for a shorter time, raise deletion limit 2020-05-28 02:50:07 +03:00
Dragory
6cd07ed696
Don'Ãt run message cleanup queries in the API process 2020-05-28 02:45:07 +03:00
Dragory
1ff86defc3
Fix 3 2020-05-28 02:39:04 +03:00
Dragory
ca9af4f24e
Fix 2 2020-05-28 02:37:14 +03:00
Dragory
51a16ee1aa
Fix 2020-05-28 02:34:26 +03:00
Dragory
8f71e51041
Small tweak to message cleanup 2020-05-28 02:30:03 +03:00
Dragory
e4aa101edd
Lower message retention period to 1 day 2020-05-28 01:54:38 +03:00
Dragory
1ae84afb12 Fix tslint errors 2020-01-12 12:04:20 +02:00
Dragory
16111bbe84 Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests. 2019-11-02 22:11:26 +02:00
Renamed from src/data/GuildSavedMessages.ts (Browse further)