pas si malin

This commit is contained in:
Aethor 2021-06-06 00:44:09 +02:00
parent ffeb6cc854
commit 424712a1bd
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*~
state.json

3
next_song.py Normal file → Executable file
View File

@ -23,3 +23,6 @@ if __name__ == "__main__":
print(random.choice(glob.glob(f"{script_dir}/songs/*.ogg")))
else:
exit(1)
with open(f"{script_dir}/state.json", "w") as f:
json.dump(state, f, indent=4)