Commit d3b17642 authored by Grant's avatar Grant
Browse files

add env VOID_ALL_TRANSACTIONS

parent 7c72b497
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ declare global {
       * @example @grant:aftermath.gg
       */
      MATRIX_ADMIN: string;

      VOID_ALL_TRANSACTIONS: string;
    }
  }
}