-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we run Lidraughts bot in heroku #3
Comments
Yes. You do exactly what you would do for lichess-bot. I will make some changes explaining how to run a bot in heroku. |
I pushed the changes explaining it. You can find them here. |
@AttackingOrDefending what is the recommended engine to make bot using heroku |
You can use Scan (https://github.com/rhalbersma/scan). |
If I run this code in heroku, how can I use this for what? |
And could you tell me how to use 8x8 CBEngine in detail? |
Use the steps here, to run a bot on heroku. You can't run a CBEngine in heroku because heroku uses Linux while the engines were compiled for windows. |
Thank you for your response. |
For an engine you can download Scan (hjetten.home.xs4all.nl/scan/scan.html). Copy or rename the file config.yml.default to config.yml. Create an account and get a bot token (github.com/AttackingOrDefending/lidraughts-bot#lidraughts-oauth). To setup the engine follow the steps github.com/AttackingOrDefending/lidraughts-bot#setup-engine. Edit the variants (supported_variants) and time controls (supported_tc) from the config.yml (use # to disable certain ones). For hosting it on heroku:
|
I already deployed the code on heroku. |
Go to Resources (https://dashboard.heroku.com/apps//resources), click "Edit dyno formation" and enable the app and click "Confirm". |
I'm going to make a checkers game AI engine using Node js or Python. |
The log means that it works. Examples of a Python checkers engine: |
Could you tell me how to use this code after deploying on Heroku? |
They aren't compatible with lidraughts-bot. You are going to have to modify them in order to connect them to lidraughts-bot. You can use the homemade protocol. Otherwise, you can use an engine that supports the hub or dxp protocol that you can find on the internet, like Scan which is what your bot already uses. |
I used scan from (https://github.com/rhalbersma/scan). |
None of them are compatible with lidraughts-bot. The last one is probably the easiest to adapt, since it already uses pydraughts. See here for the file with the engine logic. |
Note : - Anyone can run a bot on Heroku But, Finally, Heroku doesn't have any free plans, but I guess they have some eco plans or basic plans which charges only low cost to run the bot on Heroku, If someone needs another free alternative of Heroku take a look at cloudcommunity/Free-Hosting If someone prefers a paid alternative of Heroku take a look at cloudcommunity/Cloud-Free-Tier-Comparison |
Hey! Guess what I found! render.com/docs/migrate-from-heroku Completely free Only for web not worker though for migrating to vercel from heroku I think I found a video too if you want... But that's only web too |
The title is the question
Please tell me @AttackingOrDefending
The text was updated successfully, but these errors were encountered: