fran93 / LordSith

An ogame bot using docker.
MIT License
0 stars 0 forks source link

How to run #1

Open renanogueira opened 4 years ago

renanogueira commented 4 years ago

Hello! First of all, thank you for the project! I don't know how to run it... I have docker and I know a little about it.

Can you share more informations about build the project?

Thanks!

fran93 commented 4 years ago

Hi, thank you. -First I'm using this project in the server Mensa of Germany, so you will have to do some changes to the code. 1- In PagesEnum in LOBBY put the url of your server. 2- In application.properties put your email ogame.email 3 -In application.properties put your password in plain text, or generate it using jasypt. 4 - You build the project with maven like this: mvn -Ppro clean install(headless mode) If you are going to debug the project, don't use the profile: mvn clean install(graphical mode). 5 - Currently you don't need docker to run the project, but if you want to use docker, just execute this: docker build -t lord-sith . docker run lord-sith 6- In the class Tasks you have the cronjobs, so the bot will be executed every 20 minutes from 6 to 21 to simulate that it's a real player. Maybe you want to try a different approach.

I hope it's helpful.

PiecePaperCode commented 4 years ago

I see you using selenium How do you take care on a machine that dosent has Firefox installed?