diff options
| author | Fuwn <[email protected]> | 2023-01-02 21:30:23 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 21:30:23 -0800 |
| commit | 5ec1f027b5f28b83a75e52ba2c55f712dc862b87 (patch) | |
| tree | df9d4aff59f6c431244fa8e95646621f3954a299 | |
| parent | fix: time refresh (diff) | |
| download | rubys_song_skipper-5ec1f027b5f28b83a75e52ba2c55f712dc862b87.tar.xz rubys_song_skipper-5ec1f027b5f28b83a75e52ba2c55f712dc862b87.zip | |
fix: lines maybe
| -rw-r--r-- | rubys_song_skipper/bot.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rubys_song_skipper/bot.py b/rubys_song_skipper/bot.py index be00867..231eae0 100644 --- a/rubys_song_skipper/bot.py +++ b/rubys_song_skipper/bot.py @@ -30,6 +30,8 @@ class Bot(commands.Bot): refresh = lines[1].strip() expire = lines[2].strip() + print(lines) + if time.time() > float(expire): file.close() @@ -39,6 +41,7 @@ class Bot(commands.Bot): with open("code.txt", "w") as file: file.write(f"{access}\n{refresh}\n{new_expire}") + file.close() if data == "": await ctx.send("i'm not authorized to do that. sign in.") |