From 173a5c1c0826d079a1ffa0602637d00d1a0d0baa Mon Sep 17 00:00:00 2001 From: Andrew Rogers Date: Thu, 18 Nov 2021 22:53:45 -0600 Subject: [PATCH] fix longstanding unused -i bug in CLI --- pseudbot/cli.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pseudbot/cli.py b/pseudbot/cli.py index 7ed3824..a782ceb 100644 --- a/pseudbot/cli.py +++ b/pseudbot/cli.py @@ -72,7 +72,12 @@ def main(args: [str], name: str) -> int: tcfg = j.loads(opts.cfg_json.read())["twitter"] if opts.action == "run_bot": - pb = PseudBot(tcfg=tcfg, proxy_url=opts.proxy_url, debug=opts.debug) + pb = PseudBot( + tcfg=tcfg, + last_id=opts.reply_to_id, + proxy_url=opts.proxy_url, + debug=opts.debug, + ) elif opts.action == "list_actions": pb = PseudBot(tcfg=tcfg, quiet=True, debug=opts.debug) elif opts.action in ("pasta_tweet", "dump_tweet"): @@ -96,6 +101,7 @@ def main(args: [str], name: str) -> int: pb = PseudBot( tcfg=tcfg, custom_welcome=custom_welcome, + last_id=opts.reply_to_id, target_screen_name=opts.screen_name, proxy_url=opts.proxy_url, debug=opts.debug, @@ -110,6 +116,7 @@ def main(args: [str], name: str) -> int: pb = PseudBot( tcfg=tcfg, custom_welcome=custom_welcome, + last_id=opts.reply_to_id, proxy_url=opts.proxy_url, debug=opts.debug, )