You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
445 B
15 lines
445 B
4 years ago
|
const Discord = require('discord.js');
|
||
|
const client = new Discord.Client();
|
||
|
//const config = require('./config.js');
|
||
|
const auth = require('./auth.json');
|
||
|
|
||
|
//client.config = config;
|
||
|
|
||
|
async function init() {
|
||
|
await client.login(auth.token);
|
||
|
client.config = auth;
|
||
|
|
||
|
['commands', 'aliases'].forEach(x => client[x] = new Discord.Collection());
|
||
|
['command', 'event'].forEach(x => require(`./handle/${x}`)(client));
|
||
|
}
|
||
|
init();
|