chore: small script and file fixes
Some checks are pending
Commitlint / Run commitlint scanning (push) Waiting to run

This commit is contained in:
ahmadk953 2025-06-17 20:24:57 -04:00
parent 9a4c794d51
commit 6865672d81
No known key found for this signature in database
GPG key ID: 31D488058614185C
9 changed files with 310 additions and 141 deletions

View file

@ -19,7 +19,7 @@ import { moderationTable } from '@/db/schema.js';
import { db, getMember, handleDbError, updateMember } from '@/db/db.js';
import logAction from './logging/logAction.js';
const __dirname = path.resolve();
const PROJECT_ROOT = path.resolve();
/**
* Turns a duration string into milliseconds
@ -68,7 +68,7 @@ export async function generateMemberBanner({
height,
}: generateMemberBannerTypes): Promise<AttachmentBuilder> {
const welcomeBackground = path.join(
__dirname,
PROJECT_ROOT,
'assets',
'images',
'welcome-bg.png',