From 386379b49323dc3d86074345b3e6ceab85ca233d Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 28 Jul 2022 19:48:30 +0800 Subject: [PATCH] no chat reports --- src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b04d92b..eddfe9e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -77,8 +77,15 @@ client.once('ready', async () => { if (process.env.NODE_ENV !== 'development') console.warn(yellow(bold('Running in production mode!'))); + const mcVersion = await getLatestMinecraftVersion(); client.user?.presence.set({ - activities: [{ name: `Minecraft ${await getLatestMinecraftVersion()}` }], + activities: [ + { + name: `Minecraft ${mcVersion}${ + mcVersion === '1.19.1' ? ' w/ No Chat Reports' : '' + }`, + }, + ], status: 'online', });