Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad decorator_list Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad ListLoad NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index Num Index Str Index Str Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str If Call NameLoad AttributeLoad NameLoad attr NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num Print Str Expr Call AttributeLoad NameLoad attr Num
N/A pprint pprint rules RuleHandler N/A argparse N/A logging N/A modbot N/A praw N/A sys myperformaction N/A N/A thing action rule matches N/A N/A N/A N/A N/A logging info N/A Would perform action: %s action N/A N/A N/A modbot performaction myperformaction testrule N/A N/A rule thing N/A N/A N/A rh N/A RuleHandler /tmp __NO_MATCHES__ N/A rule N/A N/A rh _read_rule rule N/A N/A N/A modbot matchrules thing N/A rule N/A N/A N/A __name__ __main__ N/A N/A parser N/A N/A argparse ArgumentParser description Test if a rule applies to a given post/comment N/A N/A N/A parser add_argument --comment action store_true default False N/A N/A N/A parser add_argument rule N/A N/A N/A parser add_argument url N/A args N/A N/A parser parse_args N/A r N/A N/A praw Reddit N/A %s/%s N/A N/A modbot NAME N/A modbot VERSION N/A N/A N/A logging basicConfig level N/A logging DEBUG format [%(asctime)s] %(levelname)-7s %(message)s N/A N/A N/A logging info Started, getting thing N/A N/A args comment N/A N/A thing N/A N/A N/A N/A N/A N/A r request_json N/A args url N/A 2 N/A data N/A children N/A 0 N/A N/A thing N/A N/A r get_submission N/A args url N/A N/A N/A logging info Match against rule N/A N/A testrule N/A args rule thing N/A N/A 
Rule matched N/A N/A N/A sys exit 0 N/A 
Rule not matched N/A N/A N/A sys exit 1