From 0a95b720510355a2a60c3f1590af300918bbc099 Mon Sep 17 00:00:00 2001 From: amy Date: Wed, 12 Feb 2025 15:51:38 +0330 Subject: [PATCH] im not typing my username every fucking time fuck you --- src/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 373e3fc..4ca101d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,12 +33,7 @@ function keepV(url) { const commands = [ new SlashCommandBuilder().setName("nowplaying") - .setDescription("balls").addStringOption(option => - option - .setName("user") - .setDescription("username") - .setRequired(true) - ) + .setDescription("balls") .setIntegrationTypes([ ApplicationIntegrationType.UserInstall ]) @@ -67,9 +62,8 @@ client.on(Events.InteractionCreate, async (interaction) => { if (commandName !== "nowplaying") return; await interaction.deferReply() - const user = interaction.options.getString('user'); - const meow = await fetch(`https://api.listenbrainz.org/1/user/${user}/playing-now`).then((res) => res.json()); + const meow = await fetch(`https://api.listenbrainz.org/1/user/${config.listenbrainzAccount}/playing-now`).then((res) => res.json()); if (!meow) { interaction.followUp("something shat itself!"); return;