From 5ffe4e251b0dc0be2b73645cb7dd2ed93ccb86c8 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 24 Dec 2019 21:27:46 +0100 Subject: [PATCH] remove / in board args --- commands/fun/4chan.js | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/fun/4chan.js b/commands/fun/4chan.js index f72c5fe8..c3fed605 100644 --- a/commands/fun/4chan.js +++ b/commands/fun/4chan.js @@ -33,6 +33,7 @@ class FourchanCommand extends Command { if (boards.getType(args.board) === boards.NSFW && !message.channel.nsfw) return message.channel.send('Sorry, this board only work in nsfw channel!'); if (!args.board) return; + args.board = args.board.replace(/\//g, ''); let i = Math.floor((Math.random() * 5) + 1);