updated bot version

This commit is contained in:
2026-03-11 20:51:11 +00:00
parent b9ddeb5303
commit ffaae146ac
6 changed files with 222 additions and 1 deletions
+11 -1
View File
@@ -6,12 +6,18 @@ import time
import os
import threading
from config import fetch_config_from_wiki, validate_config_from_wiki, get_trigger_posts
from update_checker import start_update_checker
# ==================== VERSION ====================
BOT_VERSION = "1.0.0"
BOT_NAME = "TestPostsBot"
# ==================================================
REDDIT_CLIENT_ID = os.environ.get('REDDIT_CLIENT_ID')
REDDIT_CLIENT_SECRET = os.environ.get('REDDIT_CLIENT_SECRET')
REDDIT_USERNAME = os.environ.get('REDDIT_USERNAME')
REDDIT_PASSWORD = os.environ.get('REDDIT_PASSWORD')
REDDIT_USER_AGENT = os.environ.get('REDDIT_USER_AGENT', f'TestPostsBot/0.1 on {REDDIT_USERNAME}')
REDDIT_USER_AGENT = os.environ.get('REDDIT_USER_AGENT', f'{BOT_NAME}/{BOT_VERSION} on {REDDIT_USERNAME}')
SUBREDDIT = os.environ.get('SUBREDDIT')
WIKI_PAGE = os.environ.get('WIKI_PAGE', 'testpostsbot_config')
@@ -180,6 +186,10 @@ def main():
chat_thread.start()
print("[STARTUP] Chat message watcher started.")
# Start update checker in background thread
start_update_checker(reddit, SUBREDDIT, BOT_NAME, BOT_VERSION)
print("[STARTUP] Update checker started.")
# Keep main thread alive
try:
while True: