Git Product home page Git Product logo

tele-worker's Introduction

Docker Tele-worker

Into

This script has configuration and cant work with Zcash_click_bot, so you need add this bots to your telegram account before start.

For Linux

  • Create Docker Image
   sudo docker build -t tele-worker .
  • Create configuration for workers in config.json with Api Keys from https://my.telegram.org/auth
  • Command python3 workers.py will generate workers
  • In each new worker folder run python3 main.py and login
  • If you get errors install dependencies from requirement.txt
  • Go to containers.py and replace path /home/botfarm/tele-worker/workers with your path to workers folder
  • Run sudo python3 containers.py and create container for each worker

For windows:

  • Create Docker Image
   sudo docker build -t tele-worker .
  • Create configuration for workers in config.json with Api Keys from https://my.telegram.org/auth
  • in python3 workers.py replace function "create Worker"
   def createWorker(worker):
   w_path = 'workers/test_' + worker['API_NAME']
   print('mkdir ' + w_path)
   shutil.copytree("working/", w_path, ignore=shutil.ignore_patterns('*.pyc', 'tmp*'))
   with open(w_path + '/config.json', 'w') as outfile:
       json.dump(worker, outfile)
  • Command python3 workers.py will generate workers
  • in simulator.py for first start, add import
from selenium.webdriver.firefox.webdriver import WebDriver

and add

 driver = WebDriver(executable_path=r'yourpathtodriver\geckodriver.exe',options=self.opts)
 self.browser = driver
  • After first start in simulator.py replace code on
driver = WebDriver(options=self.opts)
self.browser = driver
  • In each new worker folder run python3 main.py and login
  • If you get errors install dependencies from requirement.txt
  • Go to containers.py and replace path /home/botfarm/tele-worker/workers with your path to workers folder
  • Run python3 containers.py and create container for each worker

tele-worker's People

Contributors

yurasakun avatar caulfield33 avatar caulfield32 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.