You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/fun/test.js

33 lines
947 B
JavaScript

const { Command } = require('discord.js-commando');
const emojiCharacters = require('../../emojiCharacters');
module.exports = class testCommand extends Command {
constructor(client) {
super(client, {
name: 'emotesay',
group: 'fun',
memberName: 'emotesay',
description: `repeat the text in dancing letters`,
args: [
{
key: 'text',
prompt: 'What do you want me to say',
type: 'string',
}
]
});
}
async run(message, { text }) {
let textChar = text.split('')
let i = text.length;
let emojiArray = [];
message.delete();
for (i = 0; i < text.length; i++) {
emojiArray[i] = emojiCharacters[textChar[i]];
}
let finalText = emojiArray.join("");
message.say(finalText)
}
};