03-09-2025 16:38:22.31182[0][4] - Elapsed time: 4.909 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              Apache/2.4.51 (Win64) OpenSSL/1.1.1l PHP/7.3.33
  PHP Version:                  7.3.33
  OS:                           Windows NT
  OS Version:                   build 22631 (Windows 10)
  MySQL Version:                10.4.22-MariaDB
  Multi-byte functions enabled: true 
-----------------------
03-09-2025 16:38:22.31545[4][4] - Elapsed time: 3.631 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
03-09-2025 16:38:22.31665[4][4] - Elapsed time: 1.200 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
03-09-2025 16:38:22.31691[4][4] - Elapsed time: 0.258 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
03-09-2025 16:38:22.31824[4][4] - Elapsed time: 1.330 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
03-09-2025 16:38:22.31825[4][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
03-09-2025 16:38:22.31851[1][4] - Elapsed time: 0.264 milliseconds
[conversation_start.php][Called outside of function][118]
PHP ERROR [Warning] -session_id(): Cannot change session id when session is active in C:\xmpp\htdocs\Program-O-master\chatbot\conversation_start.php on Line 118 
-----------------------
03-09-2025 16:38:22.31881[0][4] - Elapsed time: 0.293 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = pgapngr9cf2qr361cblqg3jt9i 
-----------------------
03-09-2025 16:38:22.31882[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'Apa warna favorit kamu'. 
-----------------------
03-09-2025 16:38:22.31883[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
03-09-2025 16:38:22.31883[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
03-09-2025 16:38:22.31884[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `Syifa`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
03-09-2025 16:38:22.31904[4][4] - Elapsed time: 0.205 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: np0unpj1u6fvutj7meb3gc4vko 
-----------------------
03-09-2025 16:38:22.31905[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
03-09-2025 16:38:22.31906[3][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `Syifa`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
03-09-2025 16:38:22.31921[2][4] - Elapsed time: 0.145 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
03-09-2025 16:38:22.31921[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
03-09-2025 16:38:22.31931[3][4] - Elapsed time: 0.096 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `Syifa`.`client_properties` WHERE `user_id` = 1 AND `bot_id` = 1; 
-----------------------
03-09-2025 16:38:22.31941[2][4] - Elapsed time: 0.105 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
03-09-2025 16:38:22.31942[2][4] - Elapsed time: 0.010 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Apa. 
-----------------------
03-09-2025 16:38:22.31943[2][4] - Elapsed time: 0.007 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
03-09-2025 16:38:22.31962[2][4] - Elapsed time: 0.188 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
03-09-2025 16:38:22.31963[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on warna. 
-----------------------
03-09-2025 16:38:22.31964[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
03-09-2025 16:38:22.31965[2][4] - Elapsed time: 0.007 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on favorit. 
-----------------------
03-09-2025 16:38:22.31966[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
03-09-2025 16:38:22.31966[2][4] - Elapsed time: 0.007 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on kamu. 
-----------------------
03-09-2025 16:38:22.31968[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Apa warna favorit kamu' 
-----------------------
03-09-2025 16:38:22.31969[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'APA WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.31969[2][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: APA WARNA FAVORIT KAMU
Convo id: pgapngr9cf2qr361cblqg3jt9i
Bot id: 1
Format: json 
-----------------------
03-09-2025 16:38:22.31970[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
03-09-2025 16:38:22.31971[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
03-09-2025 16:38:22.31971[3][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `Syifa`.`conversation_log` WHERE `user_id` = 1 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
03-09-2025 16:38:22.31999[1][4] - Elapsed time: 0.278 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => Warna favorit kamu
    [1] => WARNA FAVORIT
    [2] => Warna favoirt
    [3] => Hello
)
 
-----------------------
03-09-2025 16:38:22.32000[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
03-09-2025 16:38:22.32000[1][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Maaf, tidak ada jawaban.
    [1] => Maaf, tidak ada jawaban.
    [2] => Maaf, tidak ada jawaban.
    [3] => Hii!! Apa kabar kamu??
)
 
-----------------------
03-09-2025 16:38:22.32001[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32002[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hii
    [1] => 
    [2] =>  Apa kabar kamu
    [3] => 
    [4] => 
)

 
-----------------------
03-09-2025 16:38:22.32002[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32003[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:38:22.32003[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:38:22.32004[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hii  Apa kabar kamu ' 
-----------------------
03-09-2025 16:38:22.32005[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32005[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32006[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HII APA KABAR KAMU' to the front of the [that] array 
-----------------------
03-09-2025 16:38:22.32006[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
03-09-2025 16:38:22.32008[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32008[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32009[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32009[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HII APA KABAR KAMU' 
-----------------------
03-09-2025 16:38:22.32010[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32010[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf
    [1] =>  tidak ada jawaban
    [2] => 
)

 
-----------------------
03-09-2025 16:38:22.32011[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32011[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32012[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32012[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32013[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32013[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32014[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'MAAF TIDAK ADA JAWABAN' to the front of the [that] array 
-----------------------
03-09-2025 16:38:22.32014[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32015[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32015[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32015[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32016[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32017[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf
    [1] =>  tidak ada jawaban
    [2] => 
)

 
-----------------------
03-09-2025 16:38:22.32017[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32017[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32018[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32018[4][4] - Elapsed time: 0.004 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32019[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32019[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32020[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'MAAF TIDAK ADA JAWABAN' to the front of the [that] array 
-----------------------
03-09-2025 16:38:22.32020[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32021[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32021[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32021[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32022[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32022[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Maaf
    [1] =>  tidak ada jawaban
    [2] => 
)

 
-----------------------
03-09-2025 16:38:22.32023[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32023[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32024[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32024[4][4] - Elapsed time: 0.004 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Maaf tidak ada jawaban ' 
-----------------------
03-09-2025 16:38:22.32025[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32025[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32025[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'MAAF TIDAK ADA JAWABAN' to the front of the [that] array 
-----------------------
03-09-2025 16:38:22.32026[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32026[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32027[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32027[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MAAF TIDAK ADA JAWABAN' 
-----------------------
03-09-2025 16:38:22.32028[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
03-09-2025 16:38:22.32028[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32029[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hello
)

 
-----------------------
03-09-2025 16:38:22.32029[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32030[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hello' 
-----------------------
03-09-2025 16:38:22.32030[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hello' 
-----------------------
03-09-2025 16:38:22.32031[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hello' 
-----------------------
03-09-2025 16:38:22.32031[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
03-09-2025 16:38:22.32031[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HELLO' 
-----------------------
03-09-2025 16:38:22.32032[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
03-09-2025 16:38:22.32032[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
03-09-2025 16:38:22.32033[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32033[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Warna favoirt
)

 
-----------------------
03-09-2025 16:38:22.32034[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32034[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Warna favoirt' 
-----------------------
03-09-2025 16:38:22.32035[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Warna favoirt' 
-----------------------
03-09-2025 16:38:22.32035[4][4] - Elapsed time: 0.004 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Warna favoirt' 
-----------------------
03-09-2025 16:38:22.32036[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVOIRT' 
-----------------------
03-09-2025 16:38:22.32036[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'WARNA FAVOIRT' 
-----------------------
03-09-2025 16:38:22.32036[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'WARNA FAVOIRT' to the front of the [input] array 
-----------------------
03-09-2025 16:38:22.32037[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32038[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => WARNA FAVORIT
)

 
-----------------------
03-09-2025 16:38:22.32038[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32038[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'WARNA FAVORIT' 
-----------------------
03-09-2025 16:38:22.32039[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'WARNA FAVORIT' 
-----------------------
03-09-2025 16:38:22.32039[4][4] - Elapsed time: 0.004 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'WARNA FAVORIT' 
-----------------------
03-09-2025 16:38:22.32040[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVORIT' 
-----------------------
03-09-2025 16:38:22.32040[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'WARNA FAVORIT' 
-----------------------
03-09-2025 16:38:22.32041[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'WARNA FAVORIT' to the front of the [input] array 
-----------------------
03-09-2025 16:38:22.32041[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32042[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Warna favorit kamu
)

 
-----------------------
03-09-2025 16:38:22.32042[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32042[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Warna favorit kamu' 
-----------------------
03-09-2025 16:38:22.32043[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Warna favorit kamu' 
-----------------------
03-09-2025 16:38:22.32043[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Warna favorit kamu' 
-----------------------
03-09-2025 16:38:22.32044[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32044[4][4] - Elapsed time: 0.004 milliseconds 
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32045[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'WARNA FAVORIT KAMU' to the front of the [input] array 
-----------------------
03-09-2025 16:38:22.32071[2][4] - Elapsed time: 0.263 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
03-09-2025 16:38:22.32072[3][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `Syifa`.`bots` WHERE bot_id = 1; 
-----------------------
03-09-2025 16:38:22.32090[4][4] - Elapsed time: 0.184 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
03-09-2025 16:38:22.32092[0][4] - Elapsed time: 0.016 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
03-09-2025 16:38:22.32093[0][4] - Elapsed time: 0.007 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
03-09-2025 16:38:22.32093[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = APA WARNA FAVORIT KAMU: raw say = Apa warna favorit kamu 
-----------------------
03-09-2025 16:38:22.32094[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
03-09-2025 16:38:22.32094[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'APA WARNA FAVORIT KAMU' to the front of the [user_say] array 
-----------------------
03-09-2025 16:38:22.32095[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
03-09-2025 16:38:22.32096[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = Apa warna favorit kamu, RAW say = Apa warna favorit kamu 
-----------------------
03-09-2025 16:38:22.32097[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Apa warna favorit kamu' to the front of the [input] array 
-----------------------
03-09-2025 16:38:22.32098[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
03-09-2025 16:38:22.32098[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'APA WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32099[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'APA WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32100[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
03-09-2025 16:38:22.32114[4][4] - Elapsed time: 0.145 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
03-09-2025 16:38:22.32116[3][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `Syifa`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'np0unpj1u6fvutj7meb3gc4vko'
    AND (
        'APA WARNA FAVORIT KAMU' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'MAAF TIDAK ADA JAWABAN' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
03-09-2025 16:38:22.32129[2][4] - Elapsed time: 0.128 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
03-09-2025 16:38:22.32130[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
03-09-2025 16:38:22.32131[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
03-09-2025 16:38:22.32142[4][4] - Elapsed time: 0.116 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
03-09-2025 16:38:22.32144[3][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `Syifa`.`aiml` WHERE
    bot_id = 1 AND (
        'APA WARNA FAVORIT KAMU' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'MAAF TIDAK ADA JAWABAN' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
03-09-2025 16:38:22.32165[3][4] - Elapsed time: 0.208 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
03-09-2025 16:38:22.32167[2][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
03-09-2025 16:38:22.32178[1][4] - Elapsed time: 0.119 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = MAAF TIDAK ADA JAWABAN 
-----------------------
03-09-2025 16:38:22.32179[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
03-09-2025 16:38:22.32180[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'APA WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32187[4][4] - Elapsed time: 0.069 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
03-09-2025 16:38:22.32187[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
03-09-2025 16:38:22.32200[4][4] - Elapsed time: 0.121 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 10
            [bot_id] => 1
            [pattern] => APA WARNA FAVORIT KAMU
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml.txt
            [template] => Warna favoritku biru.
            [score] => 266
            [current_that] => maaf tidak ada jawaban
            [aiml_id] => 10
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
        )

    [1] => Array
        (
            [id] => 52
            [bot_id] => 1
            [pattern] => APA WARNA FAVORIT KAMU
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml.txt
            [template] => Warna favoritku adalah biru.
            [score] => 266
            [current_that] => maaf tidak ada jawaban
            [aiml_id] => 52
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
        )

)
 
-----------------------
03-09-2025 16:38:22.32201[2][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 10
            [bot_id] => 1
            [pattern] => APA WARNA FAVORIT KAMU
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml.txt
            [template] => Warna favoritku biru.
            [score] => 266
            [current_that] => maaf tidak ada jawaban
            [aiml_id] => 10
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
        )

    [1] => Array
        (
            [id] => 52
            [bot_id] => 1
            [pattern] => APA WARNA FAVORIT KAMU
            [thatpattern] => 
            [topic] => 
            [filename] => admin_added.aiml.txt
            [template] => Warna favoritku adalah biru.
            [score] => 266
            [current_that] => maaf tidak ada jawaban
            [aiml_id] => 52
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
        )

)

 
-----------------------
03-09-2025 16:38:22.32208[4][4] - Elapsed time: 0.067 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 52
    [bot_id] => 1
    [pattern] => APA WARNA FAVORIT KAMU
    [thatpattern] => 
    [topic] => 
    [filename] => admin_added.aiml.txt
    [template] => Warna favoritku adalah biru.
    [score] => 266
    [current_that] => maaf tidak ada jawaban
    [aiml_id] => 52
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
)
 
-----------------------
03-09-2025 16:38:22.32208[2][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
03-09-2025 16:38:22.32209[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:52 (APA WARNA FAVORIT KAMU) 
-----------------------
03-09-2025 16:38:22.32209[3][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
03-09-2025 16:38:22.32210[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'APA WARNA FAVORIT KAMU' 
-----------------------
03-09-2025 16:38:22.32211[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
03-09-2025 16:38:22.32211[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
03-09-2025 16:38:22.32212[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 52
    [category_id] => 52
    [html_template] => 
    [lookingfor] => APA WARNA FAVORIT KAMU
    [pattern] => APA WARNA FAVORIT KAMU
    [score] => 266
    [stars] => Array
        (
        )

    [template] => Warna favoritku adalah biru.
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => Apa warna favorit kamu
)
 
-----------------------
03-09-2025 16:38:22.32213[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
03-09-2025 16:38:22.32214[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
03-09-2025 16:38:22.32214[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Warna favoritku adalah biru.</text></template> 
-----------------------
03-09-2025 16:38:22.32217[2][4] - Elapsed time: 0.026 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
03-09-2025 16:38:22.32218[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><text>Warna favoritku adalah biru.</text></template>
 
-----------------------
03-09-2025 16:38:22.32219[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
03-09-2025 16:38:22.32220[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
03-09-2025 16:38:22.32220[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Warna favoritku adalah biru.</text> 
-----------------------
03-09-2025 16:38:22.32221[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
03-09-2025 16:38:22.32221[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
03-09-2025 16:38:22.32222[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
03-09-2025 16:38:22.32222[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Warna favoritku adalah biru.' to the response array. tag name is text 
-----------------------
03-09-2025 16:38:22.32223[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32223[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Warna favoritku adalah biru.
)

 
-----------------------
03-09-2025 16:38:22.32224[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32224[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Warna favoritku adalah biru.' 
-----------------------
03-09-2025 16:38:22.32225[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Warna favoritku adalah biru.' to the response array. tag name is template. 
-----------------------
03-09-2025 16:38:22.32225[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
03-09-2025 16:38:22.32226[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Warna favoritku adalah biru.
)

 
-----------------------
03-09-2025 16:38:22.32226[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
03-09-2025 16:38:22.32226[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Warna favoritku adalah biru.' 
-----------------------
03-09-2025 16:38:22.32227[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Warna favoritku adalah biru. 
-----------------------
03-09-2025 16:38:22.32228[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
03-09-2025 16:38:22.32228[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
03-09-2025 16:38:22.32228[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Warna favoritku adalah biru.' to the front of the [that_raw] array 
-----------------------
03-09-2025 16:38:22.32229[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
03-09-2025 16:38:22.32231[2][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Warna favoritku adalah biru.' to the front of the [that] array 
-----------------------
03-09-2025 16:38:22.32231[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Warna favoritku adalah biru.' 
-----------------------
03-09-2025 16:38:22.32232[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Warna favoritku adalah biru.' 
-----------------------
03-09-2025 16:38:22.32233[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'WARNA FAVORITKU ADALAH BIRU' 
-----------------------
03-09-2025 16:38:22.32233[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'WARNA FAVORITKU ADALAH BIRU' 
-----------------------
03-09-2025 16:38:22.32234[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Warna favoritku adalah biru.' to the front of the [parsed_template] array 
-----------------------
03-09-2025 16:38:22.32234[4][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
03-09-2025 16:38:22.32235[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Warna favoritku adalah biru.' to the front of the [template] array 
-----------------------
03-09-2025 16:38:22.32236[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
03-09-2025 16:38:22.32236[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
03-09-2025 16:38:22.32237[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `Syifa`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'Apa warna favorit kamu',
      'Warna favoritku adalah biru.',
      1,
      'np0unpj1u6fvutj7meb3gc4vko',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
03-09-2025 16:38:22.32326[4][4] - Elapsed time: 0.892 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
03-09-2025 16:38:22.32336[3][4] - Elapsed time: 0.094 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `Syifa`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
03-09-2025 16:38:22.32347[2][4] - Elapsed time: 0.109 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
03-09-2025 16:38:22.32347[4][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
03-09-2025 16:38:22.32348[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
03-09-2025 16:38:22.32349[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"np0unpj1u6fvutj7meb3gc4vko","usersay":"Apa warna favorit kamu","botsay":"Warna favoritku adalah biru.","botData":{"convo_id":"np0unpj1u6fvutj7meb3gc4vko","bot_name":"Syifa","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"Apa warna favorit kamu","conversation_lines":"1","remember_up_to":"10","debugemail":"theodorusnatanael0204@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"52","bot_id":"1","pattern":"APA WARNA FAVORIT KAMU","thatpattern":"","topic":"","filename":"admin_added.aiml.txt","template":"Warna favoritku adalah biru.","score":266,"current_that":"maaf tidak ada jawaban","aiml_id":"52","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)"}}} 
-----------------------
03-09-2025 16:38:22.32359[2][4] - Elapsed time: 0.094 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
03-09-2025 16:38:22.32360[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 16.683 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => Apa warna favorit kamu
    [conversation] => Array
        (
            [convo_id] => np0unpj1u6fvutj7meb3gc4vko
            [bot_name] => Syifa
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 1
            [totallines] => 1
            [rawSay] => Apa warna favorit kamu
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => theodorusnatanael0204@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 52
                    [bot_id] => 1
                    [pattern] => APA WARNA FAVORIT KAMU
                    [thatpattern] => 
                    [topic] => 
                    [filename] => admin_added.aiml.txt
                    [template] => Warna favoritku adalah biru.
                    [score] => 266
                    [current_that] => maaf tidak ada jawaban
                    [aiml_id] => 52
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => Apa warna favorit kamu
            [lookingfor] => APA WARNA FAVORIT KAMU
            [category_id] => 52
            [pattern] => APA WARNA FAVORIT KAMU
            [thatpattern] => 
            [template] => Warna favoritku adalah biru.
            [html_template] => 
            [topic] => 
            [score] => 266
            [aiml_id] => 52
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Warna favoritku adalah biru.
        )

    [client_properties] => Array
        (
            [ip_address] => ::1
            [name] => Seeker
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Maaf, tidak ada jawaban
                    [1] => 
                )

            [2] => Array
                (
                    [0] => Maaf, tidak ada jawaban
                    [1] => 
                )

            [3] => Array
                (
                    [0] => Maaf, tidak ada jawaban
                    [1] => 
                )

            [4] => Array
                (
                    [0] => Hii!! Apa kabar kamu??
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => WARNA FAVORITKU ADALAH BIRU
                )

            [2] => Array
                (
                    [1] => MAAF TIDAK ADA JAWABAN
                )

            [3] => Array
                (
                    [1] => MAAF TIDAK ADA JAWABAN
                )

            [4] => Array
                (
                    [1] => MAAF TIDAK ADA JAWABAN
                )

            [5] => Array
                (
                    [1] => HII APA KABAR KAMU
                )

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

    [input] => Array
        (
            [1] => Apa warna favorit kamu
            [2] => WARNA FAVORIT KAMU
            [3] => WARNA FAVORIT
            [4] => WARNA FAVOIRT
            [5] => HELLO
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1756910302.3069
    [user_say] => Array
        (
            [1] => APA WARNA FAVORIT KAMU
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Warna favoritku adalah biru.
                )

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

    [parsed_template] => Array
        (
            [1] => Warna favoritku adalah biru.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => Warna favoritku adalah biru.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"np0unpj1u6fvutj7meb3gc4vko","usersay":"Apa warna favorit kamu","botsay":"Warna favoritku adalah biru.","botData":{"convo_id":"np0unpj1u6fvutj7meb3gc4vko","bot_name":"Syifa","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"1","totallines":1,"rawSay":"Apa warna favorit kamu","conversation_lines":"1","remember_up_to":"10","debugemail":"theodorusnatanael0204@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"52","bot_id":"1","pattern":"APA WARNA FAVORIT KAMU","thatpattern":"","topic":"","filename":"admin_added.aiml.txt","template":"Warna favoritku adalah biru.","score":266,"current_that":"maaf tidak ada jawaban","aiml_id":"52","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: apa (2 points), direct word match: warna (2 points), direct word match: favorit (2 points), direct word match: kamu (2 points)"}}}
)

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