no chat reports

This commit is contained in:
Ryan Cao 2022-07-28 19:48:30 +08:00
parent 4c7c6cba39
commit 386379b493
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F

View file

@ -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',
});