diff --git a/src/commands/members.ts b/src/commands/members.ts index 45d4dcc..1e7bde9 100644 --- a/src/commands/members.ts +++ b/src/commands/members.ts @@ -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, }, diff --git a/src/commands/stars.ts b/src/commands/stars.ts index 8b65c63..7fb6d31 100644 --- a/src/commands/stars.ts +++ b/src/commands/stars.ts @@ -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); diff --git a/src/constants.ts b/src/constants.ts index 15aa2bd..af16ee8 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -25,10 +25,5 @@ export const COLORS = { orange: 0xfb923c, } as const; -export const ALLOWED_ROLES = [ - 'Alert', - 'Events', - 'Progress', - 'Lenny is very special and thinks the UK needs a role', - 'Roly Poly Cult', -]; +/* CHANGEME */ +export const ALLOWED_ROLES = ['Alert', 'Events', 'Progress']; diff --git a/src/index.ts b/src/index.ts index 3022930..d0b72e9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -82,6 +82,7 @@ client.once('ready', async () => { if (e.cleanContent.match(BuildConfig.ETA_REGEX)) { await e.reply( + /* CHANGEME */ `${random(BuildConfig.ETA_MESSAGES)} <:pofat:964546613194420294>` ); } @@ -111,6 +112,7 @@ client.on('interactionCreate', async (interaction) => { await modrinthCommand(interaction); } else if (commandName === 'rolypoly') { await interaction.reply( + /* CHANGEME */ 'https://media.discordapp.net/attachments/985048903126769764/985051373886382100/rollin-time.gif?width=324&height=216' ); } else if (commandName === 'say') { diff --git a/src/utils/remoteVersions.ts b/src/utils/remoteVersions.ts index c786679..f2934cd 100644 --- a/src/utils/remoteVersions.ts +++ b/src/utils/remoteVersions.ts @@ -12,6 +12,7 @@ interface SimplifiedGHReleases { // TODO: caching export async function getLatestMinecraftVersion(): Promise { const f = await fetch( + /* CHANGEME */ 'https://meta.polymc.org/v1/net.minecraft/package.json' ); @@ -21,6 +22,7 @@ export async function getLatestMinecraftVersion(): Promise { // TODO: caching export async function getLatestPolyMCVersion(): Promise { + /* CHANGEME */ const f = await fetch('https://api.github.com/repos/PolyMC/PolyMC/releases'); const versions = (await f.json()) as SimplifiedGHReleases[];