mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-24 14:14:59 +05:00
ad
This commit is contained in:
parent
04bb802cc5
commit
7b9549f883
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class Shorturl extends BaseCommand {
|
||||||
*/
|
*/
|
||||||
async execute(client, interaction) {
|
async execute(client, interaction) {
|
||||||
const url = interaction.options.getString("url");
|
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({
|
interaction.reply({
|
||||||
content: `<${res.shorturl}>`,
|
content: `<${res.shorturl}>`,
|
||||||
|
|
Loading…
Reference in a new issue