blob: 96e058436ea2e0916e7a69b34c3149d4ab7a1d43 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import EventEmitter from "events";
import { TypedEventEmitter } from "@fosscord/util";
type PluginEvents = {
error: (error: Error | unknown) => void;
loaded: () => void;
};
export class Plugin extends (EventEmitter as new () => TypedEventEmitter<PluginEvents>) {
async init() {
// insert default config into database?
}
}
|