From 2f7f2531d7435f704589f493741d4adbac0f7c58 Mon Sep 17 00:00:00 2001 From: Guilherme Afonso Date: Sun, 26 May 2024 17:08:47 -0300 Subject: [PATCH] fix: marquinhos web url on lastfm command --- deploy.sh | 1 + src/bot/commands/slashCommands/lastfm.ts | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 923249e..d73a82d 100755 --- a/deploy.sh +++ b/deploy.sh @@ -21,6 +21,7 @@ Environment="MONGO_DATABASE_NAME=$MARQUINHOS_MONGO_DATABASE_NAME" Environment="BOT_ID=$MARQUINHOS_BOT_ID" Environment="MARQUINHOS_API_KEY=$MARQUINHOS_API_KEY" Environment="MARQUINHOS_API_URL=$MARQUINHOS_API_URL" +Environment="MARQUINHOS_WEB_URL=$MARQUINHOS_WEB_URL" Environment="NODE_ENV=production" User=guilherme diff --git a/src/bot/commands/slashCommands/lastfm.ts b/src/bot/commands/slashCommands/lastfm.ts index 6067fee..030e98c 100644 --- a/src/bot/commands/slashCommands/lastfm.ts +++ b/src/bot/commands/slashCommands/lastfm.ts @@ -1,7 +1,10 @@ import { SlashCommandBuilder, EmbedBuilder } from 'discord.js'; +import dotenv from 'dotenv'; import { SlashCommand } from '@marquinhos/types'; +dotenv.config(); + export const lastfm: SlashCommand = { command: new SlashCommandBuilder() .setName('lastfm') @@ -17,7 +20,7 @@ export const lastfm: SlashCommand = { .setDescription( ` O marquinhos agora é integrado com o last.fm, para que seja possível registrar as músicas que você escuta nos bots de música.\n\n - Entre em [Marquinhos Web](https://devaneios.guilhermeasper.dev.br:3105/login) para configurar a sua conta! + Entre em [Marquinhos Web](${process.env.MARQUINHOS_WEB_URL}) para configurar a sua conta! ` ) .setTitle('Integração com o last.fm'),