forked from Supositware/Haha-Yes
prefix need to be in []
This commit is contained in:
parent
7b0473456e
commit
15d124ae55
2 changed files with 6 additions and 4 deletions
|
@ -15,7 +15,7 @@ if version == 'A' or 'a':
|
||||||
print('Owner ID?')
|
print('Owner ID?')
|
||||||
ownerID = input()
|
ownerID = input()
|
||||||
|
|
||||||
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()
|
quit()
|
||||||
|
@ -38,7 +38,7 @@ if version == 'B' or 'b':
|
||||||
print('Channel ID for where the feedback will go')
|
print('Channel ID for where the feedback will go')
|
||||||
feedbackChannel = input()
|
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:
|
with open("config.json", "w") as outfile:
|
||||||
json.dump(data, outfile)
|
json.dump(data, outfile)
|
||||||
quit()
|
quit()
|
||||||
|
@ -78,7 +78,7 @@ if version == 'C' or 'c':
|
||||||
twiTokenSecret = input()
|
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:
|
with open("config.json", "w") as outfile:
|
||||||
json.dump(data, outfile)
|
json.dump(data, outfile)
|
||||||
quit()
|
quit()
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
//RENAME ME TO config.json AND REMOVE THE COMMENT ( or change every instance of "config.json" to "config.jsonc" )
|
//RENAME ME TO config.json AND REMOVE THE COMMENT ( or change every instance of "config.json" to "config.jsonc" )
|
||||||
{
|
{
|
||||||
"token": "Your token",
|
"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
|
"ownerID": "Id of the owner ( probably you )", //optional but recommended
|
||||||
"botID": "id of the bot", //optional but recommended
|
"botID": "id of the bot", //optional but recommended
|
||||||
"statsChannel": "channel where the bot send his stats", //optional but recommended
|
"statsChannel": "channel where the bot send his stats", //optional but recommended
|
||||||
|
|
Loading…
Reference in a new issue