GithubHelp home page GithubHelp logo

mskian / isso-telegram-notifier Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 9 KB

Get ISSO New Comment | Edit Comment | Delete Comment Notifications on Telegram.

License: MIT License

Shell 100.00%
isso isso-comments comments comment-system telegram-bot-api telegram-bot telegram bash bash-script notifications

isso-telegram-notifier's Introduction

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

isso-telegram-notifier's People

Contributors

mcnaveen avatar mskian avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mcnaveen

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.