Fix sanitization with homebrew, changed links to point to the new help link

This commit is contained in:
TheEssem 2019-12-06 08:55:30 -06:00
parent 3836ecb69b
commit 38fa8c4629
5 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@ exports.run = async (message, args) => {
if (args.length === 0) return `${message.author.mention}, you need to provide some text to make a Homebrew Channel edit!`;
message.channel.sendTyping();
const template = "./assets/images/hbc.png";
const cleanedMessage = args.join(" ").toLowerCase().replace(/&/g, "\\&amp;").replace(/>/g, "\\&gt;").replace(/</g, "\\&lt;").replace(/\n/g, " ");
const cleanedMessage = args.join(" ").toLowerCase().replace(/\n/g, " ");
const command = gm(template).gravity("Center").font("./assets/hbc.ttf").out("-kerning", "-5").fill("white").pointSize(96).drawText(0, 0, cleanedMessage);
const resultBuffer = await gmToBuffer(command);
return message.channel.createMessage("", {

View file

@ -1,5 +1,5 @@
exports.run = async (message) => {
return `${message.author.mention}, you can invite me to your server here: <https://discordapp.com/oauth2/authorize?client_id=515571942418546689&scope=bot&permissions=70642766>`;
return `${message.author.mention}, you can invite me to your server here: <https://projectlounge.pw/invitedev>`;
};
exports.category = 1;