a428075330
Edits (POST /api/my/spot/<id>, /api/my/default, uploads): still any number of times. Every change now gets the full check:
checkLink, then (LINK_PROBE on) the link must answer (safety.probeLink, up to 3 redirects each checked) and an image address must
download as a real 468x60 image of 150 KB or less (safety.probeImage; the address is kept, a Banner Spin image rotates). The
Banner Spin image + click link LinkSpin just handed the member are not fetched (that would count a LinkSpin click). safety.js gains
privateIp + safeLookup with the Node 20 fix VBB/ViralAdBlitz needed (honors opts.all, answers an array). Every real change is
logged on the spot (or the default): old and new link and image, time, via edit/upload; the owner sees the newest 10. 120 changes
an hour per connection (each one fetches the link).
Admin takedown (the Viral Banner Blitz way, 8e6d2f9): /admin (new page) finds a spot by #number, wallet or network username;
POST /api/admin/spots/<id>/takedown {reason (required, the owner sees it), credit}. Hidden everywhere at once: the board shows a
house tile in its place (nobody else moves), the gate gives its step to a house site, /go/<id> goes home, its Network Ad Space
banner is paused (approved = 0) and no new one is placed. No views or clicks count while down. My Spots shows "Taken down" with
the reason and no edit controls. Restore (POST .../restore) reverses it (NAS resumed). Admin ledger: GET /api/admin/actions (who,
when, reason, credit decision). The contract is never touched.
CREDIT BACK IS NOT BUILT: a spot is a $5 on-chain purchase and this site has no free replacement spot or post credit, so
credit: "back" is refused with a note until Marty decides what it means here; takedowns are "no credit".
Chatbot: CANNED takedown + banner answer (unlimited checked, logged edits) + FACTS EDITS/TAKEDOWN lines, KNOWLEDGE_DATE 2026-11-16.
line.css?v=9, my.js?v=z3.
Tests: smoke section 10 (the lookup shape, edit log, unlimited edits, refusals: unreachable, 404, private address, http redirect,
shortener, bad image size/404/unreachable; redirect followed; same link logs nothing; upload logged; default checked + logged;
takedown: token, reason, credit choice, credit back refused, held house tile, image nowhere, /go home, gate, no views, owner view,
no edits while down, ledger, restore, /admin) against a stand-in internet preloaded into the app (qa/out/probe-stub.cjs, nothing
leaves the machine), plus phone renders of My Spots taken down and /admin: 193/193 with UI. chatbot.test 181/181.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
98 lines
16 KiB
JavaScript
98 lines
16 KiB
JavaScript
// Downline Banners' site assistant (Marty 2026-11-15): what it knows. The engine is chatcore.js (the same on every rebuilt site);
|
|
// retrieval also covers the other network sites through the hub (netkb.js), this site's entries first.
|
|
//
|
|
// Every fact below was checked against this repo on KNOWLEDGE_DATE: ../contracts BannerLine (PRICE_CENTS 500, SPONSOR_BPS 3000,
|
|
// LEVEL_BPS 550 x LEVELS 10, FEE_A 500 + FEE_B 500 = company 10%, FUND_BPS 500, GIFT_COOLDOWN 7 days, no setters, no owner withdraw,
|
|
// a failed send goes to the fund), config.js (300 views, 30 days, 12 board slots, gate 9 s / 10 s, keeper 4 h stall, 12 a day),
|
|
// server.js (468x60 image up to 150 KB), dlbnas.js (Network Ad Space finishes a spot after 30 days), refuelspots.js (a $50+ Monthly
|
|
// Refuel on InstantAdPay or LinkSpin earns a spot), public/how.html, join.html, index.html.
|
|
// HOUSE RULE: when a feature changes, update CANNED and FACTS in the same commit and bump KNOWLEDGE_DATE.
|
|
// Plain words, no em dashes, never a promise of income, "SafePal or any other crypto wallet", never RM Circle.
|
|
'use strict';
|
|
const core = require('./chatcore');
|
|
const C = require('./config').get();
|
|
|
|
const KNOWLEDGE_DATE = '2026-11-16';
|
|
const URL_ = 'https://' + C.site;
|
|
const SUPPORT = 'https://instantadpay.com/support';
|
|
const NOT_PROMISED = 'Nothing is promised: you are paid only when spots sell after yours, and a spot can earn back less than it cost.';
|
|
|
|
const CANNED = [
|
|
{ id: 'support', title: 'Talk to a person, or a problem with my account', q: ['How do I contact support?', 'My spot did not show up', 'I need a real person'], tags: ['support', 'help', 'ticket', 'problem'],
|
|
re: core.SUPPORT_RE, handoff: true,
|
|
a: 'Network support handles every network site, Downline Banners included: open ' + SUPPORT + ', say it is about Downline Banners, and include your wallet address and the transaction link if it is about a spot. Marty answers there and by email. Tap "Open network support" below and your question goes with you.' },
|
|
{ id: 'refund', title: 'Refunds', q: ['Can I get a refund on my spot?', 'Can I cancel my spot?'], tags: ['refund', 'cancel'],
|
|
re: /\brefund|cancel (my |the |a )?spot|money back|reverse (my |a |the )?(payment|transaction)/i, handoff: true,
|
|
a: 'Spots are paid on Polygon straight to the contract and are final once confirmed, so they cannot be reversed or refunded. A spot is one payment, never a subscription. If something went wrong with a payment, open network support at ' + SUPPORT + ' with the transaction link.' },
|
|
{ id: 'takedown', title: 'A spot taken down', q: ['Why was my spot taken down?', 'My banner was removed', 'Can my spot be taken down?'], tags: ['taken down', 'takedown', 'removed', 'hidden'],
|
|
re: /(taken down|take ?down|took (my |it |the )?(spot|banner)? ?down|(spot|banner) (was |got |is )?(removed|hidden|gone|blocked))/i,
|
|
a: 'A spot whose banner or link breaks the rules (terms: ' + URL_ + '/terms) can be taken down by the admin. It is then hidden everywhere at once, its place in the line is kept (a network banner shows there, so nobody else moves), and no views count while it is down. My Spots shows "Taken down" with the reason. The on-chain payments from the purchase already happened and do not change. The admin can restore a spot taken down by mistake. To ask about one, open network support at ' + SUPPORT + ' with the spot number.' },
|
|
{ id: 'about', title: 'What is Downline Banners?', q: ['What is Downline Banners?', 'How does Downline Banners work?', 'What is DLB?'], tags: ['downline banners', 'dlb', 'line', 'board', 'overview'],
|
|
re: /(what('s| is) (downline ?banners?|dlb|the line|this (site|place))|how does (downline ?banners?|dlb|the line|this site|it) work)/i,
|
|
a: 'Downline Banners is one global line of 468x60 banner spots. A $5 spot buys ' + C.viewsOwed + ' guaranteed views on the board for your image and link (within ' + C.spotDays + ' days, newest spots on top) and a place in the line. When a later spot sells, the contract pays the 10 spots before it and the buyer\'s sponsor in that same transaction. ' + NOT_PROMISED + ' See ' + URL_ + '/how' },
|
|
{ id: 'withdraw', title: 'Withdrawals', q: ['How do I withdraw?', 'Where is my balance?'], tags: ['withdraw', 'balance', 'cash out'],
|
|
re: /(withdraw|cash ?out|my balance|pending (pay|commission))/i,
|
|
a: 'There is nothing to withdraw. Every share goes straight to the owner\'s wallet in the buyer\'s transaction; the contract holds nothing except the momentum fund. Every sale and payout shows in the live ledger at ' + URL_ + '/ledger' },
|
|
{ id: 'split', title: 'Where the $5 goes', q: ['Where does the $5 go?', 'How do payouts work?', 'What do I get when someone I refer buys?', 'How much do I earn per spot?'], tags: ['split', 'payout', 'sponsor', 'line', 'commission'],
|
|
re: /(split|payouts?|commission|who gets paid|where does (my|the) (money|\$ ?5) go|percent|earn|get paid|refer(red|ral)? (buys|someone)|0\.275|1\.50)/i,
|
|
a: 'In the same transaction: 30% ($1.50) to the buyer\'s sponsor (no sponsor: the momentum fund), 55% split as $0.275 to each of the owners of the 10 spots bought just before this one, 10% to the company and 5% to the momentum fund, which can only buy spots. So each time one of the next 10 spots after yours sells, you receive $0.275 in POL, and $1.50 when someone you referred buys. The splits cannot be changed and there is no owner withdraw. ' + NOT_PROMISED },
|
|
{ id: 'fund', title: 'The momentum fund and gifted spots', q: ['What is the momentum fund?', 'How do I get a gifted spot?', 'Who gets free spots?'], tags: ['momentum fund', 'gift', 'free spot', 'keeper'],
|
|
re: /(momentum fund|\bfund\b|gift(ed)? spots?|free spots?|keeper)/i,
|
|
a: 'The momentum fund gets 5% of every spot (and any payout that fails to send) and can only buy spots. When no spot has sold for ' + C.keeperStallHours + ' hours, it buys one (at most ' + C.keeperMaxPerDay + ' a day) and gifts it to an active member who owns a paid spot and has not had a gift in 7 days, members who referred someone recently first. If nobody qualifies, the fund keeps the spot and its line money goes back into the fund.' },
|
|
{ id: 'tour', title: 'The Look around first tour', q: ['Why can I not join yet?', 'What is the Look around first tour?', 'Why is Join locked?'], tags: ['tour', 'gate', 'look around', 'join locked'],
|
|
re: /(look around|tour|join (is )?locked|(can.?t|cannot|can i not) join|not join yet|unlock|timer|count ?down)/i,
|
|
a: 'Before Join unlocks, the home page walks you through a few short steps (your sponsor\'s spot, the board, the 3 newest spots), each with a timer of a few seconds. Keep the tab open while it counts down, then Join unlocks.' },
|
|
{ id: 'buy-for', title: 'Buying a spot for someone else', q: ['Can I buy a spot for someone else?', 'Can I gift a spot?'], tags: ['buy for', 'gift', 'someone else'],
|
|
re: /(for someone else|for (a |my )?(friend|member|downline|team)|buy (a spot )?for|gift a spot)/i,
|
|
a: 'Yes: on ' + URL_ + '/join use "Buy a spot for someone else" with their wallet address. They own the spot and its place in the line.' },
|
|
{ id: 'refuel', title: 'Refuel spots', q: ['Do I get a spot when I refuel?', 'What is a refuel spot?'], tags: ['refuel', 'instantadpay', 'linkspin', 'free spot'],
|
|
re: /(refuel)/i,
|
|
a: 'A counted Monthly Refuel of $50 or more on InstantAdPay or LinkSpin earns the refueling member one Downline Banners spot, bought for their wallet under their network sponsor and paid by the company. InstantAdPay decides which refuels count.' },
|
|
{ id: 'spot', title: 'What a spot buys and costs', q: ['How much is a spot?', 'What does a spot buy?', 'Is it a subscription?', 'Can I buy more than one spot?'], tags: ['spot', 'price', '$5', '300 views', 'board'],
|
|
re: /(\bspots?\b|\$ ?5\b|five dollars|how much(?! pol)|price|cost|300 views|guaranteed views|subscription)/i,
|
|
a: 'A spot is $5 in POL at the Chainlink POL/USD price, one payment, never a subscription. It buys ' + C.viewsOwed + ' guaranteed views on the board for your 468x60 image and link, delivered within ' + C.spotDays + ' days, and a place in the line. Each spot takes the next place, so you can buy more than one. If a spot has not reached ' + C.viewsOwed + ' views after ' + C.spotDays + ' days, Network Ad Space finishes it. Get one at ' + URL_ + '/join' },
|
|
{ id: 'banner', title: 'Your banner image and link', q: ['How do I add my banner?', 'What size is the banner?', 'How do I change my image?'], tags: ['banner', '468x60', 'image', 'link', 'my spots'],
|
|
re: /(468 ?x ?60|banner (size|image)|what size|upload|add (my |an )?(image|banner|link)|change (my )?(image|banner|link)|my spots)/i,
|
|
a: 'After buying, open My Spots (' + URL_ + '/my), sign in with one free signature (it cannot move funds), and add your 468x60 image (150 KB or less) and link to each spot. Your spot then shows on the board, newest on top, until it has its ' + C.viewsOwed + ' views. You can change the image or link any time, as often as you like: every change gets the full check (https, a real website, no link shorteners, the link must open, an image address must load as a 468x60 image) and is logged on the spot.' },
|
|
{ id: 'wallet', title: 'Signing in and paying', q: ['How do I sign in?', 'Which wallet should I use?', 'How do I pay?'], tags: ['sign in', 'wallet', 'pol', 'safepal'],
|
|
re: /(sign ?(in|up)|log ?in|account|which wallet|what wallet|wallet|metamask|safepal|\bpol\b|polygon|crypto|gas|fee|how (do|can) i (pay|buy))/i,
|
|
a: 'Pay from your own wallet straight to the contract with SafePal or any other crypto wallet on Polygon; the site never holds your money. Keep a little extra POL for the network fee. Sign in to My Spots with one free signature, or through your InstantAdPay or LinkSpin account.' },
|
|
{ id: 'safe', title: 'Is it safe? Is it a scheme?', q: ['Is this a pyramid scheme?', 'Is Downline Banners legit?', 'Who holds the money?'], tags: ['safe', 'legit', 'pyramid', 'contract'],
|
|
re: /(pyramid|ponzi|scam|scheme|legit|safe|trust|rug|who holds)/i,
|
|
a: 'A spot buys guaranteed banner views and a place in the line. The BannerLine contract on Polygon splits each $5 in the same transaction with fixed shares, no setters and no owner withdraw; it holds nothing except the momentum fund. From the line alone, a member who refers nobody gets back less than the $5 a spot costs. Check every sale at ' + URL_ + '/ledger and the contract at ' + URL_ + '/contract. This is advertising with a share of later sales, not an investment.' },
|
|
{ id: 'promote', title: 'Promote Downline Banners', q: ['Is there a promo kit?', 'Where are the banners to promote DLB?'], tags: ['promote', 'kit', 'banners'],
|
|
re: /(promo|promote|creatives?|kit|swipes?|my link|referral link)/i,
|
|
a: 'The promo kit at ' + URL_ + '/promote has your referral links, creatives in the common sizes and copy. When someone you referred buys a spot, you receive $1.50 in POL in that transaction.' }
|
|
];
|
|
|
|
const FAQ = [
|
|
{ id: 'f-network', title: 'Downline Banners and the other network sites', source: 'faq', tags: ['network', 'one account', 'sponsor'],
|
|
questions: ['Is Downline Banners part of InstantAdPay?', 'Who is my sponsor here?', 'Which network sites are there?'],
|
|
answer: 'Downline Banners is part of the network: one account, username and sponsor across InstantAdPay, LinkSpin, Downline Banners, Viral Banner Blitz, ViralAdBlitz, DownlineHydra, 5xYourTeam, Stack POL and Earners Corner. Your sponsor here is your network sponsor. Open board slots show network sites such as InstantAdPay and LinkSpin. Ad credits buy advertising, not income.' },
|
|
{ id: 'f-nas', title: 'Network Ad Space finishes a spot', source: 'faq', tags: ['network ad space', 'nas', '30 days', 'delivery'],
|
|
questions: ['What if my spot does not get 300 views?', 'What is Network Ad Space?'],
|
|
answer: 'A spot that is past ' + C.spotDays + ' days with fewer than ' + C.viewsOwed + ' views gets its banner placed in Network Ad Space, a network ad site, for exactly the views still owed. What Network Ad Space serves counts toward the spot\'s ' + C.viewsOwed + '.' }
|
|
];
|
|
|
|
const FACTS = () => [
|
|
'- WHAT IT IS: Downline Banners (' + URL_ + ') is one global line of 468x60 banner spots on the BannerLine contract (Polygon). A spot = $5 in POL at the Chainlink price, one payment = ' + C.viewsOwed + ' guaranteed board views for the image and link within ' + C.spotDays + ' days (newest on top, ' + C.boardSlots + ' board slots) + the next place in the line. Not done after ' + C.spotDays + ' days: Network Ad Space finishes the views owed.',
|
|
'- SPLIT (contract constants, no setters, no owner withdraw): 30% ($1.50) to the buyer\'s sponsor (none: the momentum fund); 55% = $0.275 to each owner of the 10 spots bought just before; 10% company; 5% momentum fund. Same transaction. A failed send goes to the fund. The contract holds nothing except the fund. From the line alone, a member who refers nobody gets back less than $5 per spot. Never estimate totals.',
|
|
'- MOMENTUM FUND: only buys spots. No sale for ' + C.keeperStallHours + ' hours: it buys one (max ' + C.keeperMaxPerDay + ' a day), gifted to an active member who owns a paid spot and had no gift in 7 days, recent referrers first; nobody qualifies: the fund keeps the spot and its line money returns to the fund.',
|
|
'- JOIN FLOW: "Look around first" on the home page (sponsor\'s spot, the board, the 3 newest spots, each a short timer), then Join unlocks. /join: connect a wallet and buy, or "Buy a spot for someone else" (they own it). My Spots (/my): one free signature, add a 468x60 image (150 KB max) and link per spot.',
|
|
'- EDITS: a spot\'s image and link (and the default) can be changed any number of times. Every change gets the full check (https, public site, no shorteners, the link must answer, an image address must download as a real 468x60 image of 150 KB or less) and is logged on the spot (old and new link and image, time).',
|
|
'- TAKEDOWN: the admin can take down a spot that breaks the rules, with a reason. It is hidden everywhere (board, gate, links, Network Ad Space), keeps its place (a house banner holds it, nobody moves), counts no views while down; the owner sees "Taken down" with the reason on My Spots. On-chain payments already happened at purchase and never change; there is no refund. The admin can restore it.',
|
|
'- REFUEL SPOTS: a counted Monthly Refuel of $50+ on InstantAdPay or LinkSpin earns one spot, bought for the member under their network sponsor, paid by the company.',
|
|
'- BOARD: open slots show members\' LinkSpin Banner Spins, then network house ads (InstantAdPay, LinkSpin, network games). Pages: /, /board, /how, /join, /my, /promote, /ledger, /contract, /terms, /disclaimer, /privacy.',
|
|
'- 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). This is advertising with a share of later sales, not an investment. Nothing is promised.'
|
|
].join('\n');
|
|
|
|
const SITE = {
|
|
id: 'bannerline', hubSite: 'bannerline', netId: 'dlb', name: 'Downline Banners', url: URL_, supportUrl: SUPPORT, knowledgeDate: KNOWLEDGE_DATE,
|
|
dataDir: C.dataDir, canned: CANNED, faq: FAQ, facts: FACTS,
|
|
intro: 'You are the assistant on Downline Banners (' + URL_ + '), one global line of $5 banner spots: each spot buys 300 guaranteed board views and a place in the line, and the BannerLine contract pays the 10 spots before each sale and the buyer\'s sponsor in the same transaction.',
|
|
quickTopics: ['How does it work?', 'Where does the $5 go?', 'What is the momentum fund?', 'What is Viral Banner Blitz?']
|
|
};
|
|
|
|
function init() { return core.init(SITE); }
|
|
module.exports = { init, handle: core.handle, answer: core.answer, KNOWLEDGE_DATE, CANNED, FAQ, SITE };
|