On message callback #122

Open
opened 2025-10-14 15:39:48 -06:00 by navan · 0 comments
Owner

Originally created by @yassinebenarbia on 4/24/2025

Feature

It would be really useful to have a way to run a lua script each time a message is received, where that script is optionally provided via the config file with something like this:

[settings]
on_message = "/path/to/script.lua"

and it would be nice to provide as much context about the message as possible to the script/function via a lua table

Note(s)

There is this dude that was able to pull something similar via mlua.

*Originally created by @yassinebenarbia on 4/24/2025* ## Feature It would be really useful to have a way to run a `lua` script each time a message is received, where that script is optionally provided via the config file with something like this: ```toml [settings] on_message = "/path/to/script.lua" ``` and it would be nice to provide as much context about the message as possible to the script/function via a` lua table` ## Note(s) There is [this dude](https://github.com/museun/too_lua) that was able to pull something similar via [mlua](https://github.com/mlua-rs/mlua).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/iamb#122
No description provided.