Hey, I am a chess streamer on Twitch and I would like to create the popular !elo command for this. But I dont know how it works. I heard that you need a own bot for this but I dont know how can I build bot.
@FlowCap You might look into NightBot for example, but it's rather a question for search engines/Twitch than Lichess.
@FlowCap DM me if you need some help i will explain you :)
@FlowCap I posted the PHP code in our discord when you asked me. ;-) I can show how I did with nightbot if you like.
How to stream?
@debangshu_haldar Usually you start with OBS and a Twitch account. Both free. Good luck! :)
@Wuestenigel That would be nice! What is a PHP code? :D
How do you own a bot?
<?php
$json = json_decode(file_get_contents("lichess.org/api/user/wuestenigel"));
$ratingRapid = $json->perfs->rapid->rating;
$ratingblitz = $json->perfs->blitz->rating;
$puzzle = $json->perfs->puzzle->rating;
$text = "Rapid: $ratingRapid, Blitz: $ratingblitz, Aufgaben: $puzzle. Mehr auf lc.wuestenigel.com lichesHorsey";
echo $text;
?>
Das Ganze packst du in eine PHP-Datei.
Dann erstellst du in Nightbot !ELO
Dann machst Du einen "Fetch" auf die PHP-Datei (www.deinServer.de/elophp).
Und fertig ist das Script in Version 0.1 ohne Caching.
$json = json_decode(file_get_contents("lichess.org/api/user/wuestenigel"));
$ratingRapid = $json->perfs->rapid->rating;
$ratingblitz = $json->perfs->blitz->rating;
$puzzle = $json->perfs->puzzle->rating;
$text = "Rapid: $ratingRapid, Blitz: $ratingblitz, Aufgaben: $puzzle. Mehr auf lc.wuestenigel.com lichesHorsey";
echo $text;
?>
Das Ganze packst du in eine PHP-Datei.
Dann erstellst du in Nightbot !ELO
Dann machst Du einen "Fetch" auf die PHP-Datei (www.deinServer.de/elophp).
Und fertig ist das Script in Version 0.1 ohne Caching.
This topic has been archived and can no longer be replied to.