Dumb question I'm sure, but I'm relatively new to the API, especially lichess, so I'll have to figure this out. I remember the Mittens bot on chess.c*m always had random quotes every few moves, like in loosing/winning positions, blunders, or for absolutely no reason. Can someone explain how I can do this with my own bot? It would be helpful in making it intimidating to humans, and interesting to watch. Thanks!
#How do I make my bot say things in chat other than the greeting?
2 messages · Page 1 of 1 (latest)
Hi!
I'm assuming the application you are using is https://github.com/lichess-bot-devs/lichess-bot/?
It's the mention of "greeting" which makes me believe that - since the wiki section has information about a greeting - https://github.com/lichess-bot-devs/lichess-bot/wiki/Configure-lichess-bot#greeting
If the application doesn't have support to chat in games already, I guess you would need to create that support, or ask for it as a feature request.
The Lichess API is documented at https://lichess.org/api, and the endpoint which is used to write messages to a bot game is https://lichess.org/api#tag/Bot/operation/botGameChat.
(The lichess-bot application is most likely using this endpoint for the greeting messages,
so if you decide to add the feature to the application, I guess you can reuse the code it is using to send greetings)
And here's the endpoint to read game chat, https://lichess.org/api#tag/Bot/operation/botGameChatGet - if your bot is going to be intimidating, maybe it could recognize certaing phrases from its opponents and respond to them 🙂