@peerbit/joke-bot-cli
v2.0.1
Published
Runs the `@giga-app/joke-bot` program on your machine.
Readme
giga-app-joke-bot (CLI)
Runs the @giga-app/joke-bot program on your machine.
Run from this repo
Build:
pnpm -r --filter @peerbit/joke-bot-cli... run buildNetwork selection:
--network prod|local|offline(aliases:--prod,--local,--offline)
Interactive mode (recommended):
node lib/esm/bin.jsNon-interactive (dry-run):
node lib/esm/bin.js --intervalMinutes 1 --dryRunPublish to the network:
node lib/esm/bin.js --intervalMinutes 5Post once and exit:
node lib/esm/bin.js --runOnceDial a local relay instead of bootstrapping:
node lib/esm/bin.js --local --intervalMinutes 1Offline (no dial/bootstrap):
node lib/esm/bin.js --offline --runOnce --dryRunTargeting (optional)
By default, the bot posts under the public Giga root canvas.
--scopeAddress(or--scope) posts within a specificScopeaddress.--parentCanvasId(or--parent) posts under a specific parent canvas id (base64/base64url of the 32-bytecanvas.id).
Options
node lib/esm/bin.js --helpRunning from repo root
If you prefer to run it from the repo root (instead of packages/social-media-app/bots/joke-bot-cli), use:
node packages/social-media-app/bots/joke-bot-cli/lib/esm/bin.js --help