Automated Bitcoin prediction market creator for Worm.wtf. Creates markets every 15 minutes based on live Binance BTC price data.
- 🚀 Automated: Creates markets every 15 minutes using cron
- 🛡️ Secure: Uses environment variables for authentication
- 🐳 Docker Ready: Easy deployment with Docker containerization
- 🧩 Flexible: Uses
body.jsontemplate with{{time}},{{date}}, and{{price}}placeholders
- Clone the repository
- Configure Environment
Copy the example environment file:
Edit
cp .env.example .env
.envand add your Worm.wtf authentication token:WORM_AUTH_TOKEN=Bearer your_token_here
-
Build the image
docker build -t worm-bot . -
Run the container
docker run -d --name my-worm-bot --restart unless-stopped worm-bot
Note: Since
.envis copied into the image during build (as per configuration), you don't need to pass it at runtime unless you want to override it.
-
Install dependencies
npm install
-
Start the bot
npm start
index.js: Main bot logic and schedulerbody.json: Market template fileassets/: Static assets (logos, etc.)Dockerfile: Container configuration