computer_command event

From ComputerCraft
Jump to: navigation, search
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.

ExampleExampleShow message when command recieved
Prints messages sent via /computer <id> <msg>
Code
while true do
  local event = { os.pullEvent('computer_command') }
  print(table.unpack(event))
end