php irc bot problems
 
Post new topic   Reply to topic    Hawkee.com Forum Index -> PHP Scripting
 
ch1zra  -  Thu Sep 25, 2008 6:53 am Reply with quote
i've started a php irc bot, found a guide online that looks cool, but now im facing a problem.
I'm getting error saying

Code

 


can any1 give me a heads up on this one ?
just to make it connect, ill work out the rest, or will ask again Very Happy
sync0s  -  Sun Sep 28, 2008 2:37 am Reply with quote
let's see the code line Wink
F*U*R*B*Y*  -  Sun Sep 28, 2008 3:28 am Reply with quote

ch1zra wrote

i've started a php irc bot, found a guide online that looks cool, but now im facing a problem.
I'm getting error saying

Code

 


can any1 give me a heads up on this one ?
just to make it connect, ill work out the rest, or will ask again Very Happy


really all you need is

Code

 


then just use fputs($socket, "USer la de da stuff here\n"); and so on and forth
ch1zra  -  Sun Sep 28, 2008 5:06 am Reply with quote
code is :

Code

 


now, i don't know what is wrong, is there any chance that my host is prohibited this, and is there any way to check that ?
informaticar  -  Sun Sep 28, 2008 5:57 am Reply with quote
Poz buraz. And I try the code it can't be opened. I don't know whats the problem. Also i find the same code on internet, everything is same.
Superior  -  Sun Sep 28, 2008 6:03 am Reply with quote
Does your host provide the socket commands? Do you run this on a shell? Both are required, else you will find errors!
ch1zra  -  Sun Sep 28, 2008 6:26 am Reply with quote
@ superior
is there any way to check this, other than contacting my host ?
@ informaticar
poz Smile
i got this bot code from Combined Minds.
informaticar  -  Sun Sep 28, 2008 8:14 am Reply with quote
Me too. I don't see any problem with the code Surprised
And like @Superior@ say, maybe your host provider don't supp sockets
Superior  -  Sun Sep 28, 2008 11:07 am Reply with quote
Make a php file like this:

Code

 


Check the setting of 'allow_url_fopen', this should be ON!
ch1zra  -  Sun Sep 28, 2008 11:38 am Reply with quote
http://ch1zra.com/php.php

the phpinfo page...

allow_url_fopen is ON.
Neutral
Superior  -  Sun Sep 28, 2008 11:52 am Reply with quote
Your script works for me...
I recommend contacting your host
informaticar  -  Tue Sep 30, 2008 5:53 am Reply with quote
... and you fix the problem ? Rolling Eyes
Superior  -  Tue Sep 30, 2008 6:10 am Reply with quote
I didn't changed anything. I used it on a paid host...
ch1zra  -  Tue Sep 30, 2008 6:27 am Reply with quote
I'm also using paid host..
I've sent mail to my host provider, asking him what might be the problem...
so, when i receive a reply i'll let u know Smile
thankx for answers Smile
ch1zra  -  Tue Sep 30, 2008 5:10 pm Reply with quote
still no reply, so im working on localhost atm.
new problem came.
i want to keep my bot online all the time, and will do that with reconecting.
but, what if i want to access bot via server, and he's already connected.
is there any way to check is connection to irc server already established, and if yes just to start displaying messages from moment I accessed it, and if not to connect ?

i dont know how happy this sounds, so I'll make an algorhytm Very Happy

Code

 


Very Happy
F*U*R*B*Y*  -  Tue Sep 30, 2008 10:37 pm Reply with quote

ch1zra wrote

still no reply, so im working on localhost atm.
new problem came.
i want to keep my bot online all the time, and will do that with reconecting.
but, what if i want to access bot via server, and he's already connected.
is there any way to check is connection to irc server already established, and if yes just to start displaying messages from moment I accessed it, and if not to connect ?

i dont know how happy this sounds, so I'll make an algorhytm Very Happy

Code

 


Very Happy


uh, i would think

Code

 


might not work, but might Razz
ch1zra  -  Mon Oct 06, 2008 4:47 pm Reply with quote
not workin' that way
Neutral
Gemster  -  Fri Aug 21, 2009 8:57 am Reply with quote
Hi, i have just vreated this php bot and i was wunding how to make it so that only I can use the commands as i am going to add somr op commands and i dont want other users to be able to use them.

here is part of the code for commands:

Code

 


I need to to like check to make sure my nickname matches and then let me use the commands.

Thanks
Gemster
Display posts from previous:   
Post new topic   Reply to topic    Hawkee.com Forum Index -> PHP Scripting All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.