-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
37 lines (34 loc) · 1.16 KB
/
main.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
/**
** Making use of xernerx for ease of access.
*/
import XernerxClient from 'xernerx';
import config from './data/config.json' assert { type: 'json' };
/**
** Import any bot token token from the token file.
**
*! Make sure to make a token file, an example can be found in data/token.example.js.
*/
export class Client extends XernerxClient {
constructor() {
super(
{
intents: ['Guilds'], // The intents of the bot.
},
{
global: false, // Whether the bot is loaded globally or locally
local: config.guildId, // The developer guild.
log: {
ready: true, // Log when the bot is ready and logged in.
error: true, // Log when an internal error occurs.
info: true, // Log when there is any other type of information.
},
}
);
/**
** Events are solely loaded for a presence update to be invisible, you can edit this event in events/ready.js.
*/
this.modules.eventHandler.loadEvents({
directory: './events',
});
}
}