Initial commit
This commit is contained in:
commit
f42830dcd0
5 changed files with 155 additions and 0 deletions
12
configure.py
Normal file
12
configure.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import argparse
|
||||
import json
|
||||
|
||||
parser = argparse.ArgumentParser(description="Creates a config.json from your client_id and secret")
|
||||
parser.add_argument("client_id", type=str)
|
||||
parser.add_argument("secret", type=str)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
data = {"client_id": args.client_id, "secret": args.secret}
|
||||
with open("config.json") as file:
|
||||
json.dump(data, file)
|
Loading…
Add table
Add a link
Reference in a new issue