Files
instantadpay/tools/patch_chatbot_gk.py

25 lines
2.3 KiB
Python

# chatbot.js: Gem Kingdom is live in the Games tab (2026-10-02). It pays NO POL; Crowns are bought with ad credits.
p = 'D:/Projects/HighRisk/onchain-ad-membership/site/chatbot.js'
s = open(p, encoding='utf-8').read()
GK = ("Gem Kingdom (https://gemkingdom.app) is a free fantasy match-3: match gems so three heroes battle monsters across four chapters "
"(Goblin Woods, the Frozen Pass, the Haunted Swamp, Dragon's Peak), earn stars, and rebuild your Stronghold and forge weapons. "
"It pays no POL. Crowns, its upgrade currency, are bought with your InstantAdPay ad credits: tap Buy in the game's Crown Shop, confirm on InstantAdPay "
"(top up with a pack if you are short), and you land back in the game with the Crowns added. Crowns buy buildings, weapons, battle boosts and a revive after a defeat. "
"Sign in with your InstantAdPay account to save progress, earn badges and appear in the Game Achievements posts in the Crypto Team Build group.")
R = [
("const KNOWLEDGE_DATE = '2026-10-01';", "const KNOWLEDGE_DATE = '2026-10-02';"),
(" a: 'Members > Games lists the games that pay in POL to the wallet on your InstantAdPay account; one tap signs you in. Drip Runner is a runner game:",
" a: 'Members > Games lists the network\\u2019s games; one tap signs you in. Drip Runner is a runner game:"),
("Nothing here is a promise of income. PolHunter is on the same Games page.' },",
"Nothing here is a promise of income. PolHunter and Gem Kingdom are on the same Games page; Gem Kingdom is a match-3 that pays no POL (its Crowns are bought with ad credits).' },\n"
" { re: /(gem ?kingdom|crowns?\\b|match.?3|goblin king|ice queen|bog witch|ember dragon|stronghold)/i,\n"
" a: '" + GK.replace("'", "\\u2019") + "' },"),
("- GAMES TAB (2026-10-01): Members > Games (/my#games) shows one card per game that pays POL to the member's InstantAdPay wallet,",
"- GEM KINGDOM (LIVE in the Games tab since 2026-10-02): " + GK + " Never say it pays POL.\n"
"- GAMES TAB (2026-10-01): Members > Games (/my#games) shows one card per network game (PolHunter and Drip Runner pay POL to the member's InstantAdPay wallet; Gem Kingdom does not),"),
]
for a, b in R:
if s.count(a) != 1: raise SystemExit('anchor %d: %s' % (s.count(a), a[:90]))
s = s.replace(a, b)
open(p, 'w', encoding='utf-8').write(s); print('chatbot ok')