28-10-2025 22:24:30.01133[0][4] - Elapsed time: 0.755 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 
-----------------------
28-10-2025 22:24:30.01158[4][4] - Elapsed time: 0.246 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
28-10-2025 22:24:30.01177[4][4] - Elapsed time: 0.186 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
28-10-2025 22:24:30.01188[4][4] - Elapsed time: 0.116 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
28-10-2025 22:24:30.01222[4][4] - Elapsed time: 0.341 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
28-10-2025 22:24:30.01223[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
28-10-2025 22:24:30.01234[1][4] - Elapsed time: 0.104 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/dannus.siega23.com/Program-O/chatbot/conversation_start.php on Line 118 
-----------------------
28-10-2025 22:24:30.01260[0][4] - Elapsed time: 0.261 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 0eaf0114ee51715be5d907d07027d932 
-----------------------
28-10-2025 22:24:30.01261[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'Namaku Bagas'. 
-----------------------
28-10-2025 22:24:30.01262[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
28-10-2025 22:24:30.01263[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
28-10-2025 22:24:30.01264[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
28-10-2025 22:24:30.01283[4][4] - Elapsed time: 0.193 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: d691a9f1d78e60289ed8ed3fa176672d 
-----------------------
28-10-2025 22:24:30.01285[2][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
28-10-2025 22:24:30.01286[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
28-10-2025 22:24:30.01307[2][4] - Elapsed time: 0.208 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
28-10-2025 22:24:30.01308[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
28-10-2025 22:24:30.01326[3][4] - Elapsed time: 0.185 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_dannu`.`client_properties` WHERE `user_id` = 4 AND `bot_id` = 1; 
-----------------------
28-10-2025 22:24:30.01344[2][4] - Elapsed time: 0.182 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
28-10-2025 22:24:30.01346[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Namaku. 
-----------------------
28-10-2025 22:24:30.01346[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
28-10-2025 22:24:30.01376[2][4] - Elapsed time: 0.295 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
28-10-2025 22:24:30.01378[2][4] - Elapsed time: 0.016 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Bagas. 
-----------------------
28-10-2025 22:24:30.01381[4][4] - Elapsed time: 0.031 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Namaku Bagas' 
-----------------------
28-10-2025 22:24:30.01383[4][4] - Elapsed time: 0.022 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU BAGAS' 
-----------------------
28-10-2025 22:24:30.01384[2][4] - Elapsed time: 0.009 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: NAMAKU BAGAS
Convo id: 0eaf0114ee51715be5d907d07027d932
Bot id: 1
Format: json 
-----------------------
28-10-2025 22:24:30.01385[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
28-10-2025 22:24:30.01385[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
28-10-2025 22:24:30.01386[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 4 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
28-10-2025 22:24:30.01408[1][4] - Elapsed time: 0.215 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => halo
    [1] => namaku pedro salto
    [2] => siapa nama kamu
    [3] => Halo
)
 
-----------------------
28-10-2025 22:24:30.01409[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
28-10-2025 22:24:30.01409[1][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Halo, undefined ! Ada yang bisa aku bantu?
    [1] => Gimana, gimana?
    [2] => Namaku Seeker. Salam kenal!
    [3] => Hai juga! Lagi apa nih?
)
 
-----------------------
28-10-2025 22:24:30.01411[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01411[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai juga
    [1] =>  Lagi apa nih
    [2] => 
)

 
-----------------------
28-10-2025 22:24:30.01412[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01413[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai juga Lagi apa nih ' 
-----------------------
28-10-2025 22:24:30.01413[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hai juga Lagi apa nih ' 
-----------------------
28-10-2025 22:24:30.01414[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hai juga Lagi apa nih ' 
-----------------------
28-10-2025 22:24:30.01415[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01415[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01416[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HAI JUGA LAGI APA NIH' to the front of the [that] array 
-----------------------
28-10-2025 22:24:30.01417[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
28-10-2025 22:24:30.01418[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01419[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01420[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01420[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI JUGA LAGI APA NIH' 
-----------------------
28-10-2025 22:24:30.01421[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01422[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Namaku Seeker
    [1] =>  Salam kenal
    [2] => 
)

 
-----------------------
28-10-2025 22:24:30.01423[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01423[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Namaku Seeker Salam kenal ' 
-----------------------
28-10-2025 22:24:30.01424[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Namaku Seeker Salam kenal ' 
-----------------------
28-10-2025 22:24:30.01424[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Namaku Seeker Salam kenal ' 
-----------------------
28-10-2025 22:24:30.01425[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01425[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01426[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMAKU SEEKER SALAM KENAL' to the front of the [that] array 
-----------------------
28-10-2025 22:24:30.01427[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01427[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01428[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01429[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NAMAKU SEEKER SALAM KENAL' 
-----------------------
28-10-2025 22:24:30.01429[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01430[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Gimana
    [1] =>  gimana
    [2] => 
)

 
-----------------------
28-10-2025 22:24:30.01430[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01431[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Gimana gimana ' 
-----------------------
28-10-2025 22:24:30.01431[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Gimana gimana ' 
-----------------------
28-10-2025 22:24:30.01432[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Gimana gimana ' 
-----------------------
28-10-2025 22:24:30.01433[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01433[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01434[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'GIMANA GIMANA' to the front of the [that] array 
-----------------------
28-10-2025 22:24:30.01434[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01435[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01436[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01436[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'GIMANA GIMANA' 
-----------------------
28-10-2025 22:24:30.01437[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01437[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  undefined 
    [2] =>  Ada yang bisa aku bantu
    [3] => 
)

 
-----------------------
28-10-2025 22:24:30.01438[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01438[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo undefined  Ada yang bisa aku bantu ' 
-----------------------
28-10-2025 22:24:30.01439[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo undefined  Ada yang bisa aku bantu ' 
-----------------------
28-10-2025 22:24:30.01439[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo undefined  Ada yang bisa aku bantu ' 
-----------------------
28-10-2025 22:24:30.01440[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01441[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01441[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO UNDEFINED ADA YANG BISA AKU BANTU' to the front of the [that] array 
-----------------------
28-10-2025 22:24:30.01442[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01443[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01443[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01444[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO UNDEFINED ADA YANG BISA AKU BANTU' 
-----------------------
28-10-2025 22:24:30.01444[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
28-10-2025 22:24:30.01445[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01446[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
28-10-2025 22:24:30.01446[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01447[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
28-10-2025 22:24:30.01447[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
28-10-2025 22:24:30.01448[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
28-10-2025 22:24:30.01448[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
28-10-2025 22:24:30.01449[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
28-10-2025 22:24:30.01449[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
28-10-2025 22:24:30.01450[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
28-10-2025 22:24:30.01451[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01451[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siapa nama kamu
)

 
-----------------------
28-10-2025 22:24:30.01452[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01452[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siapa nama kamu' 
-----------------------
28-10-2025 22:24:30.01453[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'siapa nama kamu' 
-----------------------
28-10-2025 22:24:30.01453[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'siapa nama kamu' 
-----------------------
28-10-2025 22:24:30.01454[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA KAMU' 
-----------------------
28-10-2025 22:24:30.01454[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SIAPA NAMA KAMU' 
-----------------------
28-10-2025 22:24:30.01455[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SIAPA NAMA KAMU' to the front of the [input] array 
-----------------------
28-10-2025 22:24:30.01456[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01456[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => namaku pedro salto
)

 
-----------------------
28-10-2025 22:24:30.01457[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01457[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'namaku pedro salto' 
-----------------------
28-10-2025 22:24:30.01458[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'namaku pedro salto' 
-----------------------
28-10-2025 22:24:30.01458[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'namaku pedro salto' 
-----------------------
28-10-2025 22:24:30.01459[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU PEDRO SALTO' 
-----------------------
28-10-2025 22:24:30.01459[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NAMAKU PEDRO SALTO' 
-----------------------
28-10-2025 22:24:30.01460[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMAKU PEDRO SALTO' to the front of the [input] array 
-----------------------
28-10-2025 22:24:30.01461[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01461[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
28-10-2025 22:24:30.01462[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01462[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
28-10-2025 22:24:30.01463[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
28-10-2025 22:24:30.01463[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
28-10-2025 22:24:30.01464[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
28-10-2025 22:24:30.01464[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
28-10-2025 22:24:30.01465[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
28-10-2025 22:24:30.01497[2][4] - Elapsed time: 0.321 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
28-10-2025 22:24:30.01498[3][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
28-10-2025 22:24:30.01517[4][4] - Elapsed time: 0.185 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
28-10-2025 22:24:30.01518[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
28-10-2025 22:24:30.01519[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
28-10-2025 22:24:30.01519[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = NAMAKU BAGAS: raw say = Namaku Bagas 
-----------------------
28-10-2025 22:24:30.01520[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
28-10-2025 22:24:30.01520[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMAKU BAGAS' to the front of the [user_say] array 
-----------------------
28-10-2025 22:24:30.01521[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
28-10-2025 22:24:30.01522[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = Namaku Bagas, RAW say = Namaku Bagas 
-----------------------
28-10-2025 22:24:30.01523[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Namaku Bagas' to the front of the [input] array 
-----------------------
28-10-2025 22:24:30.01523[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
28-10-2025 22:24:30.01524[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'NAMAKU BAGAS' 
-----------------------
28-10-2025 22:24:30.01525[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU BAGAS' 
-----------------------
28-10-2025 22:24:30.01526[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
28-10-2025 22:24:30.01545[4][4] - Elapsed time: 0.185 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
28-10-2025 22:24:30.01547[3][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_dannu`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'd691a9f1d78e60289ed8ed3fa176672d'
    AND (
        'NAMAKU BAGAS' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HALO UNDEFINED ADA YANG BISA AKU BANTU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
28-10-2025 22:24:30.01566[2][4] - Elapsed time: 0.193 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
28-10-2025 22:24:30.01567[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
28-10-2025 22:24:30.01567[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
28-10-2025 22:24:30.01586[4][4] - Elapsed time: 0.189 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
28-10-2025 22:24:30.01588[3][4] - Elapsed time: 0.023 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'NAMAKU BAGAS' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HALO UNDEFINED ADA YANG BISA AKU BANTU' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
28-10-2025 22:24:30.01620[3][4] - Elapsed time: 0.312 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
28-10-2025 22:24:30.01621[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
28-10-2025 22:24:30.01640[1][4] - Elapsed time: 0.190 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = HALO UNDEFINED ADA YANG BISA AKU BANTU 
-----------------------
28-10-2025 22:24:30.01640[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
28-10-2025 22:24:30.01641[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'NAMAKU BAGAS' 
-----------------------
28-10-2025 22:24:30.01657[4][4] - Elapsed time: 0.159 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
28-10-2025 22:24:30.01658[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
28-10-2025 22:24:30.01683[4][4] - Elapsed time: 0.248 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 217
            [bot_id] => 1
            [pattern] => NAMAKU *
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
            [score] => 254
            [current_that] => halo undefined ada yang bisa aku bantu
            [aiml_id] => 217
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
        )

    [1] => Array
        (
            [id] => 252
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <random>
            <li>Maaf, <get name="namaku"/>, aku nggak ngerti maksud kamu.</li>
            <li>Hmm, bisa diulangi dengan kalimat lain?</li>
            <li>Aku masih belajar nih. Coba tanya yang lain.</li>
            <li>Kalau soal itu aku kurang paham.</li>
        </random>
            [score] => 252
            [current_that] => halo undefined ada yang bisa aku bantu
            [aiml_id] => 252
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
28-10-2025 22:24:30.01685[2][4] - Elapsed time: 0.021 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 217
            [bot_id] => 1
            [pattern] => NAMAKU *
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
            [score] => 254
            [current_that] => halo undefined ada yang bisa aku bantu
            [aiml_id] => 217
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
        )

)

 
-----------------------
28-10-2025 22:24:30.01700[4][4] - Elapsed time: 0.146 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 217
    [bot_id] => 1
    [pattern] => NAMAKU *
    [thatpattern] => 
    [topic] => 
    [filename] => bot.aiml
    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
    [score] => 254
    [current_that] => halo undefined ada yang bisa aku bantu
    [aiml_id] => 217
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
)
 
-----------------------
28-10-2025 22:24:30.01700[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
28-10-2025 22:24:30.01702[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:217 (NAMAKU *) 
-----------------------
28-10-2025 22:24:30.01703[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
28-10-2025 22:24:30.01703[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'NAMAKU *' 
-----------------------
28-10-2025 22:24:30.01704[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
28-10-2025 22:24:30.01704[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~NAMAKU (.+)$~siuU: Searching Namaku Bagas for a match. 
-----------------------
28-10-2025 22:24:30.01709[2][4] - Elapsed time: 0.043 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => Namaku Bagas
        )

    [1] => Array
        (
            [0] => Bagas
        )

)
 
-----------------------
28-10-2025 22:24:30.01710[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'Bagas' to the stars stack. 
-----------------------
28-10-2025 22:24:30.01710[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => Bagas
)
 
-----------------------
28-10-2025 22:24:30.01711[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
28-10-2025 22:24:30.01711[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
28-10-2025 22:24:30.01712[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 217
    [category_id] => 217
    [html_template] => 
    [lookingfor] => NAMAKU BAGAS
    [pattern] => NAMAKU *
    [score] => 254
    [stars] => Array
        (
            [1] => Bagas
        )

    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => Namaku Bagas
)
 
-----------------------
28-10-2025 22:24:30.01713[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
28-10-2025 22:24:30.01714[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
28-10-2025 22:24:30.01715[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Halo </text><set name="namaku"><star/></set><text>! Senang berkenalan denganmu.</text></template> 
-----------------------
28-10-2025 22:24:30.01720[2][4] - Elapsed time: 0.047 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 22:24:30.01723[4][4] - Elapsed time: 0.030 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><text>Halo </text><set name="namaku"><star/></set><text>! Senang berkenalan denganmu.</text></template>
 
-----------------------
28-10-2025 22:24:30.01724[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
28-10-2025 22:24:30.01725[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 22:24:30.01726[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Halo </text> 
-----------------------
28-10-2025 22:24:30.01726[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
28-10-2025 22:24:30.01727[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
28-10-2025 22:24:30.01728[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
28-10-2025 22:24:30.01728[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo ' to the response array. tag name is text 
-----------------------
28-10-2025 22:24:30.01729[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01729[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo 
)

 
-----------------------
28-10-2025 22:24:30.01730[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01730[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo ' 
-----------------------
28-10-2025 22:24:30.01731[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo ' to the response array. tag name is template. 
-----------------------
28-10-2025 22:24:30.01732[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 22:24:30.01732[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element set at level 1. element XML = <set name="namaku"><star/></set> 
-----------------------
28-10-2025 22:24:30.01734[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_set_tag does exist. Processing now. 
-----------------------
28-10-2025 22:24:30.01734[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element set to the parse_set_tag function 
-----------------------
28-10-2025 22:24:30.01735[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][557]
Parsing the SET tag. 
-----------------------
28-10-2025 22:24:30.01735[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the set tag into text. 
-----------------------
28-10-2025 22:24:30.01736[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 22:24:30.01737[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 2. element XML = <star/> 
-----------------------
28-10-2025 22:24:30.01737[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
28-10-2025 22:24:30.01738[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
28-10-2025 22:24:30.01739[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
28-10-2025 22:24:30.01739[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 2. element = <star/> 
-----------------------
28-10-2025 22:24:30.01740[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => Namaku Bagas
    [lookingfor] => NAMAKU BAGAS
    [category_id] => 217
    [pattern] => NAMAKU *
    [thatpattern] => 
    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
    [html_template] => 
    [topic] => 
    [score] => 254
    [aiml_id] => 217
    [stars] => Array
        (
            [1] => Bagas
        )

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

    [topic_stars] => Array
        (
        )

)
 
-----------------------
28-10-2025 22:24:30.01741[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
28-10-2025 22:24:30.01741[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'Bagas' to the response array. 
-----------------------
28-10-2025 22:24:30.01742[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = Bagas 
-----------------------
28-10-2025 22:24:30.01742[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01743[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Bagas
)

 
-----------------------
28-10-2025 22:24:30.01743[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01744[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Bagas' 
-----------------------
28-10-2025 22:24:30.01744[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Bagas' to the response array. tag name is star 
-----------------------
28-10-2025 22:24:30.01745[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01746[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => Bagas
        )

)

 
-----------------------
28-10-2025 22:24:30.01746[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01746[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01747[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Bagas
)

 
-----------------------
28-10-2025 22:24:30.01747[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01748[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Bagas' 
-----------------------
28-10-2025 22:24:30.01749[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][568]
Adding 'namaku' to the client properties array. Value is 'Bagas' 
-----------------------
28-10-2025 22:24:30.01750[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][569]
Client properties: Array
(
    [ip_address] => 182.8.195.90
    [name] => Seeker
    [namaku] => Bagas
)
 
-----------------------
28-10-2025 22:24:30.01768[2][4] - Elapsed time: 0.188 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][582]
Inserting data into the DB 
-----------------------
28-10-2025 22:24:30.01788[4][4] - Elapsed time: 0.200 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Bagas' to the response array. tag name is set 
-----------------------
28-10-2025 22:24:30.01789[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01790[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Bagas
)

 
-----------------------
28-10-2025 22:24:30.01790[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01791[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Bagas' 
-----------------------
28-10-2025 22:24:30.01792[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Bagas' to the response array. tag name is template. 
-----------------------
28-10-2025 22:24:30.01792[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
28-10-2025 22:24:30.01793[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>! Senang berkenalan denganmu.</text> 
-----------------------
28-10-2025 22:24:30.01794[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
28-10-2025 22:24:30.01794[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
28-10-2025 22:24:30.01795[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
28-10-2025 22:24:30.01796[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '! Senang berkenalan denganmu.' to the response array. tag name is text 
-----------------------
28-10-2025 22:24:30.01796[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01797[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => ! Senang berkenalan denganmu.
)

 
-----------------------
28-10-2025 22:24:30.01797[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01798[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '! Senang berkenalan denganmu.' 
-----------------------
28-10-2025 22:24:30.01798[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '! Senang berkenalan denganmu.' to the response array. tag name is template. 
-----------------------
28-10-2025 22:24:30.01799[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
28-10-2025 22:24:30.01799[2][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo 
    [1] => Bagas
    [2] => ! Senang berkenalan denganmu.
)

 
-----------------------
28-10-2025 22:24:30.01800[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
28-10-2025 22:24:30.01800[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Bagas ! Senang berkenalan denganmu.' 
-----------------------
28-10-2025 22:24:30.01801[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Halo Bagas ! Senang berkenalan denganmu. 
-----------------------
28-10-2025 22:24:30.01802[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
28-10-2025 22:24:30.01802[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
28-10-2025 22:24:30.01803[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo Bagas ! Senang berkenalan denganmu.' to the front of the [that_raw] array 
-----------------------
28-10-2025 22:24:30.01804[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
28-10-2025 22:24:30.01806[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo Bagas ! Senang berkenalan denganmu.' to the front of the [that] array 
-----------------------
28-10-2025 22:24:30.01807[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Bagas !' 
-----------------------
28-10-2025 22:24:30.01807[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Bagas !' 
-----------------------
28-10-2025 22:24:30.01808[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO BAGAS' 
-----------------------
28-10-2025 22:24:30.01809[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO BAGAS' 
-----------------------
28-10-2025 22:24:30.01809[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Senang berkenalan denganmu.' 
-----------------------
28-10-2025 22:24:30.01810[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Senang berkenalan denganmu.' 
-----------------------
28-10-2025 22:24:30.01811[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SENANG BERKENALAN DENGANMU' 
-----------------------
28-10-2025 22:24:30.01811[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SENANG BERKENALAN DENGANMU' 
-----------------------
28-10-2025 22:24:30.01812[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo Bagas ! Senang berkenalan denganmu.' to the front of the [parsed_template] array 
-----------------------
28-10-2025 22:24:30.01813[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
28-10-2025 22:24:30.01814[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.' to the front of the [template] array 
-----------------------
28-10-2025 22:24:30.01814[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
28-10-2025 22:24:30.01816[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
28-10-2025 22:24:30.01817[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'Namaku Bagas',
      'Halo Bagas ! Senang berkenalan denganmu.',
      4,
      'd691a9f1d78e60289ed8ed3fa176672d',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
28-10-2025 22:24:30.01945[4][4] - Elapsed time: 1.286 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
28-10-2025 22:24:30.01962[3][4] - Elapsed time: 0.171 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
28-10-2025 22:24:30.01985[2][4] - Elapsed time: 0.225 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
28-10-2025 22:24:30.01986[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
28-10-2025 22:24:30.01987[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
28-10-2025 22:24:30.01988[4][4] - Elapsed time: 0.015 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"d691a9f1d78e60289ed8ed3fa176672d","usersay":"Namaku Bagas","botsay":"Halo Bagas ! Senang berkenalan denganmu.","botData":{"convo_id":"d691a9f1d78e60289ed8ed3fa176672d","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"4","totallines":1,"rawSay":"Namaku Bagas","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"217","bot_id":"1","pattern":"NAMAKU *","thatpattern":"","topic":"","filename":"bot.aiml","template":"Halo <set name=\"namaku\"><star\/><\/set>! Senang berkenalan denganmu.","score":254,"current_that":"halo undefined ada yang bisa aku bantu","aiml_id":"217","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)"}}} 
-----------------------
28-10-2025 22:24:30.02011[2][4] - Elapsed time: 0.228 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
28-10-2025 22:24:30.02013[0][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 9.538 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => Namaku Bagas
    [conversation] => Array
        (
            [convo_id] => d691a9f1d78e60289ed8ed3fa176672d
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 4
            [totallines] => 1
            [rawSay] => Namaku Bagas
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => imanueldannu910@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 217
                    [bot_id] => 1
                    [pattern] => NAMAKU *
                    [thatpattern] => 
                    [topic] => 
                    [filename] => bot.aiml
                    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
                    [score] => 254
                    [current_that] => halo undefined ada yang bisa aku bantu
                    [aiml_id] => 217
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => Namaku Bagas
            [lookingfor] => NAMAKU BAGAS
            [category_id] => 217
            [pattern] => NAMAKU *
            [thatpattern] => 
            [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
            [html_template] => 
            [topic] => 
            [score] => 254
            [aiml_id] => 217
            [stars] => Array
                (
                    [1] => Bagas
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Halo Bagas ! Senang berkenalan denganmu.
        )

    [client_properties] => Array
        (
            [ip_address] => 182.8.195.90
            [name] => Seeker
            [namaku] => Bagas
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Halo, undefined ! Ada yang bisa aku bantu?
                )

            [2] => Array
                (
                    [0] => Gimana, gimana?
                )

            [3] => Array
                (
                    [0] => Namaku Seeker
                    [1] =>  Salam kenal!
                )

            [4] => Array
                (
                    [0] => Hai juga! Lagi apa nih?
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SENANG BERKENALAN DENGANMU
                    [2] => HALO BAGAS
                )

            [2] => Array
                (
                    [1] => HALO UNDEFINED ADA YANG BISA AKU BANTU
                )

            [3] => Array
                (
                    [1] => GIMANA GIMANA
                )

            [4] => Array
                (
                    [1] => NAMAKU SEEKER SALAM KENAL
                )

            [5] => Array
                (
                    [1] => HAI JUGA LAGI APA NIH
                )

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

    [input] => Array
        (
            [1] => Namaku Bagas
            [2] => HALO
            [3] => NAMAKU PEDRO SALTO
            [4] => SIAPA NAMA KAMU
            [5] => HALO
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1761665070.0106
    [user_say] => Array
        (
            [1] => NAMAKU BAGAS
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Senang berkenalan denganmu.
                    [3] => Halo Bagas !
                )

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

    [parsed_template] => Array
        (
            [1] => Halo Bagas ! Senang berkenalan denganmu.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"d691a9f1d78e60289ed8ed3fa176672d","usersay":"Namaku Bagas","botsay":"Halo Bagas ! Senang berkenalan denganmu.","botData":{"convo_id":"d691a9f1d78e60289ed8ed3fa176672d","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"4","totallines":1,"rawSay":"Namaku Bagas","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"217","bot_id":"1","pattern":"NAMAKU *","thatpattern":"","topic":"","filename":"bot.aiml","template":"Halo <set name=\"namaku\"><star\/><\/set>! Senang berkenalan denganmu.","score":254,"current_that":"halo undefined ada yang bisa aku bantu","aiml_id":"217","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)"}}}
)

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