Began creating complex interactions in Minetest with _context

This commit is contained in:
Nathan Schneider
2021-04-17 23:37:56 -06:00
parent 55c3ee9f46
commit 486d310f52
3 changed files with 125 additions and 37 deletions
+3 -3
View File
@@ -11,7 +11,7 @@ modpol.interactions = {}
-- 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.dashboard = function(user)
function modpol.dashboard(user)
local output = ""
-- Org status
output = output .. "Orgs:\n" ..
@@ -31,7 +31,7 @@ end
-- Function: modpol.interactions.message
-- input: user (string), message (string)
-- output: prints message to CLI
modpol.interactions.message = function(user, message)
function modpol.interactions.message(user, message)
print(user .. ": " .. message)
end
@@ -39,7 +39,7 @@ end
-- Function: modpol.interactions.text_query
-- input: Query (string)
-- output: User response (string)
modpol.interactions.text_query = function(query)
function modpol.interactions.text_query(query)
-- TODO
end