Skip to content

Commit 92e8527

Browse files
committed
Add type checking script
1 parent c3f503b commit 92e8527

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

backend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "backend",
33
"scripts": {
44
"build": "node build.mjs",
5+
"check": "tsc --noEmit",
56
"bot": "npm run build && node --enable-source-maps out/bot/main.js",
67
"http": "npm run build && node --enable-source-maps out/http/main.js",
78
"migrate": "npm run build && node --enable-source-maps out/data/migrate.js"

backend/src/bot/plugin/core/event_wrapper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export function wrap_listener<E extends keyof ClientEvents>(
66
event: E,
77
listener: (...args: ClientEvents[E]) => void | Promise<void>
88
) {
9-
console.trace("");
109
return async (...args: ClientEvents[E]) => {
1110
let guild: string | null = null;
1211

backend/src/bot/plugin/core/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ export const core_plugin = define_plugin({
2828

2929
for (const plugin of get_plugins()) {
3030
if (plugin.listeners !== undefined) {
31-
for (const listener of plugin.listeners) {
31+
for (const listener of plugin.listeners)
3232
install_wrapped_listener(listener.type, listener.listener);
33-
}
3433
}
3534
}
3635
},

0 commit comments

Comments
 (0)