Fix sanitization with homebrew, changed links to point to the new help link
This commit is contained in:
parent
3836ecb69b
commit
38fa8c4629
5 changed files with 6 additions and 6 deletions
|
@ -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, "\\&").replace(/>/g, "\\>").replace(/</g, "\\<").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("", {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue