GithubHelp home page GithubHelp logo

movindutb / m07001x Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 80.4 MB

Lichess Bot Coded Using Python

Home Page: https://lichess.org/M07001

License: GNU Affero General Public License v3.0

Python 99.36% Dockerfile 0.64%
lichess lichess-api lichess-bot python stockfish lc0 stockfish-engine

m07001x's Introduction

Typing SVG

MAINTAINER OIVAS7572 AND MOVINDUTB

Python Build Python Test Docker

Typing SVG

  • A bridge between Lichess API and bots.
  • This bot is made with Python and it is running using Docker container and is concentrated on heroku.

Typing SVG

  • Import or Fork this repository to your Github.
  • Open the Settings tab on heroku and insert your API access token with bot:play scopes enabled in the Config vars field in the format LICHESS_BOT_TOKEN:API-ACCESS-TOKEN, where you replace API-ACCESS-TOKEN with your API Access token.
  • Install Heroku CLI and create a new app in Heroku.
    Do note that in certain operating systems Heroku CLI doesn't get added to path automatically. If that's the case you'll have to add heroku to your path manually.
  • Run this command in cmd or powershell heroku stack:set container -a appname, where appname is replaced with your Heroku app's name.
  • Deploy your repository to heroku
  • After deploying wait for about 5 minutes till the build finishes and then in the Resources tab in heroku turn worker dynos. If you do not see any option to enable any dynos, then you'll have to wait for about 5 minutes and then refresh your page on heroku.

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

Typing SVG

Engine:

Opening Books:

Keep you Forks or Imports Up-to-Date & Check the other Branches in this Repository

If you would like to run bot locally on PC, read the lichess-bot manual.

Typing SVG

Changing the engine to an engine of your preference is simple. Just follow the following steps:

  • Firstly, you have to remove the engine used. To do this you need delete the file named stockfish15 in the engines/ folder.
  • Then you need to download the binary of the chess engine you want to used and into your GitHub repository, Go to the engines/ folder, Click on Add files and then click Upload files and upload the binary of the chess engine you have downloaded.
    Note: Make sure you download a linux binary that is supported by heroku (by default Stockfish is used, and the default engine name is stockfish15).
  • Then change the name of engine in 6th line of config.yml and 14th line of Dockerfile to your binary file's name.

Typing SVG

Credits to ShailChoksi's lichess-bot.

Typing SVG

This code is primarily taken from lichess-bot by ShailChoksi and is hence run under the AGPLv3 License (or later at your option). Check out the LICENSE file for full text.

m07001x's People

Contributors

dependabot[bot] avatar movindutb avatar oivas000 avatar theyobots avatar vibranium21 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pybotdev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.