diff --git a/commands/meme.js b/commands/meme.js index 4c1050f..c2be71d 100644 --- a/commands/meme.js +++ b/commands/meme.js @@ -17,7 +17,7 @@ exports.run = async (message, args) => { if (error) throw error; }); child.stderr.once("data", (error) => { - if (error) throw error; + if (error) throw error.toString(); }); child.stdout.once("close", () => { const data = Buffer.concat(chunks); diff --git a/commands/yoda.js b/commands/yoda.js index ec856d2..d8bd2e9 100644 --- a/commands/yoda.js +++ b/commands/yoda.js @@ -1,13 +1,14 @@ const fetch = require("node-fetch"); exports.run = async (message, args) => { - if (args.length === 0) return `${message.author.mention}, you need to provide some text to translate to Yodish!`; + return `${message.author.mention}, this command is currently disabled due to various issues. We are looking for a fix.`; + /*if (args.length === 0) return `${message.author.mention}, you need to provide some text to translate to Yodish!`; const request = await fetch(`https://yoda-api.appspot.com/api/v1/yodish?text=${encodeURIComponent(args.join(" "))}`); const json = await request.json(); - return json.yodish; + return json.yodish;*/ }; exports.aliases = ["yodish"]; exports.category = 4; -exports.help = "Translates a message to Yodish"; +exports.help = "Translates a message to Yodish (disabled)"; exports.params = "[text]"; \ No newline at end of file diff --git a/events/ready.js b/events/ready.js index bbcb2c9..0241a14 100644 --- a/events/ready.js +++ b/events/ready.js @@ -12,7 +12,7 @@ module.exports = async () => { for (const [id] of client.guilds) { const guildDB = (await database.guilds.find({ id: id }).exec())[0]; if (!guildDB) { - console.log(`Registering guild database entry for guild ${id}...`); + logger.log(`Registering guild database entry for guild ${id}...`); const newGuild = new database.guilds({ id: id, tags: misc.tagDefaults, diff --git a/utils/gmbuffer.js b/utils/gmbuffer.js index be17a24..0d8fad1 100644 --- a/utils/gmbuffer.js +++ b/utils/gmbuffer.js @@ -15,7 +15,7 @@ module.exports = (data, format) => { resolve(Buffer.concat(chunks)); }); stderr.once("data", (data) => { - reject(String(data)); + reject(data.toString()); }); }); } else { @@ -31,7 +31,7 @@ module.exports = (data, format) => { resolve(Buffer.concat(chunks)); }); stderr.once("data", (data) => { - reject(String(data)); + reject(data.toString()); }); }); }