mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-10-31 21:48:51 +00:00
21 lines
631 B
Python
21 lines
631 B
Python
from src import listener_context, listener_mention, imdb_datasets_worker
|
|
from config import logger_default_level
|
|
from loguru import logger
|
|
import time
|
|
import sys
|
|
|
|
|
|
|
|
def main():
|
|
logger.remove()
|
|
logger.add(sink=sys.stderr, level=logger_default_level)
|
|
logger.add(sink='suggestions.log', level='INFO', filter='src.listener_context:scan_context_thread')
|
|
|
|
listener_mention.run_scan_notif() # Слушаем упоминания в фоне
|
|
time.sleep(1)
|
|
|
|
listener_context.scan_context_thread() # Слушаем тред на новые предложения фильмов
|
|
|
|
if __name__ == '__main__':
|
|
main()
|