🎉 v1.1.0

This commit is contained in:
DrMaxNix 2023-04-02 16:09:38 +02:00
parent d63fa3e3cd
commit 24ca555075
4 changed files with 1545 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/PHPMailer

23
untisbot.service Normal file
View File

@ -0,0 +1,23 @@
[Unit]
Description=Improved mail notifications for Untis
After=network-online.target
Wants=network-online.target
[Service]
User=untisbot
Group=untisbot
Environment="SYSTEMD=true"
ExecStart=/opt/untisbot/untisbotd
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target

32
untisbot.template.ini Normal file
View File

@ -0,0 +1,32 @@
## FETCH OPTIONS ##
fetch.timeout = 20
fetch.file_download_timeout = 120
fetch.interval.messages = 600
## OUTGOING MAIL SERVER ##
mail.host = "smtp.example.com"
mail.port = 587
mail.username = "untisbot@example.com"
mail.password = "topsecret123"
mail.starttls = true
## ACCOUNTS ##
[account1]
host = "niobe.webuntis.com"
school = "my-school"
auth.username = "username1"
auth.password = "topsecret456"
notify.messages = "user1@example.com"
[account2]
host = "niobe.webuntis.com"
school = "my-school"
auth.username = "username2"
auth.password = "topsecret789"
notify.messages = "user2@example.com"

1489
untisbotd Normal file

File diff suppressed because it is too large Load Diff