codexlynx / notify-fs

Connecting filesystem events with instant messaging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

notify-fs

AUR

Connecting filesystem events with instant messaging.

Behaviour:

When a file is created in the watched directory, it is automatically sent to the configured chat.

Technology:

This service uses the fsnotify library. This library uses the system call SYS_INOTIFY_INIT1 (294) on Linux systems and ReadDirectoryChangesW on Windows systems.

Configuration:

This service is configured via environment variables.

Variable Name Description
TARGET_DIRECTORY Directory to watch
TELEGRAM_TOKEN Telegram bot token
TARGET_CHAT_ID Telegram target chat id
ONLY_IMAGES Send only images

Run:

You can compile the binary.

Compile:

  • Requirements:

    • A version of Docker with BuildKit support.
    • GNU make utility.
  • Procedure:

    • Run: make.
    • Check the correct creation of dist directory.

About

Connecting filesystem events with instant messaging

License:GNU General Public License v3.0


Languages

Language:Go 85.3%Language:Dockerfile 10.5%Language:Makefile 4.2%