A Deno-powered backend service for Plants vs. Zombies: MODDED. [Read-only GitHub mirror] docs.pvzm.net
express typescript expressjs plant deno jspvz pvzm game online backend plants-vs-zombies zombie javascript plants modded vs plantsvszombies openapi pvz noads
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Format "0.5.0: overhauled logging system, added bluesky logging" Original commit: https://github.com/ROBlNET13/pvzm-backend/commit/10954857b3f4977c32df70fd03741a90252beffb

Co-authored-by: ClaytonTDM <clay@clay.rip>

+4 -8
+1 -1
main.ts
··· 47 47 enabled: config.blueskyProviderEnabled, 48 48 pds: config.blueskyPds, 49 49 identifier: config.blueskyIdentifier, 50 - password: config.blueskyPassword 50 + password: config.blueskyPassword, 51 51 }) 52 52 ); 53 53 // add more providers here in the future:
-1
modules/logging/bluesky.ts
··· 92 92 return false; 93 93 } 94 94 } 95 -
+3 -6
modules/routes/levels.ts
··· 7 7 import type { ModerationResult } from "../moderation.ts"; 8 8 import type { TurnstileResponse } from "../turnstile.ts"; 9 9 import { getClientIP } from "../request.ts"; 10 + import { Buffer } from "node:buffer"; 10 11 11 12 export function registerLevelRoutes( 12 13 app: any, ··· 250 251 const adminMessageIds = await deps.loggingManager.sendAdminLevelMessage(adminLevelInfo); 251 252 252 253 if (messageIds || adminMessageIds) { 253 - dbCtx.db 254 - .prepare("UPDATE levels SET logging_data = ?, admin_logging_data = ? WHERE id = ?") 255 - .run(messageIds, adminMessageIds, levelId); 254 + dbCtx.db.prepare("UPDATE levels SET logging_data = ?, admin_logging_data = ? WHERE id = ?").run(messageIds, adminMessageIds, levelId); 256 255 } 257 256 } 258 257 ··· 632 631 author: typedLevel.author, 633 632 reason, 634 633 reporterIp: getClientIP(req), 635 - editUrl: `${config.backendUrl}/admin.html?token=${encodeURIComponent( 636 - dbCtx.createOneTimeTokenForLevel(levelId) 637 - )}&action=edit&level=${levelId}`, 634 + editUrl: `${config.backendUrl}/admin.html?token=${encodeURIComponent(dbCtx.createOneTimeTokenForLevel(levelId))}&action=edit&level=${levelId}`, 638 635 deleteUrl: `${config.backendUrl}/admin.html?token=${encodeURIComponent( 639 636 dbCtx.createOneTimeTokenForLevel(levelId) 640 637 )}&action=delete&level=${levelId}`,