✨ unit tests expect event

This commit is contained in:
Flam3rboy
2021-09-21 23:13:31 +02:00
parent 2a094c603a
commit 22c744398c
3 changed files with 6628 additions and 5996 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { Channel } from "amqplib";
import { RabbitMQ } from "./RabbitMQ";
import EventEmitter from "events";
import { EVENT, Event } from "../interfaces";
const events = new EventEmitter();
export const events = new EventEmitter();
export async function emitEvent(payload: Omit<Event, "created_at">) {
const id = (payload.channel_id || payload.user_id || payload.guild_id) as string;