Giter Club home page Giter Club logo

botclusters's Introduction

🪧 BotClusters

Have you encountered the problem where you have to host less resource intense Telegram Bots for free and you can only host a bot for an account but you wanted to host all bots in one instance, well say no more...

You can run multiple bots in a same instance, for now it only works for pure python bots (no docker support yet) but you need to host this on services which provide Docker support.


❓️ How to Use ?

  1. Fork & Star this repository
  2. Edit config.json to your Repo Data
  3. Deploy and Host your Forked repository on server
  4. Run Several Instance on Same Deploy

🔰 Repo Features

  • Stay Updated since it clones from GitHub (on every Restart)
  • Extend you can extend this to any number of bots by just adding more objects (see Example below) although i recommend not to exceed 5 for 500 MB memory.
  • ENVs you can set different ENV values for different bots even with same name.
  • Control you can also set script file from where execution starts for that bot.
  • Private you can also clone private repositories with help of Tokens. (see Example below)
  • Web App uses Flask to connect to service, so that it can be hosted as Dynamic Web Apps which is required for services like Render, Koyeb etc.

#️⃣ Sample config.json

  1. Bots Details:

    Ebook: Indentifier Name (Can be Anything But Unique for Every Bot)

    Variable Value Required
    source Give Github URL of it. *Required
    branch Branch of Github Repository *Required
    env Environment Variables for Bot *Required
    run Execution Command to run Bot *Required
{   
    "Ebook": {
        "source": "https://github.com/bipinkrish/Ebooks-Bot.git",
        "branch": "main",
        "env": {
            "TOKEN": "xxx",
            "ID": "111",
            "HASH": "yyy",
            "REMIX_ID": "123",
            "REMIX_KEY": "abc123",
            "IA_EMAIL": "[email protected]",
            "IA_PASS": "[email protected]"
        },
        "run": "main.py"
    },
    "Link": {
        "source": "https://github.com/bipinkrish/Link-Bypasser-Bot.git",
        "branch": "main",
        "env": {
            "TOKEN": "fff",
            "ID": "222",
            "HASH": "123abc"
        },
        "run": "app.py"
    },
    "Private": {
        "source": "https://bipinkrish:[email protected]/bipinkrish/private.git",
        "branch": "main",
        "env": {
            "TOKEN": "yyy",
            "ID": "444",
            "HASH": "abc321"
        },
        "run": "bot.py"
    }
}

ℹ️ References:

botclusters's People

Contributors

mysterydemon avatar silentdemonsd avatar demerbot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.