- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMonitor.lua
More file actions
Latest commit
19 lines (18 loc) · 557 Bytes
/
Copy pathMonitor.lua
File metadata and controls
19 lines (18 loc) · 557 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
modem=peripheral.wrap("back")
modem.open(69)
modem.open(70)
whiletrue
do
localevent, modemSide, senderChannel, replyChannel, message, senderDistance=os.pullEvent("modem_message")
ifreplyChannel==1then
print("Michael: " ..message)
elseifreplyChannel==2then
print("Steven: " ..message)
elseifreplyChannel==3then
print("Jessica: " ..message)
elseifreplyChannel==4then
print("Oscar: " ..message)
elseifreplyChannel==69then
print("LEWIS: " ..message)
end
end