avatar urls in db

This commit is contained in:
Milo
2025-08-25 14:16:05 +02:00
parent e6bf855947
commit d283fa405c
3 changed files with 22 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ import { DiscordRequest } from '../api/discord.js';
import { initTodaysSOTD } from '../game/points.js';
import {
insertManyUsers, insertManySkins, resetDailyReward,
pruneOldLogs, getAllUsers as dbGetAllUsers, getSOTD, getUser, getAllUsers, insertUser,
pruneOldLogs, getAllUsers as dbGetAllUsers, getSOTD, getUser, getAllUsers, insertUser, stmtUsers,
} from '../database/index.js';
import { activeInventories, activeSearchs, activePredis, pokerRooms, skins } from '../game/state.js';
@@ -48,6 +48,7 @@ export async function getAkhys(client) {
warns: 0,
allTimeWarns: 0,
totalRequests: 0,
avatarUrl: akhy.user.displayAvatarURL({ dynamic: true, size: 256 }),
}));
if (usersToInsert.length > 0) {