Added reply support to image detection, added stealth plugin to screenshot, made credits static, more fixes

This commit is contained in:
TheEssem 2020-11-26 09:31:24 -06:00
parent ca6cffa67c
commit 94b0bc19a4
7 changed files with 294 additions and 121 deletions

View file

@ -2,8 +2,6 @@ const client = require("../utils/client.js");
const { version } = require("../package.json");
exports.run = async () => {
const dev = client.users.get(process.env.OWNER);
const artist = client.users.get("401980971517214723");
const infoEmbed = {
"embed": {
"description": process.env.NODE_ENV === "development" ? "**You are currently using esmBot Dev! Things may change at any time without warning and there will be bugs. Many bugs.**" : "",
@ -18,11 +16,7 @@ exports.run = async () => {
},
{
"name": "📝 Credits:",
"value": `Bot by **${dev.username}#${dev.discriminator}**\nIcon by **${artist.username}#${artist.discriminator}**`
},
{
"name": "👪 Total Users:",
"value": client.users.size
"value": "Bot by **[Essem](https://essem.space)**\nIcon by **[MintBorrow](https://mintborrow.newgrounds.com)**"
},
{
"name": "💬 Total Servers:",

View file

@ -1,5 +1,7 @@
const urlRegex = /(?:\w+:)?\/\/(\S+)/;
const puppeteer = require("puppeteer-core");
const puppeteer = require("puppeteer-extra");
const StealthPlugin = require("puppeteer-extra-plugin-stealth");
puppeteer.use(StealthPlugin());
const fetch = require("node-fetch");
exports.run = async (message, args) => {

View file

@ -47,10 +47,6 @@ exports.run = async (message, args) => {
{
"name": " **Status:**",
"value": member && member.status ? member.status : "Unknown"
},
{
"name": "🎮 **Playing:**",
"value": member ? (member.game ? member.game.name : "Nothing") : "Unknown"
}
]
}