This commit is contained in:
Luke Miller
2021-03-21 23:00:24 -04:00
7 changed files with 79 additions and 21 deletions

View File

@@ -3,6 +3,20 @@
-- User interaction functions for Modular Politics
-- Called by modpol.lua
-- ===================================================================
-- 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 just prints all of modpol---needs major improvement
modpol.menu = function(user)
local output = "Command list:\n"
for key,value in pairs(modpol) do
output = output .. "- modpol." .. key .. "\n"
end
print(output)
end
-- ===================================================================
-- Function: modpol.binary_poll_user(user, question)
-- Params: user (string), question (string)

View File

@@ -70,7 +70,6 @@ modpol.load_storage()
-- ===================================================================
-- ModPol core features
dofile (topdir .. "/api.lua")