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