Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

zhisme/hwm_worker

Repository files navigation

HwmWorker

This gem is intended to use on https://heroeswm.ru flash game.
This is made for automation of boring captcha in game scenario. So you pass your credentials in specific file, buy a captcha resolver at rucaptacha.com and watch you are going rich.

Also it can now make auto-hunt, you just need to buy an item which allows you to do this, and bot will press this buttons

Warning

Some of my characters was banned due to use of the app, be careful and do not set your chars to work 24h per day.

Docker Setup (Recommended)

The easiest way to run this project is using Docker Compose. This handles all dependencies including Selenium and Chrome automatically.

# Create config files
$ cp .hwm_credentials.sample.yml .hwm_credentials.yml
$ cp secrets.sample.yml secrets.yml

# Edit config files with your credentials
# Then start the services:

$ docker-compose up worker  # Run bin/run
$ docker-compose up hunter  # Run bin/hunt
$ docker-compose up         # Run both

For detailed Docker instructions, see DOCKER_README.md

Local Installation (Without Docker)

If you prefer to run without Docker, you'll need to install Selenium and ChromeDriver manually.

Note

You will need to install selenium and selenium driver. You can specify prefered selenium driver in config/initializers.rb. Here I use :selenium_chrome.

For further information use this http://chromedriver.chromium.org/getting-started

Installation (Local)

Download repo

$ git clone [email protected]:zhisme/hwm_worker.git

And then execute:

$ bundle install # or bin/setup

Create config files based on samples:

$ cp .hwm_credentials.sample.yml  .hwm_credentials.yml
$ cp secrets.sample.yml secrets.yml # can be omitted if ran `bin/setup` command

Fill in with your own game credentials.

Usage (Local)

$ APP_ENV=development bin/run
$ APP_ENV=development bin/hunt

Options

Environment variables are used for some internal options: APP_ENV - manages logic of logs and handling exceptions. Defaults to PROD behaviour. Use development for testing.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ezhdanov/hwm_worker. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the HwmWorker project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Heroeswm flash game work bot

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •