added quit()

This commit is contained in:
Loïc Bersier 2019-03-29 04:00:17 +01:00
parent 3edae43d30
commit 8f0639ab44

View file

@ -18,6 +18,7 @@ if version == 'A' or 'a':
data = {'token': token, 'prefix': prefix, 'ownerID': ownerID} data = {'token': token, 'prefix': prefix, 'ownerID': ownerID}
with open("config.json", "w") as outfile: with open("config.json", "w") as outfile:
json.dump(data, outfile) json.dump(data, outfile)
quit()
if version == 'B' or 'b': if version == 'B' or 'b':
print('You choosed the recommanded version') print('You choosed the recommanded version')
@ -40,6 +41,7 @@ if version == 'B' or 'b':
data = {'token': token, 'prefix': prefix, 'ownerID': ownerID, 'botID': botID, 'statsChannel': statsChannel, 'supportServer': supportServer, 'feedbackChannel': feedbackChannel} data = {'token': token, 'prefix': prefix, 'ownerID': ownerID, 'botID': botID, 'statsChannel': statsChannel, 'supportServer': supportServer, 'feedbackChannel': feedbackChannel}
with open("config.json", "w") as outfile: with open("config.json", "w") as outfile:
json.dump(data, outfile) json.dump(data, outfile)
quit()
if version == 'C' or 'c': if version == 'C' or 'c':
print('You choosed the full version') print('You choosed the full version')
@ -79,3 +81,4 @@ if version == 'C' or 'c':
data = {'token': token, 'prefix': prefix, 'ownerID': ownerID, 'botID': botID, 'statsChannel': statsChannel, 'supportServer': supportServer, 'feedbackChannel': feedbackChannel, 'fbuser': fbuser, 'fbpasswd': fbpasswd, 'yandexAPI': yandexAPI, 'acoustID': acoustID, 'twiConsumer': twiConsumer, 'twiConsumerSecret': twiConsumerSecret, 'twiToken': twiToken, 'twiTokenSecret': twiTokenSecret} data = {'token': token, 'prefix': prefix, 'ownerID': ownerID, 'botID': botID, 'statsChannel': statsChannel, 'supportServer': supportServer, 'feedbackChannel': feedbackChannel, 'fbuser': fbuser, 'fbpasswd': fbpasswd, 'yandexAPI': yandexAPI, 'acoustID': acoustID, 'twiConsumer': twiConsumer, 'twiConsumerSecret': twiConsumerSecret, 'twiToken': twiToken, 'twiTokenSecret': twiTokenSecret}
with open("config.json", "w") as outfile: with open("config.json", "w") as outfile:
json.dump(data, outfile) json.dump(data, outfile)
quit()