Files
5xyourteam/chatbot.js
T
martbost 9fc285d1eb Guides (Marty 2026-11-17): /guides index + How The Draft works, Is 5xYourTeam legit?, Coaching your picks, FAQ
Static pages in the site's look (legal card layout, FX nav/footer via misc.js data-page=guides), canonical + meta + OG,
linked from the nav and footer, in the sitemap, 'guides' reserved from coach URLs. Every number checked against config.js
defaults (no DRAFT_/PICK_/POT_ env overrides on the live app) and DraftPosition on chain (priceCents 1000, 2500/500/1000 bps,
MAX_DEPTH 20, MAX_QTY 10, company + prize wallets). Chatbot: f-guides FAQ entry + GUIDES fact. qa/guides.test.cjs (59 checks)
keeps the pages in step with config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:25:40 -06:00

113 lines
18 KiB
JavaScript

// 5xYourTeam's 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: config.js (position $10, 5 picks on buy, max 10 per purchase;
// split sponsor 25% + L2-5 5% + pot 10% + company 45%, 20 places; draft Monday 7 PM Central, 5 rounds, 90 s clock, away = auto-pick;
// picks return after 3 days, 48 h release hold, 10 open picks, 24 h sign-up grace; pot places 50/30/20), ../contracts DraftPosition
// (SPONSOR_BPS 2500, LEVEL_BPS 500, PRIZE_BPS 1000, MAX_DEPTH 20, pass-up over non-holders, no owner withdraw, failed sends claimable),
// draft.js (earned order), tankpool.js (who can be drafted, 2-adoption rule), league.js, public/*.html (index, join, cards, terms).
// 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-17';
const weekend = require('./weekend');
const URL_ = 'https://' + C.site;
const SUPPORT = 'https://instantadpay.com/support';
const PO = C.position, SP = C.split, D = C.draft, PK = C.picks;
const DAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
const hour12 = h => (h % 12 || 12) + (h < 12 ? ' AM' : ' PM');
const WHEN = DAYS[D.dow] + ' at ' + hour12(D.hour) + ' Central';
const NOT_INCOME = 'A position buys a draft spot and coaching tools, not income. Nothing is promised.';
const POT = C.pot.split.join('/');
const CANNED = [
{ id: 'support', title: 'Talk to a person, or a problem with my account', q: ['How do I contact support?', 'My position 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, 5xYourTeam included: open ' + SUPPORT + ', say it is about 5xYourTeam, and include your username, your wallet address and the transaction link if it is about a position. 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 position?', 'Can I cancel my position?'], tags: ['refund', 'cancel'],
re: /\brefund|cancel (my |the |a )?position|money back|reverse (my |a |the )?(payment|transaction)/i, handoff: true,
a: 'Positions are paid on Polygon and are final once confirmed, so they cannot be reversed or refunded. A position is one payment that never renews, so there is nothing to cancel. If something went wrong with a payment, open network support at ' + SUPPORT + ' with the transaction link.' },
{ id: 'about', title: 'What is 5xYourTeam?', q: ['What is 5xYourTeam?', 'How does The Draft work?', 'What is 5x?'], tags: ['5xyourteam', 'the draft', 'overview', 'coach'],
re: /(what('s| is) (5 ?x ?your ?team|5x|the draft|this (site|place))|how does (5 ?x ?your ?team|5x|the draft|this site|it) work)/i,
a: '5xYourTeam is The Draft: a weekly draft for people in the network who joined without a sponsor. A $' + PO.usd + ' one-time position gives you ' + PO.picksOnBuy + ' picks right away and a spot in every draft, ' + WHEN + ', ' + D.rounds + ' rounds. Each pick becomes yours to sponsor and coach through site messages. Draft order is earned: coaches whose picks started last week pick first. See ' + URL_ },
{ id: 'withdraw', title: 'Withdrawals', q: ['How do I withdraw?', 'Where is my balance?', 'How do I withdraw my earnings?'], tags: ['withdraw', 'balance', 'cash out'],
re: /(withdraw|cash ?out|my balance|pending (pay|commission))/i,
a: 'There is nothing to withdraw. Each share goes straight to the person\'s wallet inside the buyer\'s transaction, so the contract keeps nothing (a payment that fails to send waits in the contract for that wallet to claim). Every payment shows in the live ledger at ' + URL_ + '/ledger' },
{ id: 'split', title: 'Where the $10 goes: the split', q: ['How do payouts work?', 'Where does the $10 go?', 'Who gets paid when I buy?', 'What is the commission?'], tags: ['split', 'payout', 'commission', 'levels', 'pass-up', 'pot'],
re: /(split|payouts?|commission|who gets paid|where does (my|the) (money|\$ ?10) go|percent|pass(ed)? over|pass.?up|qualif|earn|get paid)/i,
a: 'The DraftPosition contract splits every $' + PO.usd + ' position in the same transaction: ' + SP.sponsorPct + '% to your sponsor, ' + SP.levelPct + '% to each of levels 2 to 5 of your network sponsor line, ' + SP.potPct + '% to the weekly Best Coach pot and ' + SP.companyPct + '% to 5xYourTeam. Only people who hold a position can receive a share; anyone who does not is passed over to the next person up who does, looking up to ' + SP.maxDepth + ' places. ' + NOT_INCOME },
{ id: 'position', title: 'A position: price and what you get', q: ['How much is a position?', 'What do I get for $10?', 'Is it a subscription?', 'Can I buy more than one position?'], tags: ['position', 'price', '$10', 'picks', 'buy'],
re: /(\bposition|\$ ?10\b|ten dollars|how much(?! pol)|price|cost|subscription|what do i get)/i,
a: 'A position is $' + PO.usd + ' one time in POL, never a subscription. It gives ' + PO.picksOnBuy + ' instant picks from this week\'s pool, a spot in every weekly draft (' + D.rounds + ' rounds), the coaching tools (scouting stats, the getting-started steps, site messages, who to help first), a coach page and trading cards, and up to ' + PK.maxOpen + ' open picks at a time. You can buy 1 to ' + PO.maxQty + ' in one payment. ' + NOT_INCOME + ' Get one at ' + URL_ + '/join' },
{ id: 'draft', title: 'When the draft runs and how picking works', q: ['When is the draft?', 'What if I miss the draft?', 'How long do I have to pick?'], tags: ['draft', 'monday', 'rounds', 'auto-pick', 'queue'],
re: /(when is the draft|draft (day|night|time|room|clock)|miss(ed)? the draft|auto.?pick|my queue|rounds?|how long do i have to pick|monday)/i,
a: 'The draft runs every ' + WHEN + ', ' + D.rounds + ' rounds in straight order. A coach in the draft room gets a ' + D.pickSeconds + '-second clock. Away? You are auto-picked at once from your own queue, or the best available player by scouting score. A coach who already has ' + PK.maxOpen + ' open picks is skipped for that slot.' },
{ id: 'order', title: 'How draft order is earned', q: ['How is draft order decided?', 'How do I pick first?', 'Why am I last in the draft?'], tags: ['draft order', 'earned', 'started'],
re: /(draft order|pick first|picking first|my (draft )?spot|why am i (last|first)|order (is|was) (decided|earned))/i,
a: 'Draft order is earned: first the coaches with the most of last week\'s picks started (switched on payouts or made a first purchase), then the most started ever, then who got their position first. Help your picks get going this week and you move up next ' + DAYS[D.dow] + '.' },
{ id: 'picks', title: 'Who can be drafted, and when picks return', q: ['Who is in the pool?', 'What happens to a pick that does not start?', 'Can I release a pick?', 'Do I get their email?'], tags: ['pool', 'picks', 'return', 'release', 'adoption', 'contact'],
re: /(the pool|who (is|are) in the pool|picks? (that )?(do|does|did) ?(n.?t| not) start|unstarted|who can be drafted|picks? (go|goes|come|comes|return)|back to the pool|release (a |my )?pick|their (email|phone|contact)|contact (details|info))/i,
a: 'The pool is people in the network waiting for a sponsor. Nobody locked on a network contract, already sponsored, adopted twice, spam, or inside their first ' + PK.graceHours + ' hours is ever in it. A pick that has not started returns to the pool after ' + PK.returnDays + ' days (unless they have now had 2 adoptions); a started pick stays. You cannot release a pick in its first ' + PK.holdHours + ' hours. You never get their email or any contact details: you coach through site messages.' },
{ id: 'pot', title: 'The Best Coach pot', q: ['What is the Best Coach pot?', 'How is the pot shared?', 'How do I win Best Coach?'], tags: ['best coach', 'pot', 'prize', 'weekly'],
re: /(best coach|\bpot\b|prize|rookie of the week|standings)/i,
a: SP.potPct + '% of every position goes to a separate prize wallet fixed in the contract. Each week the pot is shared among the coaches whose picks started the most that Central week (' + POT + ' percent of that week\'s pot to the top places; a tie goes to whoever got there first). Every pot payout is listed on the ledger with its transaction. Prizes depend on that week\'s pot and are not promised.' },
{ id: 'coaching', title: 'Coaching your picks', q: ['How do I coach my picks?', 'How do I message my pick?', 'What are the getting-started steps?'], tags: ['coaching', 'team', 'messages', 'steps'],
re: /(coach(ing)? (my|your|the) picks?|message (my|a) pick|getting.?started steps|the steps|my team page|\/team|who to help)/i,
a: 'Your team page (' + URL_ + '/team) shows each pick\'s scouting stats, the five getting-started steps, one-tap messages and a thread with them, and who to help first: picks about to return to the pool, picks one step from payouts, and quiet ones. Messages go through the site only. Helping a pick link a wallet and switch on payouts is what counts as started.' },
{ id: 'cards', title: 'Trading cards', q: ['What are the trading cards?', 'What are the card tiers?'], tags: ['cards', 'rookie', 'starter', 'all-star', 'hall of fame'],
re: /(trading cards?|cards?\b|rookie|starter|all.?star|hall of fame|tiers?)/i,
a: 'Each pick has a trading card that levels up as they do: Rookie when drafted, Starter when they link a wallet, Pro when they switch on payouts, All-Star at their first purchase, Hall of Fame when they hold a position of their own and coach a team. Public cards show milestones, never earnings. See ' + URL_ + '/cards' },
{ id: 'builder', title: 'The builder', q: ['What is the builder?', 'Where do I save my referral IDs?'], tags: ['builder', 'referral id', 'programs'],
re: /(\bbuilder\b|referral (id|link|code)s?|save (my )?(id|link))/i,
a: 'The builder (' + URL_ + '/builder) is the CryptoTeamBuild downline builder: outside programs run by third parties. Save your referral ID for each program you use, and your picks see your link for it.' },
{ 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', 'pay'],
re: /(sign ?(in|up)|log ?in|which wallet|what wallet|wallet|metamask|safepal|\bpol\b|polygon|crypto|gas|fee|how (do|can) i (pay|buy))/i,
a: 'Sign in on ' + URL_ + ' with your wallet or your network account; the position goes to the wallet you are signed in with. Pay in POL on Polygon with SafePal or any other crypto wallet, keeping a little extra POL for the network fee. Anything you send above the exact price comes back in the same transaction.' },
{ id: 'safe', title: 'Is it safe? Is it a scheme?', q: ['Is this a pyramid scheme?', 'Is 5xYourTeam legit?', 'Who holds the money?'], tags: ['safe', 'legit', 'pyramid', 'contract'],
re: /(pyramid|ponzi|scam|scheme|legit|safe|trust|rug|who holds)/i,
a: 'A position buys a seat in the draft and the coaching tools. The DraftPosition contract on Polygon splits it in the same transaction with fixed shares and no owner withdraw; the contract keeps nothing. Check every payment at ' + URL_ + '/ledger and the contract at ' + URL_ + '/contract. Nobody receives anything unless real positions are bought in their line. ' + NOT_INCOME },
{ id: 'promote', title: 'Promote 5xYourTeam', q: ['Is there a promo kit?', 'Where are the banners?'], tags: ['promote', 'kit', 'banners'],
re: /(promo|promote|banners?|creatives?|kit|swipes?)/i,
a: 'The promo kit at ' + URL_ + '/promote has creatives in every common size and swipe copy, all carrying your network username. Your coach page is ' + URL_ + '/your-name.' }
];
const FAQ = [
{ id: 'f-network', title: '5xYourTeam and the other network sites', source: 'faq', tags: ['network', 'one account', 'holding tank'],
questions: ['Is 5xYourTeam part of InstantAdPay?', 'Where do the players in the pool come from?', 'Do I need a new account?'],
answer: '5xYourTeam is part of the network: one account, one username and one sponsor line across InstantAdPay, LinkSpin, Downline Banners, Viral Banner Blitz, ViralAdBlitz, DownlineHydra, 5xYourTeam, Stack POL and Earners Corner. The pool is the network\'s holding tank: people who joined without a sponsor. A pick is an adoption under the network\'s holding-tank rules, and the person gets the network\'s normal new-sponsor email.' },
{ id: 'f-started', title: 'What counts as a started pick', source: 'faq', tags: ['started', 'payouts on', 'first purchase'],
questions: ['What counts as started?', 'When does a pick count for Best Coach?'],
answer: 'A pick counts as started when they switch on payouts or make a first purchase. Started picks stay on your team, decide next week\'s draft order and count for Best Coach that Central week.' },
{ id: 'f-guides', title: 'Guides: How The Draft works, is it legit, coaching, FAQ', source: 'faq', tags: ['guides', 'guide', 'how it works', 'legit', 'faq'],
questions: ['Is there a guide?', 'Where can I read how it all works?', 'Is there an FAQ page?'],
answer: 'The guides at ' + URL_ + '/guides explain everything in plain words: How The Draft works (' + URL_ + '/guides/how-the-draft-works), Is 5xYourTeam legit? with the contract, ledger and split (' + URL_ + '/guides/is-5xyourteam-legit), Coaching your picks (' + URL_ + '/guides/coaching-your-picks) and the FAQ (' + URL_ + '/guides/faq).' }
];
const FACTS = () => [
'- WHAT IT IS: 5xYourTeam (' + URL_ + ') is The Draft: coaches draft people waiting in the network holding tank. A $' + PO.usd + ' one-time position (in POL, never a subscription, 1 to ' + PO.maxQty + ' per payment) = ' + PO.picksOnBuy + ' instant picks + a spot in every weekly draft + coaching tools + a coach page ' + URL_ + '/<username> and trading cards. Up to ' + PK.maxOpen + ' open picks at a time.',
'- THE DRAFT: every ' + WHEN + ', ' + D.rounds + ' rounds, straight order. Order is EARNED: most of last week\'s picks started (payouts on or a first purchase), then started ever, then the earlier position, then a fixed shuffle. In the room = a ' + D.pickSeconds + '-second clock; away = auto-picked at once from the coach\'s queue, else the best available by scouting score. A coach with ' + PK.maxOpen + ' open picks is skipped. A draft missed by more than ' + D.lateHours + ' hours (app down) is skipped, never run late.',
'- PICKS ARE ADOPTIONS under the network holding-tank rules: never anyone locked on a network contract, already sponsored, adopted twice, spam/throwaway, or within ' + PK.graceHours + ' hours of sign-up. An unstarted pick returns to the pool after ' + PK.returnDays + ' days unless they have had 2 adoptions; a started pick stays; no release in the first ' + PK.holdHours + ' hours. Coaches never see email, phone or contact data; they coach through site messages; the pick gets the network\'s normal new-sponsor email.',
'- SPLIT (DraftPosition constants, no owner withdraw): sponsor ' + SP.sponsorPct + '%, levels 2-5 ' + SP.levelPct + '% each, Best Coach pot ' + SP.potPct + '%, company ' + SP.companyPct + '%, same transaction. Pass-up: only position holders receive; the first holder up the line gets the ' + SP.sponsorPct + '%, the next four ' + SP.levelPct + '% each, within ' + SP.maxDepth + ' places; an unclaimed level share goes to the company; the pot share always goes to the pot. A failed send waits in the contract for its owner to claim. Sponsor line from the network hub, signed on the first position and recorded link by link, never changed.',
'- BEST COACH POT: ' + SP.potPct + '% of every position to a prize wallet fixed in the contract; each Central week shared among the coaches whose picks started the most (places ' + POT + ' percent; tie = got there first), announced on the board, every payout on the ledger. Prizes depend on that week\'s pot, never promised. Boards also show Rookie of the Week and last week\'s top 3.',
'- CARDS: Rookie (drafted), Starter (wallet), Pro (payouts on), All-Star (first purchase), Hall of Fame (holds a position of their own). Public cards show milestones, never earnings; scouting earnings show to coaches only.',
'- GUIDES (plain-word pages, send people there for detail): ' + URL_ + '/guides (index), /guides/how-the-draft-works, /guides/is-5xyourteam-legit (contract, ledger, split), /guides/coaching-your-picks, /guides/faq.',
'- PAGES: / (pool, tracker, standings), /join (buy), /guides, /team (coaching), /cards, /builder (CryptoTeamBuild builder, third-party programs), /promote, /ledger, /contract, /terms, /disclaimer, /privacy. Run by TrustClickz.',
(weekend.live() ? '- NETWORK WEEKEND (live now, Black Friday to Cyber Monday, Fri 11-27 to Mon 11-30, midnight to midnight Central): every position bought in the window comes with ' + weekend.weekendPicks() + ' instant picks instead of ' + PO.picksOnBuy + ', same $' + PO.usd + ' price. This overrides the ' + PO.picksOnBuy + ' picks above until Tuesday 12-01 00:00 Central. Every network deal: https://instantadpay.com/weekend' : null),
'- 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
].filter(Boolean).join('\n');
const SITE = {
id: 'fivex', hubSite: 'fivex', netId: 'fivex', name: '5xYourTeam', url: URL_, supportUrl: SUPPORT, knowledgeDate: KNOWLEDGE_DATE,
dataDir: C.dataDir, canned: CANNED, faq: FAQ, facts: FACTS,
// Network Weekend: the stored instant answers say the normal picks; while the weekend is live the reply carries the weekend number
finish: r => (weekend.live() ? r.replace(new RegExp('\\b' + PO.picksOnBuy + ' (picks right away|instant picks)', 'g'), weekend.weekendPicks() + ' $1 (Network Weekend, through Monday 11-30 midnight Central)') : r),
intro: 'You are the assistant on 5xYourTeam (' + URL_ + '), The Draft: coaches buy a $' + PO.usd + ' one-time position and draft people who joined the network without a sponsor every week, then coach them through site messages.',
quickTopics: ['How does The Draft work?', 'Where does the $10 go?', 'When is the draft?', 'What is Downline Banners?']
};
function init() { return core.init(SITE); }
module.exports = { init, handle: core.handle, answer: core.answer, KNOWLEDGE_DATE, CANNED, FAQ, SITE };