diff options
author | 2023-03-09 19:00:51 +0100 | |
---|---|---|
committer | 2023-03-09 18:00:51 +0000 | |
commit | c6f9eb9480c3dc8a74aac4ab83af0bdd1a50facc (patch) | |
tree | c769f5aae448fadd38391bd303869c1a90f8eb57 /botstrap.py | |
parent | Merge pull request #2458 from shtlrs/add-botstrap-dep-group-and-task (diff) |
Merge #2459: Update nested delimiter to double underscore
* change nested delimiter to double underscore
* write channel_id along with the webhook_id
* make channel mandatory for webhook
Diffstat (limited to 'botstrap.py')
-rw-r--r-- | botstrap.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/botstrap.py b/botstrap.py index 2b34dad81..28486bd36 100644 --- a/botstrap.py +++ b/botstrap.py @@ -159,6 +159,7 @@ with DiscordClient() as discord_client: webhook_id = create_webhook(webhook_name, webhook_channel_id, client=discord_client) else: webhook_id = webhook_model.id - config_str += f"webhooks_{webhook_name}_id={webhook_id}\n" + 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) |