mirror of
https://github.com/MrUnknownDE/UnknownAI.git
synced 2026-04-18 22:13:46 +02:00
lets go?
This commit is contained in:
21
main.js
Normal file
21
main.js
Normal file
@@ -0,0 +1,21 @@
|
||||
const Discord = require('discord.js');
|
||||
const config = require('./src/config.json');
|
||||
const fs = require('fs');
|
||||
const db = require('quick.db');
|
||||
const path = require('path');
|
||||
const client = new Discord.Client();
|
||||
client.commands = new Discord.Collection();
|
||||
client.aliases = new Discord.Collection();
|
||||
const { Player } = require('discord-player');
|
||||
const player = new Player(client);
|
||||
client.player = player;
|
||||
client.emotes = require('./configs/emotes.json')
|
||||
client.filters = require('./configs/filters.json');
|
||||
["aliases", "commands"].forEach(cmd => client[cmd] = new Discord.Collection());
|
||||
["console", "command", "event"].forEach(events => require(`./handlers/${events}`)(client));
|
||||
client.categories = fs.readdirSync('./commands');
|
||||
// EVENTS
|
||||
client.on('ready', async() => {
|
||||
console.log('UnknownAI Started!');
|
||||
});
|
||||
client.login(config.token)
|
||||
Reference in New Issue
Block a user