Skip to content

The code template to make a Lidraughts Bot and deploy it to heroku server easily.

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
Copying.txt
Notifications You must be signed in to change notification settings

SriMethan/Lidraughts-Bot-Heroku

Repository files navigation

lidraughts-bot

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

Draughts Engine

Heroku Buildpack

Heroku Stack

  • heroku-20 (allowing a maximum hash size of 512 mb)

How to Use

  • Fork this repository.
  • Edit only your token in the config.yml file over here.
  • Create a new heroku app.
  • Go to the Deploy tab and click Connect to GitHub.
  • Click on search and then select your fork of this repository.
  • Then Enable Automatic Deploys and then select the main branch (which is already done by default usually) and Click Deploy.
  • Once it has been deployed, go to 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.)
  • Finally go to your 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 token

You're now connected to lidraughts and awaiting challenges! Your bot is up and ready!

Copying

For Copying the heroku codes see here

Acknowledgements

This code exsit because of Attackingordefending's bot client

About

The code template to make a Lidraughts Bot and deploy it to heroku server easily.

Resources

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
Copying.txt

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages