mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: added behaviors
This commit is contained in:
1 parent
0e37d0479a
commit
c3399b54c5
4 files changed
+115
-108
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { EmbedBuilder, GuildMember, TextChannel } from 'discord.js';
|
||||
import config from '../../config.json' assert { type: 'json' };
|
||||
|
||||
export default async function (member: GuildMember) {
|
||||
console.log(`${member.user.tag} joined`);
|
||||
|
||||
await (
|
||||
member.guild.channels.cache.get(
|
||||
config.discord_verify_channel,
|
||||
) as TextChannel
|
||||
).send({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
.setColor('#8e3cf5')
|
||||
.setTitle(`Welcome ${member.user.username}`)
|
||||
.setDescription(
|
||||
`Welcome to the Skilled server, **${
|
||||
member.user.username
|
||||
}**! To continue, please use the \`/verify\` command.\n\nExample: \`/verify NA ${faker.name.firstName()}${faker.datatype.number(
|
||||
{ min: 1, max: 100 },
|
||||
)}\``,
|
||||
),
|
||||
],
|
||||
});
|
||||
await (
|
||||
member.guild.channels.cache.get(
|
||||
config.discord_verify_channel,
|
||||
) as TextChannel
|
||||
).send(member.toString());
|
||||
}
|
||||
Reference in new issue
Block a user