From c6f9eb9480c3dc8a74aac4ab83af0bdd1a50facc Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Thu, 9 Mar 2023 19:00:51 +0100 Subject: 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 --- botstrap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'botstrap.py') 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) -- cgit v1.2.3