anchor.diff:  ECHO ==== Setting up database... ====
   REM Import database.
   PUSHD ..\db
  -TYPE choob.db | "%MysqlHome%\mysql.exe" --user=%DBUser% --password=%DBPass% %DBName% || SET OK=0
  +TYPE choob.db | "%MysqlHome%\mysql.exe" --user="%DBUser%" --password="%DBPass%" "%DBName%" || SET OK=0
   IF "%OK%"=="0" (
   	ECHO FATAL ERROR: Unable to import "choob.db" into the mysql database.
   	ECHO              Check "bot.conf" username and password.
  
positive.code: 
  IF NOT DEFINED BotAdminUser GOTO :do-init-no-admin-set
  
  ECHO INSERT INTO UserNodes (NodeID, NodeName, NodeClass) VALUES (1001, "%BotAdminUser%", 1) | "%MysqlHome%\mysql.exe" --user=%DBUser% --password=%DBPass% %DBName% || SET OK=0
  IF "%OK%"=="0" (
  	ECHO FATAL ERROR: Failed to update admin user information in the database.
  	GOTO :EOF
  )
  ECHO INSERT INTO UserNodes (NodeID, NodeName, NodeClass) VALUES (1002, "%BotAdminUser%", 0) | "%MysqlHome%\mysql.exe" --user=%DBUser% --password=%DBPass% %DBName% || SET OK=0
  IF "%OK%"=="0" (
  	ECHO FATAL ERROR: Failed to update admin user information in the database.
  	GOTO :EOF
  )
  ECHO INSERT INTO GroupMembers (GroupID, MemberID) VALUES (1, 1001) | "%MysqlHome%\mysql.exe" --user=%DBUser% --password=%DBPass% %DBName% || SET OK=0
  IF "%OK%"=="0" (
  	ECHO FATAL ERROR: Failed to update admin user information in the database.
  	GOTO :EOF
  )
  ECHO INSERT INTO GroupMembers (GroupID, MemberID) VALUES (1001, 1002) | "%MysqlHome%\mysql.exe" --user=%DBUser% --password=%DBPass% %DBName% || SET OK=0
  IF "%OK%"=="0" (
  	ECHO FATAL ERROR: Failed to update admin user information in the database.
  	GOTO :EOF
  
negative.code: SET DBPass=
  SET DBHost=
  FOR /F "delims== tokens=1,2" %%a IN (bot.conf) DO (
  	IF "%%a"=="botName"    SET "BotName=%%b"
  	IF "%%a"=="botTrigger" (
  		IF "^%%b"=="^!" (
  			SET "BotTrigger=^^^%%b"
  		) ELSE (
  			SET "BotTrigger=%%b"
  		)
  	)
  	IF "%%a"=="database"   SET "DBName=%%b"
  	IF "%%a"=="dbUser"     SET "DBUser=%%b"
  	IF "%%a"=="dbPass"     SET "DBPass=%%b"
  	IF "%%a"=="dbServer"   SET "DBHost=%%b"
  )
  IF "%BotName%"=="" (
  	ECHO FATAL ERROR: No bot name set in "bot.conf".
  