-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
index.js
27 lines (23 loc) · 724 Bytes
/
index.js
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
//define the libraries
const Discord = require("discord.js");
const client = new Discord.Client();
const config = require("./config.json");
//when its ready log it
client.on("ready", ()=>console.log("READY"));
//define welcome "package"
const welcome = require("./welcome");
welcome(client);
//start the bot
client.login(config.TOKEN);
//NOTE:
/*
THis is the config.json File
"TOKEN" ... is your Bot token
"CHANNEL_WELCOME" ... is the Channel ID of your welcome channel
"ROLES_WELCOME" ... are all of the Role IDs you wanna add to the user when he joins the server, it must be an array and can be unlimited!
{
"TOKEN": "",
"CHANNEL_WELCOME": "",
"ROLES_WELCOME": ["",""]
}
*/