From 14f36ed2372eef24e128684b42b64cdbad3cdeea Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Thu, 27 Apr 2023 23:27:41 +0900 Subject: [PATCH] =?UTF-8?q?.env=20for=20replit=20=EC=99=9C=20=EC=82=B4?= =?UTF-8?q?=EC=95=84=EB=8F=8C=EC=95=84=EC=98=A8=EA=B1=B4=EC=A7=84=20?= =?UTF-8?q?=EB=AA=A8=EB=A5=B4=EA=B2=A0=EC=A7=80=EB=A7=8C=20=EC=95=84?= =?UTF-8?q?=EB=AC=B4=ED=8A=BC=20=EC=82=B4=EC=95=84=EB=8F=8C=EC=95=84?= =?UTF-8?q?=EC=98=A8=20replit=EC=9D=84=20=EC=B6=95=ED=95=98=ED=95=98?= =?UTF-8?q?=EB=A9=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 6 +++++- .gitignore | 1 + src/main.ts | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index fc56a69..7b4234d 100644 --- a/.env.example +++ b/.env.example @@ -9,4 +9,8 @@ DISCORD_TOKEN = "" # discord application client id DISCORD_CLIENT_ID = "" # guild id for deploy -DISCORD_TARGRT_GUILD_ID = "" \ No newline at end of file +DISCORD_TARGRT_GUILD_ID = "" + +# ETC +# server name +RUNNER_NAME = "" diff --git a/.gitignore b/.gitignore index 876487d..9aab4a3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # 인증정보 /firebase .env +*.env # 패키지 /node_modules diff --git a/src/main.ts b/src/main.ts index 59006f7..cc4561c 100755 --- a/src/main.ts +++ b/src/main.ts @@ -9,8 +9,8 @@ const client = new Client({ intents: [GatewayIntentBits.Guilds] }); const commandColection = getCommands(); export let onTime: Date; -client.once(Events.ClientReady, (c) => { - console.log(`Ready: discord client as ${c.user.tag}`); +client.once(Events.ClientReady, (event) => { + console.log(`[DISCORD] Ready: discord client as ${event.user.tag}`); onTime = new Date(); });