From 2ef948e970824af90b9ab2db5262a0885bf0e1a7 Mon Sep 17 00:00:00 2001 From: Slfhstd Date: Wed, 25 Feb 2026 20:27:54 +0000 Subject: [PATCH] Auto create config file if it doesn't exist --- flairtimercomment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flairtimercomment.py b/flairtimercomment.py index 924885a..12257ab 100644 --- a/flairtimercomment.py +++ b/flairtimercomment.py @@ -11,11 +11,12 @@ if not os.path.exists(default_config_path): os.makedirs('config', exist_ok=True) with open(default_config_path, 'w') as f: f.write( + '# Reddit API credentials\n' 'username = ""\n' 'password = ""\n' 'client_id = ""\n' 'client_secret = ""\n' - 'user_agent = "Flair Timer Comment Bot"\n' + 'user_agent = "Flair Timer Comment Bot" # Must be unique and descriptive\n' '\n' '# Subreddits\n' 'subreddit = ""\n'