Fixed issue with skip vote counts, added headless chrome IP to config, other fixes

This commit is contained in:
TheEssem 2020-09-18 19:54:52 -05:00
parent bc59550625
commit 925eb387dd
7 changed files with 44 additions and 14 deletions

View file

@ -21,7 +21,7 @@ exports.run = async (message, args) => {
},
"title": `${prefix}${command}`,
"url": "https://projectlounge.pw/esmBot/help.html",
"description": info.description,
"description": command === "tags" ? "The main tags command. Check the help page for more info: https://projectlounge.pw/esmBot/help.html" : info.description,
"color": 16711680,
"fields": [{
"name": "Aliases",
@ -32,7 +32,7 @@ exports.run = async (message, args) => {
"inline": true
}, {
"name": "Parameters",
"value": info.params ? info.params : "None",
"value": command === "tags" ? "[name]" : info.params ? info.params : "None",
"inline": true
}]
}

View file

@ -5,7 +5,7 @@ const fetch = require("node-fetch");
exports.run = async (message, args) => {
message.channel.sendTyping();
if (args.length === 0) return `${message.author.mention}, you need to provide a URL to screenshot!`;
const getEndpoint = await fetch("http://172.17.0.1:9222/json/version");
const getEndpoint = await fetch(`http://${process.env.CHROME}/json/version`);
const endpoint = await getEndpoint.json();
const url = urlRegex.test(args[0]) ? args[0] : `http://${args[0]}`;
const browser = await puppeteer.connect({