mirror of
https://github.com/keanuplayz/TravBot-v3.git
synced 2024-08-15 02:33:12 +00:00
17 lines
572 B
TypeScript
17 lines
572 B
TypeScript
import {Command, NamedCommand} from "../../core";
|
|
import figlet from "figlet";
|
|
|
|
export default new NamedCommand({
|
|
description: "Generates a figlet of your input.",
|
|
async run({send, message, channel, guild, author, member, client, args}) {
|
|
const input = args.join(" ");
|
|
if (!args[0]) return send("You have to provide input for me to create a figlet!");
|
|
return send(
|
|
"```" +
|
|
figlet.textSync(`${input}`, {
|
|
horizontalLayout: "full"
|
|
}) +
|
|
"```"
|
|
);
|
|
}
|
|
});
|