mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Proper \n Splitting in Wikipedia Command
This commit is contained in:
@@ -34,7 +34,7 @@ class WikipediaCommand extends commando.Command {
|
|||||||
message.channel.sendMessage(":x: Error! Entry Not Found!");
|
message.channel.sendMessage(":x: Error! Entry Not Found!");
|
||||||
} else {
|
} else {
|
||||||
description = description.substr(0, 1900);
|
description = description.substr(0, 1900);
|
||||||
description = description.replace(/\n/, "\n\n");
|
description = description.split('\n').join("\n\n");
|
||||||
if(description.length > 1900) {
|
if(description.length > 1900) {
|
||||||
const embed = new Discord.RichEmbed()
|
const embed = new Discord.RichEmbed()
|
||||||
.setColor(0xE7E7E7)
|
.setColor(0xE7E7E7)
|
||||||
|
|||||||
Reference in New Issue
Block a user