Skip to content
Snippets Groups Projects
Select Git revision
  • 2288c5f954d190e91f9f41a834f69d529d9aa443
  • main default protected
  • renovate/djangorestframework-3.x
  • renovate/django-5.x
  • renovate/django-bootstrap5-25.x
  • renovate/django-debug-toolbar-6.x
  • renovate/jsonschema-4.x
  • koma/feature/preference-polling-form
8 results

models.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    run.sh 806 B
    #!/bin/sh
    
    cd /usr/src/app
    
    if [ -z "${TO_MAIL}" ]
    then
    echo "TO_MAIL not set."
    exit 1
    fi
    
    function preview {
            (>&2 echo "run twitter")
        python3 twitter_bot.py --nofailmessage --daydiff 2
        echo ""
            (>&2 echo "run telegram")
        python3 telegram_bot.py --nofailmessage --daydiff 2
        echo ""
    
            (>&2 echo "run twitter as doit")
        python3 twitter_bot.py --nofailmessage --daydiff 1 --doit
        echo ""
            (>&2 echo "run telegram as doit")
        python3 telegram_bot.py --nofailmessage --daydiff 1 --doit
        echo ""
    }
    
    PREVIEW_TEXT="$(preview)"
    
    if [ -z "${PREVIEW_TEXT}" ]
    then
        (>&2 echo "nothing to send")
        exit 0
    fi
    
    (cat << EOF
    Subject: Programm-Info-Bot
    Content-Type: text/plain; charset=UTF-8
    To: ${TO_MAIL}
    
    $(preview)
    EOF
    ) | msmtp ${MSMTP_ARGUMENTS} ${TO_MAIL}