fixed index.js

This commit is contained in:
Emily 2020-03-31 22:36:35 +11:00
parent 2b6ac43e9b
commit 4a36da8d27
2 changed files with 603 additions and 254 deletions

View file

@ -13,8 +13,7 @@ const colors = require('colors')
const Discord = require('discord.js')
const client = new Discord.Client({ disabledEvents: ['TYPING_START'] })
require('./modules/functions')(client)
// Logger
client.logger = require('tracer').colorConsole({
format: [
'{{timestamp}} <{{title}}> {{message}}',
@ -36,6 +35,12 @@ client.logger = require('tracer').colorConsole({
}]
})
// Load modules
require('./modules/functions')(client)
require('./modules/music')(client)
require('./modules/botlists')(client)
// Checks to make sure config.js and .env exist
if (fs.existsSync('./.env') === false) {
client.logger.fatal('The .env file is missing! Please create a .env file.')
process.exit()
@ -49,7 +54,7 @@ if (fs.existsSync('./config.js') === false) {
require('dotenv').config()
client.config = require('./config')
// Command/alias cache
// Collections that
client.commands = new Discord.Collection()
client.cooldown = new Discord.Collection()
client.aliases = new Discord.Collection()

846
package-lock.json generated

File diff suppressed because it is too large Load diff