Network Weekend (Marty 2026-11-17): 2 free post credits a day Fri 11-27 00:00 CT to Tue 12-01 00:00 CT, live VBBShop SKU values on every page and in the chatbot, the network ribbon
weekend.js: the date gate (WEEKEND_NOW test clock), FREE_CREDITS_PER_DAY stays 1. chainskus.js: skus() read every 60 s, so the $10 pack shows what the contract credits (50 once the owner signs setSku, 40 before or after). netdeals.js + /assets/netweekend.js: /api/network-deals and the ribbon; the VBB line is built from live values and drops itself if there is nothing true to say. chatcore render hook, chatbot FACTS/CANNED from live values with a dated weekend fact. qa/weekend.test.mjs 33 pass, chatbot 182, smoke 268. common.js?v=10, my.js?v=6, packages.js?v=2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+29
-7
@@ -13,11 +13,16 @@
|
||||
const core = require('./chatcore');
|
||||
const C = require('./config').get();
|
||||
|
||||
const KNOWLEDGE_DATE = '2026-11-15';
|
||||
const KNOWLEDGE_DATE = '2026-11-17';
|
||||
const URL_ = 'https://' + C.site;
|
||||
const SUPPORT = 'https://instantadpay.com/support';
|
||||
const NOT_INCOME = 'You buy advertising for your own banners, not an income opportunity.';
|
||||
const packs = C.packs.map(p => p.credits + ' post credits for $' + p.usd).join(' or ');
|
||||
const chainskus = require('./chainskus'); // live VBBShop SKU values (2026-11-17)
|
||||
const weekend = require('./weekend'); // Network Weekend date gate (2026-11-17)
|
||||
const packsOf = list => list.map(p => p.credits + ' post credits for $' + p.usd).join(' or ');
|
||||
const packs = packsOf(C.packs); // the normal packs, as the stored instant answers say them; render() swaps in the live ones
|
||||
const livePacksText = () => packsOf(chainskus.packs(C));
|
||||
const freeNow = () => weekend.freePerDay(C.freeCreditsPerDay);
|
||||
const places = C.prizePot.places.join('/');
|
||||
|
||||
const CANNED = [
|
||||
@@ -83,21 +88,38 @@ const FAQ = [
|
||||
const FACTS = () => [
|
||||
'- WHAT IT IS: Viral Banner Blitz (' + URL_ + ') is one public loop of ' + C.loopSize + ' member banners (125x125 tiles). A posted banner waits in line, then enters at the front. Every ' + C.perShift + ' verified visitors shift every banner one place; the banner at the end rides out (has cycled) and its owner earns ' + C.viewsPerCycle + ' network ad views. Cycles are recorded on My Banners now; crediting those views to network advertising is NOT switched on yet.',
|
||||
'- VERIFIED VISITOR: a real browser keeps the loop page open and visible about ' + C.visitSeconds + ' seconds; once per visitor per 24 hours; bots, crawlers, repeats and more than ' + C.perIpDay + ' browsers per connection per day do not count.',
|
||||
'- POSTING: one post credit per banner. Network members (InstantAdPay or LinkSpin, checked with the network hub) get 1 free post credit each day they sign in (Central day). Up to ' + C.maxQueuedPerMember + ' banners waiting per member. Image 125x125, 100 KB max, or post a LinkSpin Banner Spin (125x125 or 250x250). The link must answer. SPIN tiles in empty places are LinkSpin Banner Spins: they never shift, cycle or earn.',
|
||||
'- POSTING: one post credit per banner. Network members (InstantAdPay or LinkSpin, checked with the network hub) get ' + freeNow() + ' free post credit' + (freeNow() === 1 ? '' : 's') + ' each day they sign in (Central day). Up to ' + C.maxQueuedPerMember + ' banners waiting per member. Image 125x125, 100 KB max, or post a LinkSpin Banner Spin (125x125 or 250x250). The link must answer. SPIN tiles in empty places are LinkSpin Banner Spins: they never shift, cycle or earn.',
|
||||
'- ONE SWAP PER BANNER: a banner that is waiting or in the loop can swap its image and/or link ONE time from My Banners (a Banner Spin to another of the member\'s own 125x125/250x250 spins). It keeps its id, place, clicks and loop progress; the new image and link get the same checks as a new post. No second swap. Members cannot withdraw or remove a banner and credits are not refunded. The admin can take a banner down (the owner sees the reason; the admin decides whether the post credit comes back); its place stays as a house tile until it would have ridden out, so nobody else moves, and it never cycles or earns.',
|
||||
'- PACKAGES (one-time, POL at the live price, never a subscription, overpayment returned): ' + packs + '; banner look $' + C.lookUsd + ' per banner (border + hover teaser, on a waiting or in-loop banner, one per banner); tokens (network visits at the InstantAdPay visit rate) coming soon.',
|
||||
'- PACKAGES (one-time, POL at the live price, never a subscription, overpayment returned; read from the VBBShop contract just now): ' + livePacksText() + '; banner look $' + C.lookUsd + ' per banner (border + hover teaser, on a waiting or in-loop banner, one per banner); tokens (network visits at the InstantAdPay visit rate) coming soon.',
|
||||
'- SPLIT (VBBShop constants, no owner withdraw): 30% to the member who introduced the buyer (bound once, by a keeper-signed voucher, on the first purchase; none = company), 10% to the weekly prize pot, 60% company, same transaction. Failed sends wait in the contract for their owner to claim.',
|
||||
'- LEADERBOARDS (Monday to Sunday Central): most verified visitors sent (the member\'s ?ref= link) and most different traffic sources (referring sites). Prize pot = 10% of the week\'s sales, half per board, top three ' + places + ' percent, paid in POL to the winners\' VBB wallets the following Monday at the POL price at payout; ties to whoever got there first. Never state a maximum or a cap.',
|
||||
'- PAGES: / (the loop), /how, /packages, /my (My Banners), /leaders, /promote, /ledger, /contract, /terms, /disclaimer, /privacy. Sign in through InstantAdPay, LinkSpin or a wallet signature.',
|
||||
weekendFact(),
|
||||
'- NO REFUNDS: blockchain payments are final. SUPPORT for account or payment problems: network support at ' + SUPPORT + ' (InstantAdPay runs the one desk for every network site). ' + NOT_INCOME
|
||||
].join('\n');
|
||||
].filter(Boolean).join('\n');
|
||||
|
||||
// Network Weekend (Black Friday to Cyber Monday, Fri 11-27 00:00 CT to Tue 12-01 00:00 CT): only while it runs, from live values
|
||||
function weekendFact() {
|
||||
if (!weekend.on()) return '';
|
||||
const big = chainskus.packs(C).slice().sort((a, b) => b.usd - a.usd)[0]; const base = C.packs.slice().sort((a, b) => b.usd - a.usd)[0];
|
||||
return '- NETWORK WEEKEND (Black Friday to Cyber Monday, midnight to midnight Central, ends Monday 11-30 at 11:59 PM Central): network members get ' + freeNow() + ' free post credits a day.'
|
||||
+ (big && base && big.credits > base.credits ? ' The $' + big.usd + ' pack carries ' + big.credits + ' credits instead of ' + base.credits + ', same price.' : '')
|
||||
+ ' Other network deals: https://instantadpay.com/weekend';
|
||||
}
|
||||
// instant answers carry the normal numbers; at answer time swap in the live packs and, during Network Weekend, today's free credits
|
||||
function render(t) {
|
||||
let out = String(t).split(packs).join(livePacksText());
|
||||
if (freeNow() > 1) out = out.replace(/\b(get|gets) one free post credit (each|every) day they sign in/g, '$1 ' + freeNow() + ' free post credits each day they sign in during Network Weekend (through Monday 11-30, Central)')
|
||||
.replace(/you get a free post credit each day you sign in/g, 'you get ' + freeNow() + ' free post credits each day you sign in during Network Weekend (through Monday 11-30, Central)');
|
||||
return out;
|
||||
}
|
||||
|
||||
const SITE = {
|
||||
id: 'vbb', hubSite: 'vbb', netId: 'vbb', name: 'Viral Banner Blitz', url: URL_, supportUrl: SUPPORT, knowledgeDate: KNOWLEDGE_DATE,
|
||||
dataDir: C.dataDir, canned: CANNED, faq: FAQ, facts: FACTS,
|
||||
dataDir: C.dataDir, canned: CANNED, faq: FAQ, facts: FACTS, render,
|
||||
intro: 'You are the assistant on Viral Banner Blitz (' + URL_ + '), one public banner loop the community moves with verified visitors: post a 125x125 banner, ride it out, earn network ad views. Network members post free once a day; credit packs and a banner look are one-time purchases.',
|
||||
quickTopics: ['How does the loop work?', 'Is posting free?', 'How do the leaderboards work?', 'What is ViralAdBlitz?']
|
||||
};
|
||||
|
||||
function init() { return core.init(SITE); }
|
||||
module.exports = { init, handle: core.handle, answer: core.answer, KNOWLEDGE_DATE, CANNED, FAQ, SITE };
|
||||
module.exports = { init, handle: core.handle, answer: core.answer, KNOWLEDGE_DATE, CANNED, FAQ, SITE, FACTS, render };
|
||||
|
||||
Reference in New Issue
Block a user