diff options
Diffstat (limited to 'src/commands/fun/howify.ts')
| -rw-r--r-- | src/commands/fun/howify.ts | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/commands/fun/howify.ts b/src/commands/fun/howify.ts deleted file mode 100644 index c1337f9..0000000 --- a/src/commands/fun/howify.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import how from 'howifier'; -import emoji from 'emoji-random'; - -module.exports = class HowifyFun extends Command { - constructor(client) { - super(client, { - name: 'howify', - aliases: ['how'], - group: 'fun', - memberName: 'howify', - description: 'Howifies any image you send.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY', 'EMBED_LINKS'], - examples: ['uwu!howify', 'uwu!how'], - throttling: { - usages: 5, - duration: 30 - }, - guildOnly: true - }); - } - run(msg: CommandoMessage) { - if (msg.attachments.size) { - // fs.unlinkSync('../../../node_modules/howifier/images/blissgay.jpeg') - msg.attachments.forEach(async attachment => { - var u1 = await how(attachment.url); - msg.delete() - msg.reply('Please wait...').then(m => m.delete({ timeout: 2000 })) - setTimeout(() => { - msg.say({ files: [u1] }) - }, 2000); - }); - } else { - msg.reply('No image detected. ' + emoji.random()) - } - - } -};
\ No newline at end of file |