Skip to main content

Handlers

Load commands and events with the built-in method.

const { Erine } = require('erine');

const bot = new Erine({...});

bot.load("path/to/modules");

bot.connect();

Commands and events must be in the same folder, you can create subfolders.