PHP to IRC Bot V2.0
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jun 09, 2008 |
| Last Updated | Jun 19, 2008 |
| Tags | bot php socket |
Introduction
EDIT:
This is v2.0. It's rewritten, and has a lot of new features readily available. :D
Also, Please note, This bot is a CLI bot.
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 9, 2008 4:54 pm
Posted on Jun 9, 2008 4:54 pm
First thing i notice, you got this off of a tutorial, as i got my first bot of there, and the problem is it'll only get the first 128 characters, to fix it change
to
secondly i'd do like a server function... something like
then that way all you have to do is send("MODE",$ex[2],"+o",$ex[4]); or stuff like that :)
Thirdly, you have an extra closing bracket on the end :)
Fourthly, It isn't exactly a "PHP to IRC" it is a "PHP IRC Bot". When i saw "PHP to IRC" i thought it was a IRCd Scripted in PHP. But its only a PHP IRC Bot :) so perhaps you'd like to change the title?
Besides that, good job.
Furby
| Code: |
| while($data = fgets($socket, 128)) { |
to
| Code: |
| while($data = fgets($socket)) { |
secondly i'd do like a server function... something like
| Code: |
function send ($action, $channel, $extra, $message) { if (isset($extra)) { fputs($socket, $action $channel $extra .":".$message."\n"); } else { fputs($socket, $action $channel .":".$message."\n"); } } |
then that way all you have to do is send("MODE",$ex[2],"+o",$ex[4]); or stuff like that :)
Thirdly, you have an extra closing bracket on the end :)
Fourthly, It isn't exactly a "PHP to IRC" it is a "PHP IRC Bot". When i saw "PHP to IRC" i thought it was a IRCd Scripted in PHP. But its only a PHP IRC Bot :) so perhaps you'd like to change the title?
Besides that, good job.
Furby
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 9, 2008 9:52 pm
Posted on Jun 9, 2008 9:52 pm
Ok, Well, I changed most of it from the tut, but I've come across a problem of my own. I can't get the stupid thing to view JOIN events. Any idea how you'd set that up?
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 10, 2008 8:09 am
Posted on Jun 10, 2008 8:09 am
When the bot joins the channel or when someone else joins the channel?
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 15, 2008 1:19 am
Posted on Jun 15, 2008 1:19 am
When someone else joins.
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 15, 2008 7:03 am
Posted on Jun 15, 2008 7:03 am
isn't the like raw is
???
| Quote: |
| JOIN nick!identd@host #channel |
???
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Jun 18, 2008 3:23 am
Posted on Jun 18, 2008 3:23 am
Yah. I've got a new version I'm going to be posting, with join support, and a pre-built ial for easy banning and such.
Plus a simple user config, so it's not so messy. :D
Plus a simple user config, so it's not so messy. :D
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Aug 17, 2008 11:14 pm
Posted on Aug 17, 2008 11:14 pm
wait, how do i control it or anything
looks like it just idles on the server
looks like it just idles on the server
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Aug 24, 2008 8:31 am
Posted on Aug 24, 2008 8:31 am
How do you download PHP to test these script?
PHP Snippet:
PHP to IRC Bot V2.0
Posted on Sep 21, 2008 6:02 pm
Posted on Sep 21, 2008 6:02 pm
how do you get it to join.. D:









