various changes to bot
This commit is contained in:
parent
a55623fa68
commit
622cbab216
5 changed files with 8 additions and 13 deletions
|
@ -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,
|
||||
},
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue