remove / in board args

merge-requests/4/head
loicbersier 5 years ago
parent a1d0782a83
commit 5ffe4e251b

@ -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);

Loading…
Cancel
Save