Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --pokedex command computer
- --executes whatever command is sent to it. Should probably check that the id of the recieved message matches the pokedex id otherwise anyone could send whatever command to it
- rednet.open("top")
- while true do
- -- Listen for a command
- local id, message = rednet.receive()
- print(message)
- success, result = commands.exec(message)
- print(result[1])
- rednet.send(id,result[1])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement