Fixed characters not being properly encoded, fixed images not being properly appended, more fixes

This commit is contained in:
TheEssem 2020-09-09 21:36:20 -05:00
parent 0bd8905829
commit 4caec5aefa
12 changed files with 14 additions and 7 deletions

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://${process.env.NODE_ENV === "development" ? "192.168.99.100" : "172.17.0.2"}:9222/json/version`);
const getEndpoint = await fetch("http://172.17.0.1:9222/json/version");
const endpoint = await getEndpoint.json();
const url = urlRegex.test(args[0]) ? args[0] : `http://${args[0]}`;
const browser = await puppeteer.connect({

View file

@ -46,7 +46,7 @@ exports.run = async (message, args) => {
},
{
"name": " **Status:**",
"value": member ? member.status : "Unknown"
"value": member && member.status ? member.status : "Unknown"
},
{
"name": "🎮 **Playing:**",