mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +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!");
|
||||
} else {
|
||||
description = description.substr(0, 1900);
|
||||
description = description.replace(/\n/, "\n\n");
|
||||
description = description.split('\n').join("\n\n");
|
||||
if(description.length > 1900) {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setColor(0xE7E7E7)
|
||||
|
||||
Reference in New Issue
Block a user