Get notification on Telegram if someone create, edit or delete comment on your isso comment system.
Using tail
and grep
to watch the log file and Match the Current log Keyword. Once it matches, you will Get notfication alert on Telegram.
stdout
- https://posativ.org/isso/docs/configuration/server/#general
📕 Example Conf for Log:
[general]
dbpath = /home/isso/issocomments.db
host =
https://example.com/
https://example.com/
max-age = 15m
notify = stdout
log-file = /home/isso/issocomments.log
-
Download the notify.sh file on your linux server in
root
orhome
(Home Recommended) -
Open the file and add these values (Required) (Get Chat ID from here - https://t.me/chatidx_bot)
API= Telegram Bot API Key
CHATID= Telegram Chat ID
MESSAGE= "New Comment Action on example.com"
LOGFILE= Path of the isso log
- Now, Make it executable
chmod +x notify.sh
- Next Setup
systemd
for Running this script continuously
cd /etc/systemd/system
# Create New Service File
touch issonotify.service
# Create a Service file for systemd service
nano issonotify.service
-
Now paste everything from https://github.com/mskian/isso-telegram-notifier/blob/main/issonotify.service and save it.
-
Reload the systemd and enable the issonotify service
systemctl daemon-reload
systemctl enable issonotify
systemctl start issonotify
- You can Check the service status with
systemctl status issonotify
MIT