2021-04-05 12:21:27 +00:00
|
|
|
import {Command, NamedCommand} from "../../core";
|
2021-03-31 01:40:29 +00:00
|
|
|
import figlet from "figlet";
|
|
|
|
|
2021-04-05 12:21:27 +00:00
|
|
|
export default new NamedCommand({
|
2021-03-31 01:40:29 +00:00
|
|
|
description: "Generates a figlet of your input.",
|
2021-04-10 13:34:55 +00:00
|
|
|
async run({send, message, channel, guild, author, member, client, args}) {
|
2021-04-05 12:21:27 +00:00
|
|
|
const input = args.join(" ");
|
2021-04-10 13:34:55 +00:00
|
|
|
if (!args[0]) return send("You have to provide input for me to create a figlet!");
|
|
|
|
return send(
|
2021-03-31 01:40:29 +00:00
|
|
|
"```" +
|
|
|
|
figlet.textSync(`${input}`, {
|
|
|
|
horizontalLayout: "full"
|
|
|
|
}) +
|
|
|
|
"```"
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|