diff options
Diffstat (limited to 'src/commands/anime')
| -rw-r--r-- | src/commands/anime/uwufy.ts | 9 | ||||
| -rw-r--r-- | src/commands/anime/waifu.ts | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/commands/anime/uwufy.ts b/src/commands/anime/uwufy.ts index 45bb3d1..f9f0187 100644 --- a/src/commands/anime/uwufy.ts +++ b/src/commands/anime/uwufy.ts @@ -1,9 +1,10 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; +//@ts-ignore no types import emoji from 'emoji-random'; import uwufy from 'uwufy' module.exports = class UwufyAnime extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'uwufy', aliases: ['uwu', 'owofy', 'owo'], @@ -31,8 +32,8 @@ module.exports = class UwufyAnime extends Command { }, }); } - run(msg: CommandoMessage, { userMsg }) { + run(msg: CommandoMessage, { userMsg }: any) { msg.reply(uwufy(userMsg) + ' ' + emoji.random()) - msg.delete(); + return msg.delete(); } };
\ No newline at end of file diff --git a/src/commands/anime/waifu.ts b/src/commands/anime/waifu.ts index 80363e3..d72348f 100644 --- a/src/commands/anime/waifu.ts +++ b/src/commands/anime/waifu.ts @@ -1,10 +1,11 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; +import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; import request from 'node-superfetch'; import { MessageEmbed } from 'discord.js'; +//@ts-ignore yes it does tf import { shorten } from '../../utils/Util.js' module.exports = class WaifuAnime extends Command { - constructor(client) { + constructor(client: CommandoClient) { super(client, { name: 'waifu', aliases: ['thiswaifudoesnotexist', 'this-waifu-does-not-exist'], @@ -29,6 +30,6 @@ module.exports = class WaifuAnime extends Command { .setDescription(shorten(text, 1000)) .setColor(0xFFCC4D) .setThumbnail(`https://www.thiswaifudoesnotexist.net/example-${num}.jpg`) - msg.reply(emb) + return msg.reply(emb) } };
\ No newline at end of file |