diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-29 11:42:40 -0400 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-29 11:42:40 -0400 |
| commit | f18f5fff1fd0b8336df464d6e6f62efbc29aa618 (patch) | |
| tree | cc23d2aa33ccb9dcd67f6bda811e5f32b0edc766 /bot/src/utils/sync.js | |
| parent | 879c2a05c86682564f1f68aa234fd8e5298e95f6 (diff) | |
| download | AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.tar.gz AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.tar.bz2 AleeBot-f18f5fff1fd0b8336df464d6e6f62efbc29aa618.zip | |
Added analytics; try/catch for ready event
Diffstat (limited to 'bot/src/utils/sync.js')
| -rw-r--r-- | bot/src/utils/sync.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/src/utils/sync.js b/bot/src/utils/sync.js index fbf6c2e..fa3d8c9 100644 --- a/bot/src/utils/sync.js +++ b/bot/src/utils/sync.js @@ -1,5 +1,6 @@ import { quote, pendingQuote } from '../models/quote.js'; import { guildSettings } from '../models/guild-settings.js'; +import { commandUsages } from '../models/command-usages.js'; export function syncDB() { quote.sync().then(() => { @@ -13,4 +14,8 @@ export function syncDB() { guildSettings.sync().then(() => { console.log('[>] Guild database synced!'); }); + + commandUsages.sync().then(() => { + console.log('[>] Command usage database synced!'); + }); } |
