Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run IRC Commands via Bot
#1
Question 
I have a PHP IRC Bot. It's pretty simple. But when I try to use this code:
PHP Code:
fputs($socket"/AWAY\n"); 

It returns an unknown command from the server. Any ideas? Big Grin
Kevin Mark - TheHostingTool Lead Developer
Reply
#2
you need to use PRIVMSG, or MODE, or OPER. You should know that.
Reply
#3
Have you actually created the socket in the first place?
Jonny H - THT Main Developer & Founder


Reply
#4
Of course! Wink

Yes, Brad, I know. Wink But there are other functions ya know.

Yes, I get the socket open. However, I was googleing last night and came up with some interesting info that helped. Big Grin
Kevin Mark - TheHostingTool Lead Developer
Reply
#5
You mean I was Googling, and I told you the new bot, and you stole that guys code.. Tongue
Reply
#6
I have virtually every legal right to that bot. Big Grin
Kevin Mark - TheHostingTool Lead Developer
Reply
#7
I bet you do...Why do you even want a IRC bot? They only bring pain.
Reply
#8
no, they only bring security to your channel and peace of mind. and fun card games. and delicious drinks Smile
Nick - TheHostingTool Staff Coordinator

[Image: standard.png]

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)