11-11-2025 15:42:50.56913[0][4] - Elapsed time: 1.014 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
11-11-2025 15:42:50.56947[4][4] - Elapsed time: 0.345 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
11-11-2025 15:42:50.56973[4][4] - Elapsed time: 0.258 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
11-11-2025 15:42:50.56986[4][4] - Elapsed time: 0.130 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
11-11-2025 15:42:50.57032[4][4] - Elapsed time: 0.465 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
11-11-2025 15:42:50.57035[4][4] - Elapsed time: 0.030 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
11-11-2025 15:42:50.57052[1][4] - Elapsed time: 0.166 milliseconds
[conversation_start.php][Called outside of function][118]
PHP ERROR [Warning] -session_id(): Cannot change session id when session is active in /home/siew8359/public_html/riski.siega23.com/Program-O/chatbot/conversation_start.php on Line 118 
-----------------------
11-11-2025 15:42:50.57094[0][4] - Elapsed time: 0.422 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 7c29a024366c824d69e77231ca73ce6d 
-----------------------
11-11-2025 15:42:50.57097[4][4] - Elapsed time: 0.022 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halo'. 
-----------------------
11-11-2025 15:42:50.57099[4][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
11-11-2025 15:42:50.57100[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
11-11-2025 15:42:50.57102[3][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_riski`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
11-11-2025 15:42:50.57154[4][4] - Elapsed time: 0.529 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value:  
-----------------------
11-11-2025 15:42:50.57159[2][4] - Elapsed time: 0.041 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
11-11-2025 15:42:50.57161[3][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
11-11-2025 15:42:50.57200[2][4] - Elapsed time: 0.389 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
11-11-2025 15:42:50.57202[2][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
11-11-2025 15:42:50.57236[3][4] - Elapsed time: 0.337 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_riski`.`client_properties` WHERE `user_id` = 15 AND `bot_id` = 1; 
-----------------------
11-11-2025 15:42:50.57270[2][4] - Elapsed time: 0.346 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
11-11-2025 15:42:50.57273[2][4] - Elapsed time: 0.027 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halo. 
-----------------------
11-11-2025 15:42:50.57275[2][4] - Elapsed time: 0.022 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
11-11-2025 15:42:50.57329[4][4] - Elapsed time: 0.542 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
11-11-2025 15:42:50.57333[4][4] - Elapsed time: 0.033 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57336[2][4] - Elapsed time: 0.029 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: 7c29a024366c824d69e77231ca73ce6d
Bot id: 1
Format: json 
-----------------------
11-11-2025 15:42:50.57337[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
11-11-2025 15:42:50.57339[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
11-11-2025 15:42:50.57340[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_riski`.`conversation_log` WHERE `user_id` = 15 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
11-11-2025 15:42:50.57414[1][4] - Elapsed time: 0.741 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => halo
    [1] => halo
    [2] => halo
    [3] => halo
)
 
-----------------------
11-11-2025 15:42:50.57416[4][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
11-11-2025 15:42:50.57417[1][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
    [1] => Hai, kenalan dulu yuk! Siapa nama kamu?
    [2] => Halo juga! Siapa namamu?
    [3] => Halo juga! Siapa namamu?
)
 
-----------------------
11-11-2025 15:42:50.57420[2][4] - Elapsed time: 0.028 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57421[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo juga
    [1] =>  Siapa namamu
    [2] => 
)

 
-----------------------
11-11-2025 15:42:50.57423[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57424[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57425[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57427[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57429[4][4] - Elapsed time: 0.019 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57430[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57431[2][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO JUGA SIAPA NAMAMU' to the front of the [that] array 
-----------------------
11-11-2025 15:42:50.57432[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
11-11-2025 15:42:50.57437[4][4] - Elapsed time: 0.042 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57438[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57439[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57440[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57442[2][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57444[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo juga
    [1] =>  Siapa namamu
    [2] => 
)

 
-----------------------
11-11-2025 15:42:50.57445[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57446[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57447[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57448[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo juga Siapa namamu ' 
-----------------------
11-11-2025 15:42:50.57449[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57450[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57451[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO JUGA SIAPA NAMAMU' to the front of the [that] array 
-----------------------
11-11-2025 15:42:50.57453[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57454[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57455[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57456[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO JUGA SIAPA NAMAMU' 
-----------------------
11-11-2025 15:42:50.57458[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57459[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai
    [1] =>  kenalan dulu yuk
    [2] =>  Siapa nama kamu
    [3] => 
)

 
-----------------------
11-11-2025 15:42:50.57460[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57461[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57463[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57464[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57465[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57466[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57467[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' to the front of the [that] array 
-----------------------
11-11-2025 15:42:50.57469[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57470[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57471[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57472[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57474[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57475[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai
    [1] =>  kenalan dulu yuk
    [2] =>  Siapa nama kamu
    [3] => 
)

 
-----------------------
11-11-2025 15:42:50.57476[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57477[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57478[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57479[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hai kenalan dulu yuk Siapa nama kamu ' 
-----------------------
11-11-2025 15:42:50.57481[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57482[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57483[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' to the front of the [that] array 
-----------------------
11-11-2025 15:42:50.57484[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57485[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57487[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57488[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' 
-----------------------
11-11-2025 15:42:50.57489[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
11-11-2025 15:42:50.57491[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57492[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
11-11-2025 15:42:50.57493[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57494[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
11-11-2025 15:42:50.57495[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
11-11-2025 15:42:50.57496[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
11-11-2025 15:42:50.57497[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57498[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
11-11-2025 15:42:50.57499[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
11-11-2025 15:42:50.57501[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
11-11-2025 15:42:50.57502[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57503[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
11-11-2025 15:42:50.57504[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57505[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
11-11-2025 15:42:50.57506[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
11-11-2025 15:42:50.57507[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
11-11-2025 15:42:50.57509[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57510[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
11-11-2025 15:42:50.57511[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
11-11-2025 15:42:50.57512[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57513[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
11-11-2025 15:42:50.57514[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57517[4][4] - Elapsed time: 0.028 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
11-11-2025 15:42:50.57518[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
11-11-2025 15:42:50.57519[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
11-11-2025 15:42:50.57520[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57521[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
11-11-2025 15:42:50.57522[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
11-11-2025 15:42:50.57524[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57525[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
11-11-2025 15:42:50.57526[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57527[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
11-11-2025 15:42:50.57528[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
11-11-2025 15:42:50.57529[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
11-11-2025 15:42:50.57530[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57531[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
11-11-2025 15:42:50.57532[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
11-11-2025 15:42:50.57570[2][4] - Elapsed time: 0.383 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
11-11-2025 15:42:50.57572[3][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1; 
-----------------------
11-11-2025 15:42:50.57611[4][4] - Elapsed time: 0.387 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
11-11-2025 15:42:50.57613[0][4] - Elapsed time: 0.028 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
11-11-2025 15:42:50.57615[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
11-11-2025 15:42:50.57616[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = halo 
-----------------------
11-11-2025 15:42:50.57617[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
11-11-2025 15:42:50.57618[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
11-11-2025 15:42:50.57620[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
11-11-2025 15:42:50.57622[0][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halo, RAW say = halo 
-----------------------
11-11-2025 15:42:50.57623[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halo' to the front of the [input] array 
-----------------------
11-11-2025 15:42:50.57625[4][4] - Elapsed time: 0.016 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
11-11-2025 15:42:50.57626[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57627[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 15:42:50.57628[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
11-11-2025 15:42:50.57671[4][4] - Elapsed time: 0.430 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
11-11-2025 15:42:50.57675[3][4] - Elapsed time: 0.036 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_riski`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = ''
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:42:50.57712[2][4] - Elapsed time: 0.366 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
11-11-2025 15:42:50.57714[4][4] - Elapsed time: 0.023 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
11-11-2025 15:42:50.57715[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
11-11-2025 15:42:50.57753[4][4] - Elapsed time: 0.374 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
11-11-2025 15:42:50.57756[3][4] - Elapsed time: 0.035 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_riski`.`aiml` WHERE
    bot_id = 1 AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HAI KENALAN DULU YUK SIAPA NAMA KAMU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:42:50.57802[3][4] - Elapsed time: 0.457 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
11-11-2025 15:42:50.57804[2][4] - Elapsed time: 0.023 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
11-11-2025 15:42:50.57838[1][4] - Elapsed time: 0.341 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = HAI KENALAN DULU YUK SIAPA NAMA KAMU 
-----------------------
11-11-2025 15:42:50.57841[4][4] - Elapsed time: 0.024 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
11-11-2025 15:42:50.57842[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HALO' 
-----------------------
11-11-2025 15:42:50.57847[4][4] - Elapsed time: 0.048 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
11-11-2025 15:42:50.57848[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 15:42:50.57887[4][4] - Elapsed time: 0.387 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 644
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [score] => 260
            [current_that] => hai kenalan dulu yuk siapa nama kamu
            [aiml_id] => 644
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

    [1] => Array
        (
            [id] => 657
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [score] => 252
            [current_that] => hai kenalan dulu yuk siapa nama kamu
            [aiml_id] => 657
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
11-11-2025 15:42:50.57890[2][4] - Elapsed time: 0.032 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 644
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [score] => 260
            [current_that] => hai kenalan dulu yuk siapa nama kamu
            [aiml_id] => 644
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)

 
-----------------------
11-11-2025 15:42:50.57911[4][4] - Elapsed time: 0.209 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 644
    [bot_id] => 1
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [filename] => chat_ai1.aiml
    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
    [score] => 260
    [current_that] => hai kenalan dulu yuk siapa nama kamu
    [aiml_id] => 644
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
)
 
-----------------------
11-11-2025 15:42:50.57912[2][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 15:42:50.57915[4][4] - Elapsed time: 0.026 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:644 (HALO) 
-----------------------
11-11-2025 15:42:50.57916[3][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
11-11-2025 15:42:50.57917[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
11-11-2025 15:42:50.57919[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 15:42:50.57920[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 15:42:50.57922[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 644
    [category_id] => 644
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

    [topic] => 
    [topic_stars] => Array
        (
        )

    [user_raw] => halo
)
 
-----------------------
11-11-2025 15:42:50.57923[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
11-11-2025 15:42:50.57924[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
11-11-2025 15:42:50.57927[4][4] - Elapsed time: 0.024 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random></template> 
-----------------------
11-11-2025 15:42:50.57935[2][4] - Elapsed time: 0.086 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:42:50.57940[4][4] - Elapsed time: 0.050 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Halo juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random></template>
 
-----------------------
11-11-2025 15:42:50.57942[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
11-11-2025 15:42:50.57944[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:42:50.57946[4][4] - Elapsed time: 0.025 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Halo juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random> 
-----------------------
11-11-2025 15:42:50.57947[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
11-11-2025 15:42:50.57949[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
11-11-2025 15:42:50.57950[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
11-11-2025 15:42:50.57956[4][4] - Elapsed time: 0.064 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Halo juga! Siapa namamu?
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Hai, kenalan dulu yuk! Siapa nama kamu?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Heyy! Lagi santai atau sibuk nih?
        )

)
 
-----------------------
11-11-2025 15:42:50.57958[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #2 from random tag.
 
-----------------------
11-11-2025 15:42:50.57959[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:42:50.57960[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Heyy! Lagi santai atau sibuk nih?</text></li> 
-----------------------
11-11-2025 15:42:50.57961[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
11-11-2025 15:42:50.57963[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:42:50.57964[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Heyy! Lagi santai atau sibuk nih?</text> 
-----------------------
11-11-2025 15:42:50.57965[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
11-11-2025 15:42:50.57966[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
11-11-2025 15:42:50.57967[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
11-11-2025 15:42:50.57969[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Heyy! Lagi santai atau sibuk nih?' to the response array. tag name is text 
-----------------------
11-11-2025 15:42:50.57970[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57971[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Heyy! Lagi santai atau sibuk nih?
)

 
-----------------------
11-11-2025 15:42:50.57972[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57973[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Heyy! Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.57974[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Heyy! Lagi santai atau sibuk nih?' to the response array. tag name is li. 
-----------------------
11-11-2025 15:42:50.57975[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57976[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Heyy! Lagi santai atau sibuk nih?
)

 
-----------------------
11-11-2025 15:42:50.57977[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57978[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Heyy! Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.57979[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Heyy! Lagi santai atau sibuk nih?' for output. 
-----------------------
11-11-2025 15:42:50.57980[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Heyy! Lagi santai atau sibuk nih?' to the response array. tag name is random 
-----------------------
11-11-2025 15:42:50.57981[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57982[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Heyy! Lagi santai atau sibuk nih?
)

 
-----------------------
11-11-2025 15:42:50.57983[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57984[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Heyy! Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.57985[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Heyy! Lagi santai atau sibuk nih?' to the response array. tag name is template. 
-----------------------
11-11-2025 15:42:50.57987[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:42:50.57988[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Heyy! Lagi santai atau sibuk nih?
)

 
-----------------------
11-11-2025 15:42:50.57989[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:42:50.57990[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Heyy! Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.57991[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Heyy! Lagi santai atau sibuk nih? 
-----------------------
11-11-2025 15:42:50.57993[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
11-11-2025 15:42:50.57994[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
11-11-2025 15:42:50.57995[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Heyy! Lagi santai atau sibuk nih?' to the front of the [that_raw] array 
-----------------------
11-11-2025 15:42:50.57997[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
11-11-2025 15:42:50.58000[2][4] - Elapsed time: 0.037 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Heyy! Lagi santai atau sibuk nih?' to the front of the [that] array 
-----------------------
11-11-2025 15:42:50.58002[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Heyy!' 
-----------------------
11-11-2025 15:42:50.58003[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Heyy!' 
-----------------------
11-11-2025 15:42:50.58005[4][4] - Elapsed time: 0.019 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HEYY' 
-----------------------
11-11-2025 15:42:50.58006[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HEYY' 
-----------------------
11-11-2025 15:42:50.58007[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.58008[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Lagi santai atau sibuk nih?' 
-----------------------
11-11-2025 15:42:50.58010[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'LAGI SANTAI ATAU SIBUK NIH' 
-----------------------
11-11-2025 15:42:50.58011[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'LAGI SANTAI ATAU SIBUK NIH' 
-----------------------
11-11-2025 15:42:50.58013[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Heyy! Lagi santai atau sibuk nih?' to the front of the [parsed_template] array 
-----------------------
11-11-2025 15:42:50.58014[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
11-11-2025 15:42:50.58016[2][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>' to the front of the [template] array 
-----------------------
11-11-2025 15:42:50.58017[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
11-11-2025 15:42:50.58019[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
11-11-2025 15:42:50.58021[3][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_riski`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'halo',
      'Heyy! Lagi santai atau sibuk nih?',
      15,
      '',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
11-11-2025 15:42:50.58207[4][4] - Elapsed time: 1.859 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
11-11-2025 15:42:50.58244[3][4] - Elapsed time: 0.374 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_riski`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
11-11-2025 15:42:50.58283[2][4] - Elapsed time: 0.386 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
11-11-2025 15:42:50.58285[4][4] - Elapsed time: 0.024 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
11-11-2025 15:42:50.58287[2][4] - Elapsed time: 0.013 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
11-11-2025 15:42:50.58290[4][4] - Elapsed time: 0.029 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"","usersay":"halo","botsay":"Heyy! Lagi santai atau sibuk nih?","botData":{"convo_id":"","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"15","totallines":1,"rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"644","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chat_ai1.aiml","template":"<random>\n      <li>Halo juga! Siapa namamu?<\/li>\n      <li>Hai, kenalan dulu yuk! Siapa nama kamu?<\/li>\n      <li>Heyy! Lagi santai atau sibuk nih?<\/li>\n    <\/random>","score":260,"current_that":"hai kenalan dulu yuk siapa nama kamu","aiml_id":"644","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}} 
-----------------------
11-11-2025 15:42:50.58323[2][4] - Elapsed time: 0.334 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
11-11-2025 15:42:50.58327[0][4] - Elapsed time: 0.040 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 15.136 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halo
    [conversation] => Array
        (
            [convo_id] => 
            [bot_name] => Chat.ai
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 15
            [totallines] => 1
            [rawSay] => halo
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => apriansyahrizky84@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 644
                    [bot_id] => 1
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chat_ai1.aiml
                    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
                    [score] => 260
                    [current_that] => hai kenalan dulu yuk siapa nama kamu
                    [aiml_id] => 644
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => halo
            [lookingfor] => HALO
            [category_id] => 644
            [pattern] => HALO
            [thatpattern] => 
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 644
            [stars] => Array
                (
                )

            [that_stars] => Array
                (
                    [1] => 
                )

            [topic_stars] => Array
                (
                )

            [parsed_template] => Heyy! Lagi santai atau sibuk nih?
        )

    [client_properties] => Array
        (
            [ip_address] => 114.10.126.63
            [name] => Seeker
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
                )

            [2] => Array
                (
                    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
                )

            [3] => Array
                (
                    [0] => Halo juga! Siapa namamu?
                )

            [4] => Array
                (
                    [0] => Halo juga! Siapa namamu?
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => LAGI SANTAI ATAU SIBUK NIH
                    [2] => HEYY
                )

            [2] => Array
                (
                    [1] => HAI KENALAN DULU YUK SIAPA NAMA KAMU
                )

            [3] => Array
                (
                    [1] => HAI KENALAN DULU YUK SIAPA NAMA KAMU
                )

            [4] => Array
                (
                    [1] => HALO JUGA SIAPA NAMAMU
                )

            [5] => Array
                (
                    [1] => HALO JUGA SIAPA NAMAMU
                )

            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [input] => Array
        (
            [1] => halo
            [2] => HALO
            [3] => HALO
            [4] => HALO
            [5] => HALO
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1762850570.5681
    [user_say] => Array
        (
            [1] => HALO
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Lagi santai atau sibuk nih?
                    [3] => Heyy!
                )

            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [parsed_template] => Array
        (
            [1] => Heyy! Lagi santai atau sibuk nih?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <random> <li>Halo juga! Siapa namamu?</li> <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li> <li>Heyy! Lagi santai atau sibuk nih?</li> </random>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"","usersay":"halo","botsay":"Heyy! Lagi santai atau sibuk nih?","botData":{"convo_id":"","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"15","totallines":1,"rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"644","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chat_ai1.aiml","template":"<random>\n      <li>Halo juga! Siapa namamu?<\/li>\n      <li>Hai, kenalan dulu yuk! Siapa nama kamu?<\/li>\n      <li>Heyy! Lagi santai atau sibuk nih?<\/li>\n    <\/random>","score":260,"current_that":"hai kenalan dulu yuk siapa nama kamu","aiml_id":"644","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}}
)

-----------------------
Total execution time: 15.136 Milliseconds. Goodbye.