2021-11-18 18:56:42 +01:00
|
|
|
const axios = require("axios");
|
2021-09-06 12:38:25 +02:00
|
|
|
module.exports = {
|
|
|
|
name: "ascii",
|
|
|
|
description: "Converts text into ASCII art",
|
|
|
|
category: "Fun",
|
|
|
|
type: "CHAT_INPUT",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
type: 3,
|
|
|
|
name: "text",
|
|
|
|
description: "The text you want to convert",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
run: async (client, interaction, args) => {
|
2021-11-18 18:56:42 +01:00
|
|
|
const data = await axios
|
|
|
|
.get(
|
|
|
|
`https://artii.herokuapp.com/make?text=${encodeURIComponent(args[0])}`
|
|
|
|
)
|
|
|
|
.then(res => res.data);
|
|
|
|
interaction.followUp(`\`\`\`${data}\`\`\``);
|
2021-09-06 12:38:25 +02:00
|
|
|
},
|
|
|
|
};
|