mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: split config.json into public and private
This commit is contained in:
1 parent
c3399b54c5
commit
a5ebcd92a7
5 files changed
+16
-14
No files matched your search
@@ -1,14 +1,12 @@
|
||||
import { faker } from '@faker-js/faker';
|
||||
import { EmbedBuilder, GuildMember, TextChannel } from 'discord.js';
|
||||
import config from '../../config.json' assert { type: 'json' };
|
||||
import discord from '../../discord.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
|
||||
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
|
||||
).send({
|
||||
embeds: [
|
||||
new EmbedBuilder()
|
||||
@@ -24,8 +22,6 @@ export default async function (member: GuildMember) {
|
||||
],
|
||||
});
|
||||
await (
|
||||
member.guild.channels.cache.get(
|
||||
config.discord_verify_channel,
|
||||
) as TextChannel
|
||||
member.guild.channels.cache.get(discord.verify_channel) as TextChannel
|
||||
).send(member.toString());
|
||||
}
|
||||
Reference in new issue
Block a user