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

@ -49,7 +49,7 @@ function modpol.interactions.dashboard(user)
print('All users: ' .. table.concat(all_users, ', '))
print()
print("Commands: (O)rg, (U)ser, (R)eset, Enter to close")
print("Commands: (O)rg, (U)ser, (R)eset, (Q)uit")
local sel = io.read()
@ -75,20 +75,21 @@ function modpol.interactions.dashboard(user)
function()
modpol.interactions.dashboard(user)
end
)
elseif sel == "" then
return
)
else
print("User name not found")
modpol.interactions.dashboard(user)
end
elseif sel == "R" or sel == "r" then
modpol.instance.members = {}
modpol.orgs.reset()
print("Orgs and users reset")
modpol.interactions.dashboard(user)
elseif sel == "Q" or "q" then
return
else
print("Invalid input, try again")
modpol.interactions.dashboard(user)