mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-22 06:04:20 +00:00
chore: small script and file fixes
Some checks are pending
Commitlint / Run commitlint scanning (push) Waiting to run
Some checks are pending
Commitlint / Run commitlint scanning (push) Waiting to run
This commit is contained in:
parent
9a4c794d51
commit
6865672d81
9 changed files with 310 additions and 141 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue