collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Starting the bot  (Read 3180 times)

0 Members and 1 Guest are viewing this topic.

Offline benninger

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Starting the bot
« on: January 23, 2008, 02:31:57 pm »
Alert! New newbie question ^^

The bot works so far.
I start it with "StartDebugBot.bat"
When I use the "StartBot.bat" the screen only gets black and nothing happens.
Is this "normal" or important? I would prefer the option without logging everything in the command prompt (and perhaps starting the script as a windows service using firedaemeon).

StartDebugBot.bat (as by default):
Code: [Select]
@cls
@php -c ./ Main.php %1
pause

StartBot.bat (as by default):
Code: [Select]
@cls
@php -c ./ StartBot.php %1

Sorry for starting so many topics, however you can see: I like bebot^^ (and I dislike my bad english:( )

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Starting the bot
« Reply #1 on: January 23, 2008, 04:13:53 pm »
I found two possible reasons for your problem:
1) The path info for the system() call in StartBot.php doesn't work correctly.
2) You php config doesn't allow system() calls (if that can be disabled for security reasons).

StartBot.php only puts your bot in an endless loop, making sure the bot is restarted whenever it goes down. If firedeamon can do those checks itself you can just use the Main.php call. Never used bebot under windows though.

Offline benninger

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Starting the bot
« Reply #2 on: January 24, 2008, 04:05:35 pm »
I found the solution.
Line 51 of StartBot.php is $php_bin = "php.ex e";
After I remove the whitespace to $php_bin = "php.exe"; it works fine.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 239
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal