|
|
|
@ -110,14 +110,16 @@ def once(tooter: Tooter):
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
|
parser = argparse.ArgumentParser(
|
|
|
|
|
description='Check for suspicious impersonators.')
|
|
|
|
|
description='Randomly interact with a Mastodon timeline.')
|
|
|
|
|
parser.add_argument( '-d', '--debug', action='store_true',
|
|
|
|
|
help='Enable debugging messages.')
|
|
|
|
|
parser.add_argument( '-o', '--once', action='store_true',
|
|
|
|
|
help='Run once and exit. Default is to run as a daemon.')
|
|
|
|
|
parser.add_argument( 'file', nargs='?', default='users.toml',
|
|
|
|
|
help='Change file to source users from.')
|
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
Tooter.load_credentials('users.toml')
|
|
|
|
|
Tooter.load_credentials(args.file)
|
|
|
|
|
|
|
|
|
|
if args.once:
|
|
|
|
|
t = Tooter('nick')
|
|
|
|
|