im retarded ( dosent put description twice anymore )
This commit is contained in:
parent
2ae3b34476
commit
6c625bb5a3
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class FourchanCommand extends Command {
|
||||||
let i = Math.floor((Math.random() * response.threads.length));
|
let i = Math.floor((Math.random() * response.threads.length));
|
||||||
|
|
||||||
let description = response.threads[i].posts[0].com.replace(/(<([^>]+)>)/ig,'');
|
let description = response.threads[i].posts[0].com.replace(/(<([^>]+)>)/ig,'');
|
||||||
description += decodeURI(description);
|
description = decodeURI(description);
|
||||||
|
|
||||||
const FourchanEmbed = new MessageEmbed()
|
const FourchanEmbed = new MessageEmbed()
|
||||||
.setColor('#ff9900')
|
.setColor('#ff9900')
|
||||||
|
|
Loading…
Reference in a new issue