How It Works
Scripts register event handlers and custom commands through theflume module. When IRC events occur, Flume calls your handlers. Scripts can also queue actions (send messages, print to buffers, show notifications) that Flume processes on the next tick.
Script Directories
All scripts live under~/.local/share/flume/scripts/:
| Directory | Purpose |
|---|---|
lua/autoload/ | Lua scripts loaded automatically on startup |
python/autoload/ | Python scripts loaded automatically on startup |
available/ | Installed but not auto-loaded |
generated/ | Created by /generate script |
Managing Scripts
Your First Script
Lua (~/.local/share/flume/scripts/lua/autoload/hello.lua):
~/.local/share/flume/scripts/python/autoload/hello.py):
Don’t Know How to Code?
Use/generate script to have an AI write the script for you: