Hello everyone, I need help. I created a chatbot in PHP, it can read messages, but when I send, it does not appear on channel chat stream. I am using simple socket_write PHP function. please help.
Check the following
- the token you are using has
chat:editscope - you are sending a PRIVMSG to
#channelnamenot#ChannelNamechannels are all lower case - use raw logging to log all messages sent by the server
- your lines end in CLRF (which
socket_writemight handle for you I don’t recal off hand)
Thank you Barry, you saved me. I missed #channelname, I was using channelname without #.
Can you also help me with, how I can get user detail who is sending messages.
Parse the incoming IRC Log line and tokenise.
Then extract what you need.
Thanks Barry. This solved my puzzle.