Ejemplo n.º 1
0
def main():
    """
        Console scripts entry point for Archivist Bot
    """
    config.debug_mode = bool(os.environ.get('DEBUG_MODE', False))
    bot_name = 'debug' if config.debug_mode else os.environ.get('BOT_NAME', 'bot_archiver')

    build_bot(bot_name, __version__, full_name='u/transcribot', log_name='archiver.log')
    config.archive = config.r.subreddit('ToR_Archive')
    run_until_dead(run)
Ejemplo n.º 2
0
def main():
    config.debug_mode = bool(os.environ.get('DEBUG_MODE', False))

    if config.debug_mode:
        bot_name = 'debug'
    else:
        bot_name = os.environ.get('BOT_NAME', 'bot')

    build_bot(bot_name, __version__, full_name='u/ToR')
    config.perform_header_check = True
    run_until_dead(run)
Ejemplo n.º 3
0
def main():
    """
        Console scripts entry point for OCR Bot
    """

    config.ocr_delay = 2
    config.debug_mode = bool(os.environ.get('DEBUG_MODE', False))
    bot_name = 'debug' if config.debug_mode else os.environ.get('BOT_NAME', 'bot_ocr')

    build_bot(bot_name, __version__, full_name='u/transcribot', log_name='ocr.log')
    run_until_dead(run)
Ejemplo n.º 4
0
def main():
    build_bot('bot', __version__, full_name='u/ToR')
    run_until_dead(run)