2020-07-12 16:37:33 +00:00
|
|
|
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}
|
2021-03-26 09:13:21 +00:00
|
|
|
with open("config.json", "w") as file:
|
2020-07-12 16:37:33 +00:00
|
|
|
json.dump(data, file)
|