From 7b9549f883060786df3af6b46e494b01c71215cc Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 8 Oct 2023 18:24:17 +0500 Subject: [PATCH] ad --- commands/General/shorturl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/General/shorturl.js b/commands/General/shorturl.js index d61ff90b..e7ef2e94 100644 --- a/commands/General/shorturl.js +++ b/commands/General/shorturl.js @@ -47,7 +47,7 @@ class Shorturl extends BaseCommand { */ async execute(client, interaction) { const url = interaction.options.getString("url"); - const res = await fetch(`http://jababot.ru/yourls/yourls-api.php?signature=fdf1397cfe&action=shorturl&url=${encodeURIComponent(url)}&format=json`).then(res => res.json()); + const res = await fetch(`http://jababot.ru/yourls/yourls-api.php?signature=${client.config.apiKeys.jababot_yourls}&action=shorturl&url=${encodeURIComponent(url)}&format=json`).then(res => res.json()); interaction.reply({ content: `<${res.shorturl}>`,