2021-04-13 12:38:52 +00:00
|
|
|
import {NamedCommand, RestCommand} from "onion-lasers";
|
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 17:07:55 +00:00
|
|
|
run: "You have to provide input for me to create a figlet!",
|
|
|
|
any: new RestCommand({
|
2021-04-11 09:11:21 +00:00
|
|
|
async run({send, combined}) {
|
2021-04-10 17:07:55 +00:00
|
|
|
return send(
|
|
|
|
figlet.textSync(combined, {
|
2021-03-31 01:40:29 +00:00
|
|
|
horizontalLayout: "full"
|
2021-04-10 17:07:55 +00:00
|
|
|
}),
|
|
|
|
{
|
|
|
|
code: true
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
})
|
2021-03-31 01:40:29 +00:00
|
|
|
});
|