The bot is developed and built using IntelliJ IDEA 13 and Groovy. Make sure the Groovy Plugin is enabled in IntelliJ by going to Settings → Plugins.
-
Install JDK 1.7 x86 to default location.
-
Install Groovy 2.1.8 to default location.
-
Open up IntelliJ IDEA and
Check out from Version Controlwhich is either in the Quick Start menu or underVCS. Choose Github, enter Github credentials and clone theteemos-casino-bot.gitrepo. -
Click
Yesfor creating a new IDEA project. ChooseCreate project from existing sourcesand keep the default name for the project. Uncheck the/leaguelib/srcfolder so that it is not added to the project roots. Uncheckgson-2.2.2fromLibraries. Keep going and if IntelliJ asks about overwriting the module file, clickReuse. Select or add JDK 1.7 x86 to the project SDK. Import wizard should finish now.
-
Go to
File -> Project Structure -> Libraries. Add and downloadorg.codehaus.groovy.modules.http-builder:http-builder:0.6from Maven, then click OK. -
Right click on
leaguelib/src/build.xmlandAdd as Ant Build File. In theAnt Buildwindow, run the ant build for leaguelib. Should be successful, tests might fail, but as long as theleaguelib.jaris built in theleaguelib/buildfolder we're all good. InFile -> Project Structure -> Libraries, add the Java library atleaguelib/build/jar/leaguelib.jar. -
Install Tesseract. Copy the
kda.traineddatafile into/path/to/Tesseract-OCR/tessdata. -
Download Tess4J. Copy the
libtesseract-302.dllandliblept168.dllfiles intopath/to/Tesseract-OCR. Add thetess4j.jarandjai_imageio.jarlibraries to the project libraries.
Right click on Bot.groovy and run Bot.main().
Make sure to rerun the ant build if you make any changes to leaguelib.