Fix delay bug on jpeg/deepfry, remove mc/blurple
This commit is contained in:
parent
4ac90bc761
commit
9d7ba365c8
5 changed files with 3 additions and 54 deletions
|
@ -1,21 +0,0 @@
|
|||
import fetch from "node-fetch";
|
||||
import Command from "../../classes/command.js";
|
||||
|
||||
class MCCommand extends Command {
|
||||
async run() {
|
||||
if (this.args.length === 0) return "You need to provide some text to generate a Minecraft achievement!";
|
||||
await this.acknowledge();
|
||||
const request = await fetch(`https://www.minecraftskinstealer.com/achievement/a.php?i=13&h=Achievement+get%21&t=${encodeURIComponent(this.args.join("+"))}`);
|
||||
return {
|
||||
file: Buffer.from(await request.arrayBuffer()),
|
||||
name: "mc.png"
|
||||
};
|
||||
}
|
||||
|
||||
static description = "Generates a Minecraft achievement image";
|
||||
static aliases = ["ach", "achievement", "minecraft"];
|
||||
static arguments = ["[text]"];
|
||||
static slashAllowed = false;
|
||||
}
|
||||
|
||||
export default MCCommand;
|
Loading…
Add table
Add a link
Reference in a new issue