This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Noiro's profile picture

Chatbox Peripheral?

Started by Noiro, 03 June 2013 - 06:02 AM
Noiro #1
Posted 03 June 2013 - 08:02 AM
Hey guys, I'm trying to use the chat() extension of MiscPeriphs's chatbox peripheral, but I can't seem to get it to work correctly. How exactly do you use it? Upon trying, I always get: lua:1: attempt to call table

I've tried just chat(), player,message = chat(), etc. tableHere = chat(), and even say(chat()). All throw an error.

I'm trying to setup a chat/listener so if I say something, it will respond.
CoderPuppy #2
Posted 03 June 2013 - 08:38 AM
I'm assuming chat is the wrapped chatbox. Use chat.say(msg) to say stuff. And an event called chat_message which has player, msg. Look up events.

local _, player, msg = os.pullEvent('chat_message')