From 15d124ae550552dd5b11ef66cd492bec5db4f9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sat, 30 Mar 2019 04:53:17 +0100 Subject: [PATCH] prefix need to be in [] --- buildConfig.py | 6 +++--- config-exemple.jsonc | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/buildConfig.py b/buildConfig.py index ae8d7b0..95947e1 100644 --- a/buildConfig.py +++ b/buildConfig.py @@ -15,7 +15,7 @@ if version == 'A' or 'a': print('Owner ID?') ownerID = input() - data = {'token': token, 'prefix': prefix, 'ownerID': ownerID} + data = {'token': token, 'prefix': [ prefix ], 'ownerID': ownerID} with open("config.json", "w") as outfile: json.dump(data, outfile) quit() @@ -38,7 +38,7 @@ if version == 'B' or 'b': print('Channel ID for where the feedback will go') feedbackChannel = input() - 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: json.dump(data, outfile) quit() @@ -78,7 +78,7 @@ if version == 'C' or 'c': twiTokenSecret = input() - 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: json.dump(data, outfile) quit() diff --git a/config-exemple.jsonc b/config-exemple.jsonc index f2aa70f..6c2bffb 100644 --- a/config-exemple.jsonc +++ b/config-exemple.jsonc @@ -1,7 +1,9 @@ //RENAME ME TO config.json AND REMOVE THE COMMENT ( or change every instance of "config.json" to "config.jsonc" ) { "token": "Your token", - "prefix": "Your prefix ", + "prefix": [ + "Your prefix " //IMPORTANT TO BE LIKE THAT ( you can add more prefix ofc ) + ], "ownerID": "Id of the owner ( probably you )", //optional but recommended "botID": "id of the bot", //optional but recommended "statsChannel": "channel where the bot send his stats", //optional but recommended