From cbe8df23e129e7c8aaaa586c23d756ee23566690 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Fri, 27 Sep 2024 22:46:07 +0900 Subject: [PATCH] fix: Can't send preview version use warning message --- package.json | 2 +- src/listeners/messageCreate.ts | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a0b3670..17c5737 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "3.1.0-cake.p240927a", + "version": "3.1.0-cake.p240927b", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/listeners/messageCreate.ts b/src/listeners/messageCreate.ts index fe12337..44c3fdd 100644 --- a/src/listeners/messageCreate.ts +++ b/src/listeners/messageCreate.ts @@ -4,7 +4,7 @@ import { noPerm } from '../modules' import Dokdo from 'dokdo' class MessageCreateListener extends Listener { - public async run(msg: Message) { + public async run(msg: Message) { const prefix = this.container.prefix const dokdo = new Dokdo(this.container.client, { aliases: ['dokdo', 'dok'], @@ -14,14 +14,13 @@ class MessageCreateListener extends Listener { }) if (msg.author.bot) return if (msg.content.startsWith(prefix)) { - if (this.container.release === 'PRE-RELEASE') { + if (this.container.release === 'PREVIEW') { await msg.reply({ embeds: [ { title: '정식 출시 이전 버전 사용안내', description: `현재 이 버전의 ${this.container.client.user?.username}은 정식출시 되기 이전이라 많이 불안정할 수 있어요.\n` + - `또한 이 버전의 ${this.container.client.user?.username}의 데이터는 정식버전과 연동이 안돼요.\n` + `만약 오류가 발견되면 ${(await this.container.client.users.fetch(this.container.config.bot.owner_ID)).username}님에게 알려주세요.\n`, color: 0xff0000, footer: {