From 78e1457b11e029cf072e823b0e7d1f1d962b7638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Wed, 26 Jun 2019 04:39:41 +0200 Subject: [PATCH] if its webm, swf or pdf send it as link --- commands/fun/4chan.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/fun/4chan.js b/commands/fun/4chan.js index 0e55b4e..2460bc6 100644 --- a/commands/fun/4chan.js +++ b/commands/fun/4chan.js @@ -53,7 +53,7 @@ class FourchanCommand extends Command { .setFooter(`${boards.getName(args.board)} | ${response.threads[i].posts[0].now}`) .setTimestamp(); - if (response.threads[i].posts[0].ext == '.webm') { + if (response.threads[i].posts[0].ext == '.webm' || response.threads[i].posts[0].ext == '.pdf' || response.threads[i].posts[0].ext == '.swf') { message.channel.send(FourchanEmbed); message.channel.send(`https://i.4cdn.org/${args.board}/${response.threads[i].posts[0].tim}${response.threads[i].posts[0].ext}`);