The code template to make a Lidraughts Bot and deploy it to heroku server easily. This is the code of @libot and similar heroku run bots in lidraughts.org
Engine communication code taken from https://github.com/AttackingOrDefending/lidraughts-bot by AttackingOrDefending
heroku-20
(allowing a maximum hash size of 512 mb)config.yml
file over here.Deploy
tab and click Connect to GitHub
.search
and then select your fork of this repository.Enable Automatic Deploys
and then select the main
branch (which is already done by default usually) and Click Deploy
.Resources
tab on heroku and enable worker (bash startbot.sh)
dynos. (Do note that if you don't see any dynos in the Resources
tab, then you must wait for about 5 minutes and then refresh your heroku page.)Settings
tab and then under Config Vars
click on Reveal Config Vars
and then in the place of key
type in LIDRAUGHTS_BOT_TOKEN
and in the place of value
add your Lidraughts bot tokenYou're now connected to lidraughts and awaiting challenges! Your bot is up and ready!
For Copying the heroku codes see here
This code exsit because of Attackingordefending's bot client