add inventory, give and admingive commands. Handle user records in database and minor bugfixes

This commit is contained in:
2025-06-27 12:14:34 +02:00
parent 274b49dd27
commit fa7c45042d
10 changed files with 187 additions and 14 deletions

View File

@@ -38,7 +38,7 @@ async function initAuth(userId: string, clientId: string, clientSecret: string,
await deleteAuthRecord(userId);
const code = await codepromise;
await server.stop(true);
server.stop(false);
console.info(`Authentication code received.`);
const tokenData = await exchangeCode(clientId, clientSecret, code, redirectURL);
console.info(`Successfully authenticated code.`);