added some notes to the modules, some not currently functional. rewriting process.lua to work with new modules, support pending actions

This commit is contained in:
Luke Miller
2021-11-29 14:36:18 -05:00
parent db43df6ce2
commit f381845d21
6 changed files with 226 additions and 160 deletions
+14 -14
View File
@@ -12,20 +12,20 @@ function join_org.initiate(initiator, org, result)
end
)
-- for i, member in ipairs(org.members) do
-- org:add_pending_action(
-- member,
-- function ()
-- modpol.interactions.binary_poll_user(
-- member,
-- "Let " .. initiator .. " join " .. org.name .. "?",
-- function (resp)
-- end
-- )
-- end
-- )
-- end
for i, member in ipairs(org.members) do
org:add_pending_action(
member,
function ()
modpol.interactions.binary_poll_user(
member,
"Let " .. initiator .. " join " .. org.name .. "?",
function (resp)
end
)
end
)
end
if result then result() end
end