1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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<thing>\`. 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)
}
};
|