fix issue in loadFunctions func

merge-requests/1/merge
Matthew 2019-10-27 23:08:45 -04:00
parent f59aa9dc1e
commit 353a4d8137
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ export default class Client extends Eris.Client {
private async loadFunctions() {
const functions = await fs.readdir('./functions');
functions.forEach(async (func) => {
if (func === 'index.ts') return;
try {
require(`./functions/${func}`).default(this);
} catch (error) {