ec2
python3
ubuntu
- slack bot link
- menu data csv
- random function
- crontab
- 환경변수 파일에 TOKEN, CHANNEL 필요.
git clone https://github.com/dana8123/recommend-bot.git
pip install requirements.txt
apt update -y
apt install -y cron
sudo service cron start
sudo systemctl enable cron.service
crontab -e
- 크론 수식 및 실행할 파일 삽입
ex :20 11 \* \* 1-5 /home/ubuntu/bot/start.sh
- 크론 수식 및 실행할 파일 삽입
- timezone 설정 ``
- 수정한 timezone을 적용시키기 위해 cron restart
sudo service cron restart