import { Command, CommandoMessage } from 'discord.js-commando'; import emoji from 'emoji-random'; import { MessageEmbed } from 'discord.js'; module.exports = class InviteBot extends Command { constructor(client) { super(client, { name: 'joinmessage', aliases: ['joinm', 'mjoin', 'joinmsg'], group: 'bot', memberName: 'joinmessage', description: 'Resends the message which the bot sent when initially joining a server, however, this one does NOT get sent to the guild owner.', examples: [ 'uwu!joinmessage', 'uwu!joinm', 'uwu!mjoin', 'uwu!joinmsg' ], userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], throttling: { usages: 5, duration: 30 }, }); } run(msg: CommandoMessage) { let embed = new MessageEmbed() .setDescription(`Hi! Thank you for inviting uwufier to your server! To view the complete list of commands, do \`uwu!help\`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the [support server](https://discord.com/invite/DVwXUwx). You can also do \`uwu!suggest\`. If you like the bot, please support the bot on our [top.gg page](https://top.gg/bot/699473263998271489/vote) or our [DBL page](https://discordbotlist.com/bots/699473263998271489/upvote)! ${emoji.random()}`) msg.say(embed) } };