Append to secrets file instead of overwriting
This commit is contained in:
1 parent
be8d06169d
commit
24482aecbc
1 file changed
+2
-2
@@ -166,9 +166,9 @@ def _main():
|
||||
simple_bot_token = input("Enter bot token:\t\t")
|
||||
with open(
|
||||
f'{path}/secrets.py',
|
||||
'w'
|
||||
'a' # Append to file, create if it does not exist
|
||||
) as secrets_file:
|
||||
secrets_file.write(f'simple_bot_token = "{simple_bot_token}"')
|
||||
secrets_file.write(f'simple_bot_token = "{simple_bot_token}"\n')
|
||||
|
||||
# Set logging preferences
|
||||
log_formatter = logging.Formatter(
|
||||
|
||||
Reference in new issue
Block a user