Skip to content

Repository files navigation

Worm Market Bot 🤖

Automated Bitcoin prediction market creator for Worm.wtf. Creates markets every 15 minutes based on live Binance BTC price data.

Features

  • 🚀 Automated: Creates markets every 15 minutes using cron
  • 🛡️ Secure: Uses environment variables for authentication
  • 🐳 Docker Ready: Easy deployment with Docker containerization
  • 🧩 Flexible: Uses body.json template with {{time}}, {{date}}, and {{price}} placeholders

Setup

  1. Clone the repository
  2. Configure Environment Copy the example environment file:
    cp .env.example .env
    Edit .env and add your Worm.wtf authentication token:
    WORM_AUTH_TOKEN=Bearer your_token_here

Usage

Using Docker (Recommended)

  1. Build the image

    docker build -t worm-bot .
  2. Run the container

    docker run -d --name my-worm-bot --restart unless-stopped worm-bot

    Note: Since .env is copied into the image during build (as per configuration), you don't need to pass it at runtime unless you want to override it.

Running Locally

  1. Install dependencies

    npm install
  2. Start the bot

    npm start

Project Structure

  • index.js: Main bot logic and scheduler
  • body.json: Market template file
  • assets/: Static assets (logos, etc.)
  • Dockerfile: Container configuration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages