still figuring out the architecture of this app

This commit is contained in:
msk
2022-09-20 15:34:38 -07:00
parent 2ab28ec5c8
commit 531f856bdc
5 changed files with 22 additions and 16 deletions
+5 -3
View File
@@ -7,6 +7,7 @@ import catchup
import listen
from api import API
import util
def init_argparse():
p = argparse.ArgumentParser(description='Twitter bot that follows interactions between Nijisanji EN/ID and hololive EN/ID members.', formatter_class=RawTextHelpFormatter)
@@ -30,8 +31,9 @@ def main():
if args.mode is None: return
api = API()
api.get_tweets(1390620618001838086)
util.twAPI = API()
resp = util.twAPI.get_user_tweets(1390620618001838086, count=5)
print(resp.data)
# determine running mode
match args.mode.lower():
@@ -42,7 +44,7 @@ def main():
print('RUNNING IN CATCH-UP MODE\n')
catchup.run()
case _:
print('\ninvalid mode. run with no arguments for help page, including mode list.')
print('\ninvalid mode. run with no arguments or "-h" for help page, including mode list.')
return