Began creating complex interactions in Minetest with _context
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user