alvarocastro/discord-bot

View on GitHub
src/chat-event.js

Summary

Maintainability
A
0 mins
Test Coverage
export default class ChatEvent {
    constructor (name) {
        this.name = name;
    }

    check (message, memory) {
        return true;
    }

    action (message, memory) {
        throw new Error(`Event "${this.name}" not implemented`);
    }
}