Skip to content

ramziddin/CryptoPrivateBot

Repository files navigation

Easily monetize your Telegram channels via the Crypto Pay API.

This bot was created to win the Crypto Bot Contest.

Developed with ❤️ by @RamzCoder.

Development

  1. Install dependencies via npm install.

  2. Copy the .env.example file into a .env file.

  3. In .env file set the following environment variables:

    NODE_ENV=development
    BOT_TOKEN=<your test bot token>
    MONGODB_URI=<your local mongodb instance uri>
    CRYPTO_PAY_TOKEN=<your crypto pay api token>
    

    Please note: Running the bot with NODE_ENV=development deletes the webhook to start polling. Make sure to use a non-production token in BOT_TOKEN environment variable.

  4. Start the bot using npm start

Deploy

  1. Install dependencies via npm install.

  2. Copy the .env.example file into a .env file.

  3. In .env file set the following environment variables:

    NODE_ENV=production
    BOT_TOKEN=<your production bot token>
    MONGODB_URI=<your production mongodb instance uri>
    CRYPTO_PAY_TOKEN=<your crypto pay api token>
    APP_URL=<your app url to install the webhook to>
    PORT=<your port to listen the updates on>
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published