diff --git a/commands/test.js b/commands/test.js new file mode 100644 index 0000000..95d3fbf --- /dev/null +++ b/commands/test.js @@ -0,0 +1,35 @@ +const got = require("got"); + +exports.run = async (client, message, args, level) => { + const pgAmount = args[0] || 2; + const out = await got(`https://loripsum.net/api/${pgAmount}/decorate/code`); + + let final = out.body; + final = final.then( + .replace("", "**")).then( + .replace("", "**")).then( + .replace("

", "")).then( + .replace("

", "")).then( + .replace("", "_")).then( + .replace("", "_")).then( + .replace("", "||").then( + .replace("", "||").then( + .replace("
","```").then(
+  	.replace("
","```"); + + message.channel.send(final); +}; + +exports.conf = { + enabled: true, + guildOnly: false, + aliases: [], + permLevel: "Bot Owner" +}; + +exports.help = { + name: "test", + category: "", + description: "Sends randomly-generated Lorem Ipsum demo text.", + usage: "test [paragraphCount:2]" +}; \ No newline at end of file