Added modpol.menu() functions modpol and modpol_minetest. Not sure if latter works.

This commit is contained in:
Nathan Schneider
2021-03-14 22:51:53 -06:00
parent 8faca7931a
commit ac6bae3f85
5 changed files with 51 additions and 7 deletions

View File

@ -1,4 +1,17 @@
-- ===================================================================
-- Function: modpol.menu(user)
-- Params: user (string)
-- Q: Should this return a menu of commands relevant to the specific user?
-- Output: Displays a menu of commands to the user
-- TKTK currently a manually curated list---needs major improvement
modpol.menu = function(user)
local output = "Command list:"
for key,value in pairs(chat_table) do
output = output .. "/" .. key .. "\n"
end
return output
end
-- ===================================================================
-- Function: modpol.binary_poll_user(user, question)
@ -41,4 +54,4 @@ modpol.binary_poll_user = function(user, question)
else -- if the form is not a recognized name
return
end
end)
end)