PHP: IRC bot tutorial

DON'T post new tutorials here! Please use the "Pending Submissions" board so the staff can review them first.
Post Reply
User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

PHP: IRC bot tutorial

Post by Gogeta70 »

Can't post tutorial here, it's being blocked by the tag filter...

http://code.suck-o.com/18

Enjoy.
Last edited by Gogeta70 on 03 May 2008, 19:15, edited 3 times in total.
¯\_(ツ)_/¯ It works on my machine...

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Yes!! thank you! =D

this is perfect! ^^

Read through the tut and made a testbot, works great! ^^

User avatar
isapiens
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 533
Joined: 05 May 2006, 16:00
17
Location: Turn around

Post by isapiens »

great commenting, makes everything seem simple.

I only studied java, but i understood everything you coded in php.
Thanks a lot, i just got a little bit smarter.
Fluoridation is the most monstrously conceived and dangerous communist plot we have ever had to face.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Thanks. I tried really hard to make it as simple as possible, so i guess i did well.
¯\_(ツ)_/¯ It works on my machine...

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

Code: Select all

#
if(substr($buffer, 0, 4) = "PING") // if you receive a ping from the server, reply
#
{
#
send("PONG :". substr($buffer, 6); // and you'll reply with the 6th char of the string until the end of the string.
#
}
Shouldn't it be: if(substr($buffer, 0, 4) == "PING") ?

Really nice tuto :)
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

lol, yeah, just a typo...
¯\_(ツ)_/¯ It works on my machine...

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

The code has expire!
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Hmm, i didn't end up saving the tutorial. Looks like i'll have to remake it...
¯\_(ツ)_/¯ It works on my machine...

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Mkay, i've updated my initial post, so the tutorial's back up. I actually had to post the code 3 times due to mistakes, but everything should be good now. Enjoy ;)
¯\_(ツ)_/¯ It works on my machine...

User avatar
netpumber
Newbie
Newbie
Posts: 1
Joined: 30 May 2006, 16:00
17

Post by netpumber »

Can you please reupload the tutorial ? Thanx...

Post Reply