updated
This commit is contained in:
25
programs/chat.lua
Normal file
25
programs/chat.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
local function start()
|
||||
print("Chat program started.")
|
||||
end
|
||||
|
||||
local function stop()
|
||||
print("Chat program stopped.")
|
||||
end
|
||||
|
||||
local function restart()
|
||||
stop()
|
||||
start()
|
||||
end
|
||||
|
||||
local function main()
|
||||
print("Chat main loop running...")
|
||||
while true do
|
||||
local event = os.pullEvent()
|
||||
-- Chat logic here
|
||||
if event == "char" then
|
||||
print("Char typed")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return { start = start, stop = stop, restart = restart, main = main }
|
||||
24
programs/gps.lua
Normal file
24
programs/gps.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
local function start()
|
||||
print("GPS program started.")
|
||||
end
|
||||
|
||||
local function stop()
|
||||
print("GPS program stopped.")
|
||||
end
|
||||
|
||||
local function restart()
|
||||
stop()
|
||||
start()
|
||||
end
|
||||
|
||||
local function main()
|
||||
print("Chat main loop running...")
|
||||
while true do
|
||||
local event = os.pullEvent()
|
||||
if event == "char" then
|
||||
print("GPS Char")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return { start = start, stop = stop, restart = restart, main = main }
|
||||
Reference in New Issue
Block a user