Add encryption

This commit is contained in:
Tarrgon
2026-06-29 18:04:58 -04:00
parent 3e26ff5450
commit 7b4e057764
13 changed files with 321 additions and 51 deletions
+2
View File
@@ -7,6 +7,7 @@ import { openRedisClient } from './shared/RedisClient';
import { Handler } from './types';
import { initIfNecessary, loadHandlersFrom, refreshCommands } from './utils';
import { initializeWebserver } from './webserver';
import { Encrypter } from './shared/Encrypter';
let ready = false;
@@ -133,6 +134,7 @@ client.on('clientReady', async () => {
await initIfNecessary(client, modals);
await initIfNecessary(client, menus);
Encrypter.initialize(config.DATABASE_SECRET!);
await Database.open('./data/discord-main.db');
await openRedisClient(config.REDIS_URL!, client);