various changes to bot

This commit is contained in:
Ryan Cao 2022-10-18 17:42:04 +08:00
parent a55623fa68
commit 622cbab216
No known key found for this signature in database
5 changed files with 8 additions and 13 deletions

View file

@ -15,12 +15,7 @@ export const membersCommand = async (
{
title: `${memes.length} total members!`,
description: `${
memes.filter(
(m) =>
m.presence?.status === 'online' ||
m.presence?.status === 'idle' ||
m.presence?.status === 'dnd'
).length
memes.filter((m) => m.presence?.status !== 'offline').length
} online members`,
color: COLORS.blue,
},

View file

@ -6,6 +6,7 @@ export const starsCommand = async (
) => {
await i.deferReply();
/* CHANGEME */
const count = await fetch('https://api.github.com/repos/PolyMC/PolyMC')
.then((r) => r.json() as Promise<{ stargazers_count: number }>)
.then((j) => j.stargazers_count);