26 lines
485 B
Python
26 lines
485 B
Python
from aw_core.log import setup_logging
|
|
|
|
from aw_watcher_afk.afk import AFKWatcher
|
|
from aw_watcher_afk.config import parse_args
|
|
|
|
|
|
def main() -> None:
|
|
args = parse_args()
|
|
|
|
# Set up logging
|
|
setup_logging(
|
|
"aw-watcher-afk",
|
|
testing=args.testing,
|
|
verbose=args.verbose,
|
|
log_stderr=True,
|
|
log_file=True,
|
|
)
|
|
|
|
# Start watcher
|
|
watcher = AFKWatcher(args, testing=args.testing)
|
|
watcher.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|