Skip to content

mskian/isso-telegram-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ISSO Telegram Notifier 🔔

Get notification on Telegram if someone create, edit or delete comment on your isso comment system.

💡 How does it work?

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.

🔧 ISSO Configuration

⚠️ Note - Don't Setup SMPT Email Notification if you are going to use this Notification Method - Use stdout - https://posativ.org/isso/docs/configuration/server/#general

📕 Example Conf for Log:

[general]
dbpath = /home/isso/issocomments.db
host =
    http://example.com/
    https://example.com/
max-age = 15m
notify = stdout
log-file = /home/isso/issocomments.log

Notification Script Setup

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
systemctl daemon-reload
systemctl enable issonotify
systemctl start issonotify
  • You can Check the service status with
systemctl status issonotify

LICENSE ☑

MIT