From fd7f8eba960981482fabf350995bf753feebb176 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 3 Mar 2025 11:42:27 -0500 Subject: More commands ported; Almost all 2.x features have been added --- bot/src/utils/sync.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bot/src/utils/sync.js (limited to 'bot/src/utils/sync.js') diff --git a/bot/src/utils/sync.js b/bot/src/utils/sync.js new file mode 100644 index 0000000..ecee7b1 --- /dev/null +++ b/bot/src/utils/sync.js @@ -0,0 +1,17 @@ +import { quote, pendingQuote } from '../models/quote.js'; +import { guildSettings } from '../models/guild-settings.js'; + + +export function syncDB() { + quote.sync({alter: true}).then(() => { + console.log('Quote database synced!'); + }); + + pendingQuote.sync({alter: true}).then(() => { + console.log('Pending Quote database synced!'); + }); + + guildSettings.sync({alter: true}).then(() => { + console.log('Guild database synced!'); + }); +} -- cgit v1.2.3