| |
|
| ch1zra - Thu Sep 25, 2008 6:53 am |
|
|
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
can any1 give me a heads up on this one ?
just to make it connect, ill work out the rest, or will ask again  |
|
|
|
| sync0s - Sun Sep 28, 2008 2:37 am |
|
|
let's see the code line  |
|
|
|
| F*U*R*B*Y* - Sun Sep 28, 2008 3:28 am |
|
|
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
can any1 give me a heads up on this one ?
just to make it connect, ill work out the rest, or will ask again 
really all you need is
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 |
|
|
code is :
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 |
|
|
| 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 |
|
|
| 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 |
|
|
@ superior
is there any way to check this, other than contacting my host ?
@ informaticar
poz
i got this bot code from Combined Minds. |
|
|
|
| informaticar - Sun Sep 28, 2008 8:14 am |
|
|
Me too. I don't see any problem with the code
And like @Superior@ say, maybe your host provider don't supp sockets |
|
|
|
| Superior - Sun Sep 28, 2008 11:07 am |
|
|
Make a php file like this:
Check the setting of 'allow_url_fopen', this should be ON! |
|
|
|
|
|
|
| Superior - Sun Sep 28, 2008 11:52 am |
|
|
Your script works for me...
I recommend contacting your host |
|
|
|
| informaticar - Tue Sep 30, 2008 5:53 am |
|
|
... and you fix the problem ?  |
|
|
|
| Superior - Tue Sep 30, 2008 6:10 am |
|
|
| I didn't changed anything. I used it on a paid host... |
|
|
|
| ch1zra - Tue Sep 30, 2008 6:27 am |
|
|
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
thankx for answers  |
|
|
|
| ch1zra - Tue Sep 30, 2008 5:10 pm |
|
|
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
 |
|
|
|
| F*U*R*B*Y* - Tue Sep 30, 2008 10:37 pm |
|
|
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

uh, i would think
might not work, but might  |
|
|
|
| ch1zra - Mon Oct 06, 2008 4:47 pm |
|
|
not workin' that way
 |
|
|
|
| Gemster - Fri Aug 21, 2009 8:57 am |
|
|
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:
I need to to like check to make sure my nickname matches and then let me use the commands.
Thanks
Gemster |
|
|
|