Current time: 02-08-2012, 03:22 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run IRC Commands via Bot
12-01-2008, 06:48 PM (This post was last modified: 12-01-2008 06:48 PM by Kevin.)
Post: #1
Question How to run IRC Commands via Bot
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
Visit this user's website Find all posts by this user
Quote this message in a reply
12-01-2008, 10:28 PM
Post: #2
RE: How to run IRC Commands via Bot
you need to use PRIVMSG, or MODE, or OPER. You should know that.

Regards,
Brad R
Tyreus.com Owner
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2008, 04:34 AM
Post: #3
RE: How to run IRC Commands via Bot
Have you actually created the socket in the first place?

Jonny H - THT Main Developer & Founder
Find all posts by this user
Quote this message in a reply
12-02-2008, 08:59 AM (This post was last modified: 12-02-2008 09:00 AM by Kevin.)
Post: #4
RE: How to run IRC Commands via Bot
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
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2008, 05:57 PM
Post: #5
RE: How to run IRC Commands via Bot
You mean I was Googling, and I told you the new bot, and you stole that guys code.. Tongue

Regards,
Brad R
Tyreus.com Owner
Visit this user's website Find all posts by this user
Quote this message in a reply
12-02-2008, 06:01 PM
Post: #6
RE: How to run IRC Commands via Bot
I have virtually every legal right to that bot. Big Grin

Kevin Mark - TheHostingTool Lead Developer
Visit this user's website Find all posts by this user
Quote this message in a reply
05-25-2009, 09:29 PM
Post: #7
RE: How to run IRC Commands via Bot
I bet you do...Why do you even want a IRC bot? They only bring pain.

Find all posts by this user
Quote this message in a reply
05-26-2009, 11:51 AM
Post: #8
RE: How to run IRC Commands via Bot
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]

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)