pas si malin
This commit is contained in:
parent
ffeb6cc854
commit
424712a1bd
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
*~
|
||||
*~
|
||||
state.json
|
3
next_song.py
Normal file → Executable file
3
next_song.py
Normal file → Executable 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)
|
||||
|
Loading…
Reference in New Issue
Block a user