From ba6a3ff28dc21fbd4e77306ab9fbd881421192aa Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 24 Apr 2020 18:35:25 +0200 Subject: [PATCH] Cleaning --- README.md | 3 +-- notify.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 488d217..0707a94 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -# Lichess Game Notification +# Lichess Games Notifications ### How to use it ? - 1. Install [Berserk](https://github.com/rhgrant10/berserk) with `pip install berserk` 2. Generate an access token on [Lichess.org](https://lichess.org) 3. Set the value of **ACCESS_TOKEN** variable in *notify.py* to the one use in step 2 diff --git a/notify.py b/notify.py index 9168dc6..6a76bbd 100755 --- a/notify.py +++ b/notify.py @@ -3,7 +3,7 @@ import berserk, subprocess # Change ACCESS TOKEN according to your need -ACCESS_TOKEN="EiZbLRtZzWnTL4xh" +ACCESS_TOKEN="" # Notify using notify-send @@ -20,5 +20,5 @@ for game in data: opponent=game["opponent"]["username"] lastMove=game["lastMove"] if game["isMyTurn"]: - notify_send("Lichess ("+opponent+")","It is your turn !\n Your oppenent played "+lastMove) + notify_send("Lichess.org ("+opponent+")","It is your turn !\n Your opponent played "+lastMove)