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

@ -4,7 +4,7 @@ head
meta(name='description' content='The command list for esmBot')
meta(property='og:title' content='esmBot Command List')
meta(property='og:site_name' content='esmBot')
meta(property='og:url' content='https://essem.space/esmBot/commands.html')
meta(property='og:url' content='https://projectlounge.pw/esmBot/help.html')
meta(property='og:description' content='This is the command list for esmBot.')
meta(property='og:type' content='object')
meta(property='og:image' content='https://raw.githubusercontent.com/TheEssem/esmBot/master/esmbot.png')

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;

View file

@ -5,7 +5,7 @@
esmBot is an entertainment-focused Discord bot made using [Eris](https://abal.moe/Eris/) with soundboard, utility, and image manipulation commands.
## Usage
You can invite the bot to your server using this link: https://discordapp.com/oauth2/authorize?client_id=515571942418546689&scope=bot&permissions=70642766
You can invite the bot to your server using this link: https://projectlounge.pw/invitedev
A command list can be found [here](https://projectlounge.pw/esmBot/help.html).
@ -26,5 +26,5 @@ Finally, fill in the info inside `.env.example`, rename it to `.env`, and run `a
If you want to run this on Windows, I highly recommend using Windows Subsystem for Linux. I personally used the [Ubuntu](https://www.microsoft.com/store/productId/9NBLGGH4MSV6) distro for testing, however other distros might work as well.
## Credits
Icon by [Stellio](https://twitter.com/MeloncholySteel).
Icon by [Stellio](https://twitter.com/SteelStellio).
All images, sounds, and fonts are copyright of their respective owners.

View file

@ -69,7 +69,7 @@ exports.defaults = {
};
exports.tagDefaults = {
help: {
content: "https://essem.space/esmBot/commands.html?dev=true",
content: "https://projectlounge.pw/esmBot/help.html",
author: "198198681982205953"
}
};