Lottery Checker for Openclaw

A high-performance Python utility for batch-checking China Sports Lottery Super Lotto (DLT) winning numbers and generating detailed prize reports.

sudaqinnishui
v1.0.0
Feb 12, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install lottery-checker

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install lottery-checker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Lottery Checker?

Lottery Checker is a specialized technical tool designed for the automated verification of Super Lotto (DLT) numbers. As part of the Openclaw Skills collection, it bridges the gap between raw lottery data and actionable insights by connecting directly to the official China Sports Lottery Center API. It is optimized for developers and power users who need to process multiple lottery entries efficiently without manual lookup.

The tool provides a professional-grade interface to compare user-provided number strings against the latest draw results. It accurately calculates prize tiers (from 1st to 9th) and provides contextual data such as prize pool totals, sales volume, and per-unit reward amounts. This skill is essential for anyone looking to integrate lottery result tracking into a programmatic workflow.

Lottery Checker Use Cases

  • Automated weekly verification of personal or group Super Lotto tickets.
  • Batch processing for lottery syndicates to manage hundreds of entries simultaneously.
  • Integration into personal dashboards to monitor winnings and historical draw data.
  • Programmatic retrieval of official prize pool and sales statistics for data analysis.

How Lottery Checker Works

  1. The user inputs lottery numbers via a CLI command using a specific string format (5 front zone numbers and 2 back zone numbers).
  2. The skill initiates a request to the official China Sports Lottery API to fetch the most recent draw results and prize distribution data.
  3. The internal logic engine parses the input numbers and compares them against the winning combination based on standard DLT rules.
  4. It calculates the specific prize tier for each entry and aggregates the total number of winning bets.
  5. The tool generates a structured output, either as a visual ASCII report for terminal viewing or a JSON object for further automation.

Lottery Checker Setup

To use this tool within your Openclaw Skills environment, ensure Python 3 is installed. You can execute the checker directly from your terminal using the following commands:

# Single entry check
python3 skills/lottery-checker/scripts/check_lottery.py '{"numbers":"03,15,22,28,33+05,12"}'

# Batch entry check (Recommended)
python3 skills/lottery-checker/scripts/check_lottery.py '{"numbers":["03,15,22,28,33+05,12","01,02,03,04,05+06,07"]}'

# JSON format output for automation
python3 skills/lottery-checker/scripts/check_lottery.py '{"numbers":["03,15,22,28,33+05,12"],"format":"json"}'

Lottery Checker Data Schema & Taxonomy

The skill processes data using a standardized schema for both input and reporting. This ensures compatibility with other Openclaw Skills and external scripts.

Attribute Description Data Type
numbers Array or String of DLT numbers (e.g., 01,02,03,04,05+06,07) String/Array
format The output style: 'ui' (default) or 'json' String
draw_info Metadata including period number and draw date Object
results Comparison results including prize tier and win status Array
pool_data Current prize pool balance and sales volume Object

Lottery Checker Advanced Features

  • Multi-bet batch verification support for high-volume processing.
  • Real-time synchronization with the China Sports Lottery official API for 100% data accuracy.
  • Support for prize pool analytics, including rollover amounts and sales trends.
  • Dual-mode output engine supporting both human-readable UI tables and machine-readable JSON.
  • Comprehensive prize tier logic covering all 9 standard award levels plus additional 'Add-on' (Zhuijia) prize calculations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*