Skip to content

Commit 2a3e175

Browse files
fix: only write to env_file once
1 parent 83fc28f commit 2a3e175

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

botstrap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __getitem__(self, item: str):
6060
except KeyError:
6161
log.fatal(f"Couldn't find key: {item} in dict: {self.name} ")
6262
log.warning(
63-
"Please make sure to follow our contribution guideline "
63+
"Please follow our contribution guidelines "
6464
"https://www.pythondiscord.com/pages/guides/pydis-guides/contributing/bot/ "
6565
"to guarantee a successful run of botstrap "
6666
)
@@ -295,8 +295,6 @@ def create_webhook(self, name: str, channel_id_: int) -> str:
295295

296296
config_str += f"categories_{category_name}={category_id}\n"
297297

298-
env_file_path.write_text(config_str)
299-
300298
config_str += "\n#Webhooks\n"
301299
existing_webhooks = discord_client.get_all_guild_webhooks()
302300
for webhook_name, webhook_model in Webhooks :

0 commit comments

Comments
 (0)