Loading src/matrix.ts +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ class MatrixHandler_ { for (const event of events) { console.log("[Matrix->]", event); if (process.env.VOID_ALL_TRANSACTIONS) { console.log("Voided transaction ^^"); continue; } switch (event.type) { case "m.room.member": { const event2: MatrixRoomMembership = event as any; Loading src/types/env.ts +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ declare global { * @example @grant:aftermath.gg */ MATRIX_ADMIN: string; VOID_ALL_TRANSACTIONS: string; } } } Loading Loading
src/matrix.ts +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,11 @@ class MatrixHandler_ { for (const event of events) { console.log("[Matrix->]", event); if (process.env.VOID_ALL_TRANSACTIONS) { console.log("Voided transaction ^^"); continue; } switch (event.type) { case "m.room.member": { const event2: MatrixRoomMembership = event as any; Loading
src/types/env.ts +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,8 @@ declare global { * @example @grant:aftermath.gg */ MATRIX_ADMIN: string; VOID_ALL_TRANSACTIONS: string; } } } Loading