This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
77 lines (60 loc) · 4.58 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/******************************************************************************************| INFORMATION |******************************************************************************************
* @INFO :
* 1.0 Import the required modules.
* 1.1 Validating script for the advertisement. //////////////////////////////////////////////////////////////////////////////////////////////
* 2.0 Create the Discord bot Client. //// ////
* 3.0 Create the commands for the bot. \\\\ @NOTICE \\\\
* 4.0 Create/Custom the events for the bot. //// This source code is public, it is forbidden to sell and buy this handler code ////
* 5.0 Create the functions for the bot. \\\\ if you want to use this handler code, please give credit from the owner \\\\
* 6.0 Create/Custom the variables for the bot. //// it is forbidden to change the contents of the code (especially the core code) ////
* \\\\ it is forbidden to delete the credit in the code! \\\\
* //// ////
* @CREDITS : MGalaCyber Development //////////////////////////////////////////////////////////////////////////////////////////////
* @VERSION : 1.0.0
* @GITHUB : MGalaCyber
**************************************************************************************| All Right Reserved! |**************************************************************************************/
//=====================================| Import the Module |=====================================\\
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, SelectMenuBuilder, Client, Collection } = require('discord.js');
const clientSettingsObject = require(`./Structures//Functions/clientSettingsObject.js`);
const Settings = require(`./Structures//Settings/settings.json`);
const Config = require(`./Structures//Settings/config.json`);
const Emoji = require(`./Structures//Settings/emojis.json`);
const Embed = require(`./Structures//Settings/embed.json`);
const client = new Client(clientSettingsObject());
const color = require('colors');
require('dotenv').config();
require('ms');
module.exports = client;
//=====================================| COLLECTIONS |=====================================\\
client.commands = new Collection();
client.slash = new Collection();
client.selectMenus = new Collection();
client.buttons = new Collection();
client.modals = new Collection();
client.categories = new Collection();
client.cooldowns = new Collection();
client.aliases = new Collection();
client.events = new Collection();
client.Databases = require(`${process.cwd()}/Structures/Handlers/mongoDB.js`);
//=====================================| HANDLERS |=====================================\\
const handlersModules = [
'events', 'checkEnvironment',
'messageCommands', 'slashCommands', 'modalCommands', 'selectCommands', 'buttonCommands',
Settings.antiCrash ? 'antiCrash' : null
];
handlersModules.forEach(handler => {
require(`./Structures//Handlers/${handler}`)(client);
});
//=====================================| LOGIN TO BOT |=====================================\\
client.login(process.env.TOKEN);
/**
/////////////////////////////////////////////////////////////////////
//// ////
\\\\ Handlers Coded by GalaXd#9165 \\\\
//// ////
\\\\ Work for MGalaCyber Development | https://galacyber.xyz \\\\
//// ////
\\\\ All Right Reserved! \\\\
//// ////
/////////////////////////////////////////////////////////////////////
*/