Created remove_process module---mostly works, but there are still some issues with processes and pending actions not being removed properly

This commit is contained in:
Nathan Schneider
2021-12-28 16:51:12 -07:00
parent 1b0335c069
commit 6558b7a026
5 changed files with 136 additions and 12 deletions

View File

@ -41,6 +41,12 @@ function consent:callback(member)
if resp == "Yes" then
self.data.votes = self.data.votes + 1
end
modpol.interactions.message_org(
"consent", self.org.id,
member.." decided "..resp.." on: "..
self.config.prompt.." ("..self.data.votes..
"/"..self.config.votes_required..")"
)
if self.data.votes >= self.config.votes_required then
if self.data.result then
self.data.result() end