a bot for consume data from fiware/synchronicity and publish it in mastodon
- install docker
sudo vi /etc/systemd/system/bot.service
Description=launch bot
[Service]
Type=simple
ExecStart=/bin/bash /bot/run-bot.sh
[Install]
#Alias=bot.service
WantedBy=multi-user.target
sudo systemctl list-units | grep .service
sudo systemctl is-enabled bot
sudo systemctl enable bot
sudo systemctl start bot
sudo vi /etc/systemd/system/timers.target.wants/bot.timer
[Unit]
Description=runs mastodon bot every day
[Timer]
OnCalendar=*-*-* 12:00:00
Persistent=true
[Install]
WantedBy=timers.target
sudo systemctl daemon-reload
systemctl list-timers
sudo systemctl enable bot.timer
sudo systemctl status bot.timer
sudo systemctl start bot.timer