When I try to start the bot it shows me this,

Parse error:  syntax error, unexpected T_STRING in /home2/xxx/public_html/drupal/sites/all/modules/bot/bot_start.php on line 74
xxx@xxx.com [~/public_html/drupal/sites/all/modules/bot]# syntax error

So what do I do then.
Thanks.

Comments

morbus iff’s picture

Which version of bot are you using? Needless to say, there are no known shipped syntax errors (either in the release code, or in current developmental code, which Druplicon is running), and plenty of successful bot instances running.

russkaskiw’s picture

I was using 6.x-1.0, then I decided to download bot-6.x-1.x-dev version, but now it shows me this...

Warning:  require_once(./includes/bootstrap.inc) [function.require-once]: failed to open stream: No such file or directory in /home2/woof/public_html/drupal/sites/all/modules/bot/bot_start.php on line 39

Fatal error:  require_once() [function.require]: Failed opening required './includes/bootstrap.inc' (include_path='.:/usr/               lib/php') in /home2/woof/public_html/drupal/sites/all/modules/bot/bot_start.php on line 39

Seems like, it can't find a folder and file that doesn't even exist in bot folder.

EDIT:
I sorted previous problem out just copying drupal/includes over public_html/includes, but now when I exec php command it shows me this, and bot isn't connecting either.

Status: 302 Moved Temporarily
X-Powered-By: PHP/5.2.6
Location: http://site.com/install.php 
Cache-Control: no-cache
Content-type: text/html

russkaskiw’s picture

Well is there some way I can fix this?

morbus iff’s picture

Sounds like you're giving the wrong parameters to bot_start.php.

Where are you running the script from, and what exact command line are you using?

russkaskiw’s picture

Well, I am running script from bot's directory, which is home2/graem/public_html/sites/all/modules/bot.

And command is php bot_start.php --root /home2/graem/public_html/ --url http://www.site.com

Anyways, I've managed to solve previous problems, but now bot isn't connecting to the server (any server, tried couple of them) and it's just giving me these timeout error messages

Nov 30 18:41:09 SmartIRC.php(1228) DEBUG_ACTIONHANDLER: actionhandler(26) registered
Nov 30 18:41:09 SmartIRC.php(1228) DEBUG_ACTIONHANDLER: actionhandler(27) registered
Nov 30 18:41:09 SmartIRC.php(1228) DEBUG_ACTIONHANDLER: actionhandler(28) registered
Nov 30 18:41:09 SmartIRC.php(1228) DEBUG_ACTIONHANDLER: actionhandler(29) registered
Nov 30 18:41:09 SmartIRC.php(1330) DEBUG_TIMEHANDLER: timehandler(0) registered
Nov 30 18:41:09 SmartIRC.php(830) DEBUG_CONNECTION: connecting
Nov 30 18:41:09 SmartIRC.php(835) DEBUG_SOCKET: using real sockets
Nov 30 18:41:54 SmartIRC.php(851) DEBUG_NOTICE: couldn't connect to "irc.quakenet.org" reason: "Connection timed out"
Nov 30 18:41:54 SmartIRC.php(942) DEBUG_CONNECTION: reconnecting...
Nov 30 18:41:54 SmartIRC.php(912) DEBUG_CONNECTION: disconnected
Nov 30 18:41:54 SmartIRC.php(920) DEBUG_CHANNELSYNCING: cleaned channel array
Nov 30 18:41:54 SmartIRC.php(830) DEBUG_CONNECTION: connecting
morbus iff’s picture

How did you fix the previous errors?

And, unfortunately, that's the extent of the logs that I can get from the IRC connection - so it doesn't really tell us much. Is the firewall on the server blocking IRC ports? Router? Does your webhost allow IRC bots?

morbus iff’s picture

Status: Active » Closed (won't fix)

Closing due to lack of updates.