Make sure your windrop runs on
manual usage; now lets make it ioFTPD auto
1. Get
PsTools from Microsoft.
2. Make a .bat file out of this and stick it under ioFTPD\scripts\ folder. Call the .bat file
BotChk.bat
----------------- C/P below to the .bat file -----------------
@echo off
set Systemroot=C:\WINDOWS
set path="D:\ioFTPD\scripts\pstools"
E:
cd "D:\ioFTPD\eggdrop"
rem Change this to the name of your bot's config:
set botscript=
eggdrop.conf
rem Change this to the handle/botnet-nick of your bot:
set botname="
sitebot"
rem Change this to the name of your bot's userfile:
set userfile=
sitebot.user
rem You probably don't need to change anything below here....
if exist .share* del .share*
if exist *.stackdump del *.stackdump
if exist *.tmp del *.tmp
if not exist %botscript% echo Config file (%botscript%) missing.
if not exist %botscript% goto cantload
if exist %userfile% goto checkrunning
if exist %userfile%~new ren %userfile%~new %userfile%
if exist %userfile% echo Missing userfile... Using the last saved one..
if exist %userfile% goto checkrunning
if exist %userfile%~bak ren %userfile%~bak %userfile%
if exist %userfile% echo Missing userfile... Using the last backed up one..
if exist %userfile% goto checkrunning
if not exist %userfile% echo Userfile missing. No backup/last saved userfile either. =/
goto cantload
:checkrunning
pslist egg > nul
if errorlevel 1 goto restart
goto end
:restart
set result=
if not exist eggdrop.exe echo eggdrop.exe not found!
if not exist eggdrop.exe goto cantload
echo Restarting Eggdrop...
eggdrop.exe -nt
if errorlevel 8 echo Possibly Missing .dll File(s)? (tcl8*.dll, cygwin1.dll)
if errorlevel 8 goto cantload
goto success
:cantload
echo Could not reload the bot. =(
goto end
:success
echo Successfully Started Eggdrop (%botname% - %botscript%).
:end
------------------ CODE end after :end ----------------------------
3. Add this line to your ioFTPD.ini file.
################################ SCHEDULER ################################
BotChk = 00,15,30,45 * * * EXEC D:\ioFTPD\scripts\BotChk.bat
########################### FTP CUSTOM COMMANDS ###########################
botchk = EXEC ..\scripts\BotChk.bat
############################# FTP PERMISSIONS #############################
botchk = 1M
4. Restart your ioFTPD. Bot should autoload/autocheck if died etc ...
Good luck, make sure your windrop run at
manual mode before settingit up with this audoload/check settings.