2021-09-17 18:28:39 +02:00
|
|
|
const axios = require("axios");
|
2021-09-06 12:38:25 +02:00
|
|
|
module.exports = {
|
|
|
|
name: "doublestruck",
|
|
|
|
description: "Doublestruck your text",
|
|
|
|
usage: "(text)",
|
|
|
|
category: "Fun",
|
|
|
|
type: "CHAT_INPUT",
|
|
|
|
options: [
|
|
|
|
{
|
|
|
|
type: 3,
|
|
|
|
name: "text",
|
|
|
|
description: "The text you want to convert",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
run: async (client, interaction, args) => {
|
|
|
|
let text = args[0].split(" ").join("+");
|
2021-09-17 18:28:39 +02:00
|
|
|
let res = await axios.get(
|
2021-09-06 12:38:25 +02:00
|
|
|
"https://api.popcatdev.repl.co/doublestruck?text=" + text
|
|
|
|
);
|
|
|
|
let json = await res.json();
|
|
|
|
await interaction.followUp(json.text);
|
|
|
|
},
|
|
|
|
};
|