From 5f663e7abe37f941f16c8c6d1db5e04f3f02ca76 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Sat, 1 Mar 2025 17:45:12 +0900 Subject: [PATCH] feat: Add embed colors --- src/commands/dataLength.ts | 1 + src/init.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/src/commands/dataLength.ts b/src/commands/dataLength.ts index 6e5bb5a..ef7b5e5 100644 --- a/src/commands/dataLength.ts +++ b/src/commands/dataLength.ts @@ -101,6 +101,7 @@ export default class DataLengthCommand extends Command { inline: true, }, ) + .setColor(this.container.embedColors.default) return ctx instanceof Message ? await ctx.reply({ diff --git a/src/init.ts b/src/init.ts index 294aa2d..9cbf368 100644 --- a/src/init.ts +++ b/src/init.ts @@ -8,6 +8,11 @@ declare module '@sapphire/pieces' { config: Config prefix: string version: string + embedColors: { + default: number + fail: number + success: number + } } } @@ -22,5 +27,10 @@ container.dbDisconnect = async () => await disconnect() container.config = new Config() container.prefix = container.config.bot.prefix container.version = '5.0.0-newMuffin.e250301a' +container.embedColors = { + default: 0xaddb87, + fail: 0xff0000, + success: 0x00ff00, +} await connect(container.config.databaseUrl)