TravBot-v3/src/commands/fun/figlet.ts

20 lines
541 B
TypeScript
Raw Normal View History

import {NamedCommand, RestCommand} from "onion-lasers";
import figlet from "figlet";
export default new NamedCommand({
description: "Generates a figlet of your input.",
run: "You have to provide input for me to create a figlet!",
any: new RestCommand({
async run({send, combined}) {
return send(
figlet.textSync(combined, {
horizontalLayout: "full"
}),
{
code: true
}
);
}
})
});