nyx/commands/Fun/ds.js

19 lines
551 B
JavaScript
Raw Normal View History

2021-06-24 09:53:19 +02:00
const fetch = require("node-fetch");
const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "ds",
aliases: ["doublestruck"],
description: "Doublestruck your text",
usage: "(text)",
category: "Fun",
run: async (client, message, args) => {
let text = args.join("+");
if (!text) return client.err(message, "Fun", "ds", 12);
let res = await fetch(
"https://api.popcatdev.repl.co/doublestruck?text=" + text
);
let json = await res.json();
message.inlineReply(json.text);
},
};