Back to Blog

AstrBot / Scheduler / Game Tools

Fetching, Parsing, and Staged Delivery for PSO2 NGS Event Alerts

A scheduled AstrBot notifier for event pages, time zones, and card rendering.

Game event alerts turn external page data into chat reminders. The page may change, titles need localization, and reminders must avoid duplicates.

Project Overview

jpnn_client.py fetches source pages, jpnn_parser.py parses entries, models.py defines snapshots, plugin_store.py persists state, message_dispatcher.py builds messages, card_renderer.py creates cards, and main.py handles polling and commands.

The plugin turns emergency quests, announcements, and cross-language titles into chat reminders for game communities.

Implementation

The plugin polls pages, generates snapshots, and signs each entry with title, time, and stage. Stage changes trigger delivery. Rendering can produce text or image cards, and text is the fallback when card rendering fails.

Title mapping and time-zone conversion happen during message generation, keeping storage independent of display choices.