You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wubloader/chat_archiver/chat_archiver/ensure_emotes.py

18 lines
380 B
Python

import gevent.monkey
gevent.monkey.patch_all()
import argh
import logging
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)