mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 19:19:52 +02:00
feat: move to src dir
This commit is contained in:
1 parent
ddede49160
commit
c8f8eb56d4
3 files changed
+4
-3
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const Discord = require("discord.js");
|
||||
const client = new Discord.Client();
|
||||
|
||||
const config = require("../config.json");
|
||||
const welcome = require("./welcome");
|
||||
|
||||
client.on("ready", () => {
|
||||
console.log("Skilled Bot is now online");
|
||||
|
||||
welcome(client);
|
||||
});
|
||||
|
||||
client.login(config.token);
|
||||
@@ -0,0 +1,19 @@
|
||||
const { faker } = require("@faker-js/faker");
|
||||
|
||||
const CHAT_CHANNEL = "1097677884266643527";
|
||||
const RULES_CHANNEL = "912486823522095114";
|
||||
|
||||
module.exports = (client) => {
|
||||
client.on("guildMemberAdd", (member) => {
|
||||
member.guild.channels.cache
|
||||
.get(CHAT_CHANNEL)
|
||||
.send(
|
||||
`Welcome <@${
|
||||
member.id
|
||||
}> to Skilled! Use \`/verify <your in-game name>\` to continue.\nExample: \`/verify ${faker.internet.userName(
|
||||
undefined,
|
||||
""
|
||||
)}\` (capitalization matters!)`
|
||||
);
|
||||
});
|
||||
};
|
||||
Reference in new issue
Block a user