forked from embee/woomy
Merge branch 'next' of github.com:mudkipscience/woomy into next
This commit is contained in:
commit
93abdb367d
2 changed files with 203 additions and 1264 deletions
12
index.js
12
index.js
|
@ -35,7 +35,12 @@ client.logger = require('tracer').colorConsole({
|
|||
}]
|
||||
})
|
||||
|
||||
// Load environment variables / config
|
||||
// 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,10 +54,7 @@ if (fs.existsSync('./config.js') === false) {
|
|||
require('dotenv').config()
|
||||
client.config = require('./config')
|
||||
|
||||
// Load functions module
|
||||
require('./modules/functions')(client)
|
||||
|
||||
// Command/alias cache
|
||||
// Collections that
|
||||
client.commands = new Discord.Collection()
|
||||
client.cooldown = new Discord.Collection()
|
||||
client.aliases = new Discord.Collection()
|
||||
|
|
1455
package-lock.json
generated
1455
package-lock.json
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue