Tweaked a few things, temporarily disabled yoda due to some issues
This commit is contained in:
parent
3e2f35cbd8
commit
6446cfd9bd
4 changed files with 8 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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]";
|
Loading…
Add table
Add a link
Reference in a new issue