mirror of https://github.com/ekimekim/wubloader
chat archiver: Add cli tool for downloading emotes
parent
92b34d2670
commit
3b6ce86c46
@ -0,0 +1,18 @@
|
||||
|
||||
import gevent.monkey
|
||||
gevent.monkey.patch_all()
|
||||
|
||||
import argh
|
||||
import logging
|
||||
import json
|
||||
|
||||
from chat_archiver.main import ensure_emotes, wait_for_ensure_emotes
|
||||
|
||||
def main(base_dir, *ids, log='INFO'):
|
||||
"""Ensure all listed emote ids are downloaded"""
|
||||
logging.basicConfig(level=log)
|
||||
ensure_emotes(base_dir, ids)
|
||||
wait_for_ensure_emotes()
|
||||
|
||||
if __name__ == '__main__':
|
||||
argh.dispatch_command(main)
|
Loading…
Reference in New Issue