mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
18 lines
296 B
TypeScript
18 lines
296 B
TypeScript
import { EventAdapter } from '@biscuitland/core';
|
|
|
|
export class ReadyEvent {
|
|
events: EventAdapter;
|
|
|
|
constructor(events: EventAdapter) {
|
|
this.events = events;
|
|
|
|
if (events) {
|
|
this.execute();
|
|
}
|
|
}
|
|
|
|
async execute() {
|
|
this.events.on('ready', () => console.log('[1/1] successful'));
|
|
}
|
|
}
|