Changed request IP for screenshot

This commit is contained in:
TheEssem 2020-02-20 11:39:39 -06:00
parent 8051e8c201
commit 1ecae70c41
1 changed files with 1 additions and 1 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://192.168.99.100:9222/json/version");
const getEndpoint = await fetch("http://172.17.0.2:9222/json/version");
const endpoint = await getEndpoint.json();
const url = urlRegex.test(args[0]) ? args[0] : `http://${args[0]}`;
const browser = await puppeteer.connect({