computer_command event

computer_command
Event
Returns
  • args... : string The arguments that the user specified in the command

Source CC:Tweaked

Triggered when the /computer command is used.

ExampleShow message when command recieved
Prints messages sent via /computer <id> <msg>
Code
<nowiki>
while true do
  local event = { os.pullEvent('computer_command') }
  print(table.unpack(event))
end
    </nowiki>
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.