View difference between Paste ID: tWfn9LYa and Wwyckb2i
SHOW: | | - or go back to the newest paste.
1
c = peripheral.wrap("right")
2
rednet.open("back")
3
local user = disk.getLabel("top")
4
if c.isOn() == true then
5
c.reboot()
6
7
elseif c.isOn() == false then
8
c.turnOn()
9
end
10
11
12
local senderId, message, protocol = rednet.receive()
13-
if senderId == 109 then 
13+
if senderId == 127 then 
14-
rednet.broadcast(message.." - ".. user, "stacker")
14+
rednet.broadcast(message.." - ".. user, "flappy")
15
write(user.."'s score has been sent")
16
end
17