woomy/index.js
2020-03-29 18:45:09 +11:00

33 lines
716 B
JavaScript

// Woomy version 2
// Copyright 2020 mudkipscience
if (Number(process.version.slice(1).split('.')[0]) < 13) {
console.log('NodeJS 12.0.0 or higher is required. Please update NodeJS on your system.')
process.exit()
}
const fs = require('fs')
if (fs.existsSync('./.env') === false) {
console.log('.env file not found!')
process.exit()
}
if (fs.existsSync('./config.js') === false) {
console.log('config file not found!')
process.exit()
}
require('dotenv').config()
const Discord = require('discord.js')
const client = new Discord.Client({ disabledEvents: ['TYPING_START'] })
client.commands = new Discord.Collection()
client.aliases = new Discord.Collection()
const init = async () => {
}
init()