This repository has been archived on 2023-07-12. You can view files and clone it, but cannot push or open issues or pull requests.
ScheduleAndMore/start.sh

19 lines
543 B
Bash
Raw Permalink Normal View History

2022-04-28 19:54:26 +02:00
#!/bin/bash
which python3 &> /dev/null
[ $? -eq 0 ] || apt-get -y install python3
which pip3 &> /dev/null
[ $? -eq 0 ] || apt-get -y install python3-pip
python3 -c "import aiogram" &> /dev/null
[ $? -eq 0 ] || yes | pip3 install aiogram 1> /dev/null
python3 -c "import discord" &> /dev/null
[ $? -eq 0 ] || yes | pip3 install discord 1> /dev/null
python3 -c "import webuntis" &> /dev/null
[ $? -eq 0 ] || yes | pip3 install webuntis 1> /dev/null
python3 main.py "discord bot token" "telegram bot token" "untis username" "untis password"