diff options
author | 2023-03-11 22:15:19 +0100 | |
---|---|---|
committer | 2023-03-11 22:15:19 +0100 | |
commit | 1a7a8a271e37ecd628768412181c8d01133d8582 (patch) | |
tree | 46a655004c57f0d835c2bd61f6779c32b8c9cb68 /botstrap.py | |
parent | switch order of env files to be parsed (diff) |
write emoji_trashcan to .env.server upon botstrap
Diffstat (limited to 'botstrap.py')
-rw-r--r-- | botstrap.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/botstrap.py b/botstrap.py index 28486bd36..55e1bb6c7 100644 --- a/botstrap.py +++ b/botstrap.py @@ -162,4 +162,8 @@ with DiscordClient() as discord_client: config_str += f"webhooks_{webhook_name}__id={webhook_id}\n" config_str += f"webhooks_{webhook_name}__channel={all_channels[webhook_name]}\n" - env_file_path.write_text(config_str) + config_str += "\n#Emojis\n" + config_str += "emojis_trashcan=🗑️" + + with env_file_path.open("ab") as file: + file.write(config_str.encode("utf-8")) |