Stop function loader from erroring

merge-requests/1/merge
Bsian 2019-10-29 16:13:40 +00:00
parent cff8402f7d
commit 1dc0ee955b
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +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;
if (func === 'index.ts' || func === 'index.js') return;
try {
(require(`./functions/${func}`).default)(this);
} catch (error) {