Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • 0
ejhobbs

Listening to chat events?

Question

Hi,

 

  I've just come from ComputerCraft, where we were able to use the 'Chat Box' peripheral from I can't remember which mod, which allowed you to listen to the chat, and then perform functions based on that.

 

However, I can't see to recreate the same functionality in OpenComputers. I have the code:

event = require("event")

chat_event = event.pull(chat_command)

However, this only appears to pull events from the server's remote terminal, for example:

"key_up"    "big long id"   13   28   "Hobby203"

Is there any way to utilise the chat_command event for taking messages from the actual chatbox? I have seen '$$' being used a lot, is this relevant? I've spent the last hour Googling and so far haven't found anything useful...

Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Computronics adds a "chat box", probably the one you used. With that you can do the event.pull("chat_message")

 

I haven't added any chatbox peripheral, there used to be one with MiscPeripherals, however that mod has now been discontinued. Would you suggest then installing this new mod, I assume it isn't part of OpenPeripherals? Thanks

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.