Bot for Musk Empire
🇷🇺 README на русском доступен здесь
| Feature | Supported |
|---|---|
| Multithreading | ✅ |
| Binding a proxy to a session | ✅ |
| Auto referring alts | ✅ |
| Sleep before run each session | ✅ |
| Claim daily grant | ✅ |
| Claim reward for friends | ✅ |
| Claim reward for completed quests | ✅ |
| Claim offline bonus | ✅ |
| Automatic taps | ✅ |
| PvP negotiations | ✅ |
| Daily quiz and rebus solution | ✅ |
| Investing in funds (combo for profit) | ✅ |
| Docker | ✅ |
| Option | Description |
|---|---|
| API_ID / API_HASH | Platform data for launching a Telegram session |
| REF_ID | Your referral argument for referring alt accounts (after ?startapp=) |
| TAPS_ENABLED | Taps enabled (True / False) |
| TAPS_PER_SECOND | Random number of taps per second (e.g. [20,30], max. 30) |
| PVP_ENABLED | PvP negotiations enabled (True / False) |
| PVP_LEAGUE | League in negotiations (e.g. bronze) |
| PVP_STRATEGY | Strategy in negotiations (e.g. random) |
| PVP_COUNT | Number of negotiations per cycle (e.g. 10) |
| INVEST_AMOUNT | Amount to invest in funds (e.g. 1400000) |
| SLEEP_BETWEEN_START | Sleep before start each session (e.g. [20, 360]) |
| ERRORS_BEFORE_STOP | The number of failed requests after which the bot will stop |
| USE_PROXY_FROM_FILE | Whether to use proxy from the proxies.txt file (True / False) |
You can obtain the API_ID and API_HASH after creating an application at my.telegram.org/apps
PvP negotiations are disabled by default. Enable at your own risk. Upgrade your negotiation and ethics skills to win in case of a tie. The default strategy is randomly selected for each negotiation. If you wish, you can specify your own strategy, which will be used in all negotiations. League names for the PVP_LEAGUE parameter: bronze, silver, gold, platina, diamond. Strategy names for the PVP_STRATEGY parameter: aggressive, flexible, protective. The PVP_COUNT parameter determines the number of negotiations the bot will conduct in one cycle (the bot performs all actions, then sleeps for an hour, which is the recurring cycle).
The answer to the daily quiz and the list of funds with guaranteed profits for investing are loaded from a json file on my website. I will try to update the data daily so that all your deployed bots can perform these actions and earn additional profit. When investing, the bet amount will always be the maximum, as the profit is guaranteed. If there is not enough money for the maximum bet, the bet amount will be reduced.
- Ensure you have Python 3.10 or a newer version installed.
- Use
INSTALL.batto install, then specify your API_ID and API_HASH in the .env file. - Use
START.batto launch the bot (or in the console:python main.py).
- Clone the repository:
git clone https://github.com/Alexell/MuskEmpireBot.git && cd MuskEmpireBot - Run the installation:
chmod +x INSTALL.sh START.sh && ./INSTALL.sh, then specify your API_ID and API_HASH in the .env file. - Use
./START.shto run the bot (or in the console:python3 main.py).
$ git clone https://github.com/Alexell/MuskEmpireBot.git
$ cd MuskEmpireBot
$ cp .env-example .env
$ nano .env # specify your API_ID and API_HASH, the rest can be left as default
$ docker-compose run bot -a 2 # first run for authorization (override arguments)
$ docker-compose start # start in background mode (default arguments: -a 1)
$ docker build -t muskempire_bot .
$ docker run --name MuskEmpireBot -v .:/app -it muskempire_bot -a 2 # first run for authorization
$ docker rm MuskEmpireBot # remove container to recreate with default arguments
$ docker run -d --restart unless-stopped --name MuskEmpireBot -v .:/app muskempire_bot # start in background mode (default arguments: -a 1)
You can download Repository by cloning it to your system and installing the necessary dependencies:
$ git clone https://github.com/Alexell/MuskEmpireBot.git
$ cd MuskEmpireBot
# Linux
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
$ cp .env-example .env
$ nano .env # specify your API_ID and API_HASH, the rest can be left as default
$ python3 main.py
# Windows (first, install Python 3.10 or a newer version)
> python -m venv venv
> venv\Scripts\activate
> pip install -r requirements.txt
> copy .env-example .env
> # specify your API_ID and API_HASH, the rest can be left as default
> python main.py
Also for quick launch you can use arguments:
$ python3 main.py --action (1/2)
# or
$ python3 main.py -a (1/2)
# 1 - Run bot
# 2 - Create session
$ cd MuskEmpireBot
# with logging
$ setsid venv/bin/python3 main.py --action 1 >> app.log 2>&1 &
# without logging
$ setsid venv/bin/python3 main.py --action 1 > /dev/null 2>&1 &
# Now you can close the console, and the bot will continue its work.
$ ps aux | grep "python3 main.py" | grep -v grep
