lichess.org
Donate

Lise V10 is released

Chess botChess engineSoftware DevelopmentChess
Looking at some cool changes that come to Lise V10

Intro:

Hey all, I'm the dev of LISEBOT, an open-source chess Discord bot that connects Lichess to Discord and provides chess functionalities in Discord. I'm happy to release LISEBOT V10, which supports many features.

Features:

The top feature I worked hours on is getting Stockfish integration into Lise, this one was hard yet fun to implement, What's the point of using Stockfish in Discord you might ask? I mean there is Stockfish with 5 sites including Lichess, right? Yeah, you're right, but the main problem I saw a lot in Discord convos is that people usually send a chess fen or PGN and expect others to know Stockfish Eval or the best move, which is not possible as people usually go to Lichess lets say pass in FEN in analysis board and get the eval and explain why such position is like that. This happened a lot in many chess Discord servers I'm in and it was sort of annoying seeing this, so I thought it was time to be the hero and solve this complex problem.

So what I came up with you might ask? Well, it's not the next big thing, but a live Stockfish analysis board in Discord, where a user can pass in FEN in /analysis [FEN] command and click "play move" to get Stockfish eval, topline, and of course the best move. To replicate the engine playing move in Discord, I used the edit message trick to make it look like Stockfish is playing the move, but it's just an edit message!

To get the Stockfish's data I used Stockfish REST API which is available to devs from a private dev that allows devs to get Stockfish data over REST protocol rather than installing Stockfish on a machine and getting moves and relevant data like that.

Lise is packed with quite a lot of features like setting up Lichess games in a of seconds using /play which allows you to pick time control and casual and rated modes. The top command people like is /move this command allows you to play a chess engine in Discord live! This command used to have my beginner Bot LISEBOT which is just a dumb human-like engine that uses a combination of search methods to implement human play. Well, what I did is that I made /move support Stocfish play at depth 13 to make it hard for users to face an engine in Discord. This was a hard decision but I felt like Lise is too simple of the bot and it got overran quite easily, and since Stockfish REST API works quite well within 3 ms I just thought to take advantage and stick Stockfish there.

Another cool feature I use myself /puzzle command, in this command what I did was merge Lichess daily, Chess.com and Chess.com random, puzzles into 1 single command. This was a smart thing to do because it allows the user to pick any of the above within 1 command! Well, I can go on and on but I did record a simple YouTube video for you to see it in action, maybe you are not a Discord user or don't even know what a Discord bot is, but at least you can see how Stockfish works in Discord!

Demo:

https://youtu.be/ChFw8mT7zBo?si=XAEz0J53GH-7RJrd

Code:

Lise is open source and people can use parts or the entire bot for personal or any use they want. It also lists all the libraries, Stockfish API and other things, if you a dev feel free to explore this repo!
Github

If you Discord freak and know about the Discord app directory Lise is available there to be installed if you wish to use my new feature for Stockfish analysis.

App Directory

Future Plans:

Well for the future I think I have solved most of the problems on the Discord side, but I did like to make Lise support passing in custom FEN and playing Stockfish there. On the Lichess side, I want to make my dumb LISEBOT maybe pull some of Stockfish's moves and try to play that as 3rd or 4th best move in the game to get it to play the openings well! There are many ideas I have in my mind but before I write an entire essay I would let you go and browse other cool Lichess blogs!

Have a great day!

Noob