bots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d29d2ec3a9e8143af552806778590a64328a9db1
parent 030a27671d2f6c841b79c1d68149fdab04dc30a0
Author: Nathaniel Chappelle <nathaniel@chappelle.dev>
Date:   Thu,  5 Feb 2026 16:54:12 -0800

Adding fetch and pull

Diffstat:
Mlisten-page-bot/bot.py | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/listen-page-bot/bot.py b/listen-page-bot/bot.py @@ -129,6 +129,9 @@ async def cancel(update: Update, context: ContextTypes.DEFAULT_TYPE): return ConversationHandler.END if __name__ == '__main__': + subprocess.run(["git", "fetch", "origin", "." ], cwd=repo_path, check=True) + subprocess.run(["git", "pull", "."], cwd=repo_path, check=True) + app = ApplicationBuilder().token(os.getenv("TELEGRAM_TOKEN")).build() conv_handler = ConversationHandler(