aboutsummaryrefslogtreecommitdiff
path: root/bot/src/utils/sync.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
committerAndrew Lee <andrew@alee14.me>2025-04-02 02:21:41 -0400
commit10434adad478d21bbb834a5803125db9f54c9d6c (patch)
treee1159a26948d24c2a065dfd15f71b64970515930 /bot/src/utils/sync.js
parent657599acccf351c7c9366cec9f648b7496c89bdb (diff)
downloadAleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.tar.gz
AleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.tar.bz2
AleeBot-10434adad478d21bbb834a5803125db9f54c9d6c.zip
Added i18n (basic); Blacklist feature; Put error msg into a filebeta
Diffstat (limited to 'bot/src/utils/sync.js')
-rw-r--r--bot/src/utils/sync.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/src/utils/sync.js b/bot/src/utils/sync.js
index 9e11971..894015f 100644
--- a/bot/src/utils/sync.js
+++ b/bot/src/utils/sync.js
@@ -1,6 +1,7 @@
import { quote, pendingQuote } from '../db/models/quote.js';
import { guildSettings } from '../db/models/guild-settings.js';
import { commandUsages } from '../db/models/command-usages.js';
+import { blacklistGuild, blacklistUser } from '../db/models/blacklist.js';
export function syncDB() {
quote.sync().then(() => {
@@ -18,4 +19,12 @@ export function syncDB() {
commandUsages.sync().then(() => {
console.log('[>] Command usage database synced!');
});
+
+ blacklistUser.sync().then(() => {
+ console.log('[>] Blacklist user database synced!');
+ });
+
+ blacklistGuild.sync().then(() => {
+ console.log('[>] Blacklist guild database synced!');
+ });
}