GitHub - handywebprojects/hyperbot: hyper bot · GitHub
Skip to content

handywebprojects/hyperbot

 
 

Repository files navigation

<!doctype html>

Welcome to Hyper Bot !


If you want to create your own permanent bot, do the following:

Sign up to GitHub

With your GitHub account visit hyperchessbot repo, then click on Fork.

Sign up to Heroku

At Heroku create a new app using New / Create new app.

In the app's dashboard go to the Deploy tab. Use the GitHub button to connect the app to your forked repo. You need to deploy the master branch. Enable Automatic Deploys and press Deploy Branch, for the initial deploy.

Create an API access token with your BOT account ( should have scopes Read incoming challenges / Create, accept, decline challenges / Play games with the bot API ) and in Heroku Settings / Reveal Config Vars create a new variable TOKEN and set its value to your newly created access token and also create a variable BOT_NAME and set its value to your bot's username.

Congratulations, you have an up and running lichess bot.


Install the bot locally:

Open the project's gitpod terminal

npm install

export TOKEN={BOT API token}

export BOT_NAME={BOT username}

node server.js


Other config env vars:

GENERAL_TIMEOUT : for event streams in seconds ( default : 15 )

ENGINE_THREADS : engine Threads option ( default : 1 )

ENGINE_MOVE_OVERHEAD : engine Move Overhead option in milliseconds ( default : 500 )

About

hyper bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • JavaScript 99.6%
  • Other 0.4%