def METHOD_NAME(bot: str, raise_exception=True):
    """
    Checks if daily event triggering limit exceeded.
    @param bot: bot id.
    @param raise_exception: Raise exception if event is in progress.
    @return: boolean flag
    """
    today = datetime.today()
    today_start = today.replace(hour=0, minute=0, second=0)
    doc_count = ValidationLogs.objects(
        bot=bot, start_timestamp__gte=today_start
    ).count()
    if doc_count >= BotSettings.objects(bot=bot).get().data_importer_limit_per_day:
        if raise_exception:
            raise AppException("Daily limit exceeded.")
        else:
            return True
    else:
        return False