source/plugins/community/chess/README.md
</td>
<b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_chess_token</code></h4></td> <td rowspan="2"><p>Chess platform token</p> </td> </tr> <tr> <td nowrap="nowrap">🔐 Token🌐 Web instances must configure <code>settings.json</code>:
<ul> <li><i>metrics.api.chess.any</i></li> </ul> <b>type:</b> <code>token</code> </td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_chess_user</code></h4></td> <td rowspan="2"><p>Chess platform login</p> </td> </tr> <tr> <td nowrap="nowrap">⏯️ Cannot be preset<b>type:</b> <code>string</code>
<b>default:</b> <code>→ User login</code>
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_chess_platform</code></h4></td> <td rowspan="2"><p>Chess platform</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>string</code><b>allowed values:</b><ul><li>lichess.org</li></ul></td>
</tr> <tr> <td nowrap="nowrap"><h4><code>plugin_chess_animation</code></h4></td> <td rowspan="2"><p>Animation settings</p> <ul> <li><code>size</code> is the size of a single chessboard square in pixels (board will be 8 times larger)</li> <li><code>delay</code> is the delay before starting animation (in seconds)</li> <li><code>duration</code> is the duration of the animation of a move (in seconds)</li> </ul> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>json</code><b>default:</b> <details><summary>→ Click to expand</summary><pre language="json"><code>{ "size": 40, "delay": 3, "duration": 0.6 } </code></pre></details>
</td> </tr> </table> <!--/options-->Create a lichess.org account and select API access tokens to get a token.
It is not necessary to add additional scopes:
Create token and store it in your secrets:
name: Last chess game from lichess.org
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.chess.svg
token: NOT_NEEDED
base: ""
plugin_chess: yes
plugin_chess_token: ${{ secrets.CHESS_TOKEN }}
plugin_chess_platform: lichess.org