dont need this
This commit is contained in:
parent
eaa439f68c
commit
b0fefd0203
1 changed files with 1 additions and 9 deletions
|
@ -44,18 +44,10 @@ class FourchanCommand extends Command {
|
|||
i = Math.floor((Math.random() * response.threads.length));
|
||||
}
|
||||
|
||||
let description = response.threads[i].posts[0].com;
|
||||
description = decodeURI(description);
|
||||
|
||||
let regex = /(<([^>]+)>)/ig;
|
||||
if (regex.test(description)) {
|
||||
description = response.threads[i].posts[0].com.replace(/(<([^>]+)>)/ig,'');
|
||||
}
|
||||
|
||||
const FourchanEmbed = new MessageEmbed()
|
||||
.setColor('#ff9900')
|
||||
.setTitle(`${response.threads[i].posts[0].name} | ${response.threads[i].posts[0].no}`)
|
||||
.setDescription(description)
|
||||
.setDescription(response.threads[i].posts[0].sub)
|
||||
.setImage(`https://i.4cdn.org/${args.board}/${response.threads[i].posts[0].tim}${response.threads[i].posts[0].ext}`)
|
||||
.setURL(`https://boards.4chan.org/${args.board}/thread/${response.threads[i].posts[0].no}/${response.threads[i].posts[0].semantic_url}`)
|
||||
.setFooter(`${boards.getName(args.board)} | ${response.threads[i].posts[0].now}`)
|
||||
|
|
Loading…
Reference in a new issue