diff options
author | 2023-03-12 18:35:11 +0100 | |
---|---|---|
committer | 2023-03-12 18:35:11 +0100 | |
commit | 912bcffab2a594fe014ced96c45b27ed97e8a0cb (patch) | |
tree | 48bd9f7fd9111ebbc95f37f6c36e28111cf34140 /botstrap.py | |
parent | Merge pull request #2465 from shtlrs/fix-persistent-roles-view-bug (diff) | |
parent | Merge branch 'main' into preserve-personal-config (diff) |
Merge pull request #2463 from shtlrs/preserve-personal-config
Preserve personal config
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..90a954d9b 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("wb") as file: + file.write(config_str.encode("utf-8")) |