Connecting filesystem events with instant messaging.
When a file is created in the watched directory, it is automatically sent to the configured chat.
This service uses the fsnotify library. This library
uses the system call SYS_INOTIFY_INIT1
(294) on Linux systems and ReadDirectoryChangesW
on Windows systems.
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 |
You can compile the binary.
-
Requirements:
- A version of Docker with BuildKit support.
- GNU make utility.
-
Procedure:
- Run:
make
. - Check the correct creation of
dist
directory.
- Run: