06-12-2025 14:42:10.74645[0][4] - Elapsed time: 6.519 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 
-----------------------
06-12-2025 14:42:10.74677[4][4] - Elapsed time: 0.320 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
06-12-2025 14:42:10.74717[4][4] - Elapsed time: 0.398 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
06-12-2025 14:42:10.74734[4][4] - Elapsed time: 0.169 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
06-12-2025 14:42:10.74801[4][4] - Elapsed time: 0.677 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
06-12-2025 14:42:10.74803[4][4] - Elapsed time: 0.020 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
06-12-2025 14:42:10.74822[1][4] - Elapsed time: 0.190 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 
-----------------------
06-12-2025 14:42:10.74868[0][4] - Elapsed time: 0.451 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 1c69108c8e589214b2796109a0c82fed 
-----------------------
06-12-2025 14:42:10.74869[4][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'Halo'. 
-----------------------
06-12-2025 14:42:10.74872[4][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
06-12-2025 14:42:10.74873[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
06-12-2025 14:42:10.74874[3][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
06-12-2025 14:42:10.74923[4][4] - Elapsed time: 0.484 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: esp32_user 
-----------------------
06-12-2025 14:42:10.74925[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
06-12-2025 14:42:10.74926[3][4] - Elapsed time: 0.014 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; 
-----------------------
06-12-2025 14:42:10.74971[2][4] - Elapsed time: 0.445 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
06-12-2025 14:42:10.74973[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
06-12-2025 14:42:10.75018[3][4] - Elapsed time: 0.453 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` = 165 AND `bot_id` = 1; 
-----------------------
06-12-2025 14:42:10.75061[2][4] - Elapsed time: 0.434 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
06-12-2025 14:42:10.75070[2][4] - Elapsed time: 0.086 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Halo. 
-----------------------
06-12-2025 14:42:10.75072[2][4] - Elapsed time: 0.021 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
06-12-2025 14:42:10.75138[4][4] - Elapsed time: 0.666 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75162[4][4] - Elapsed time: 0.235 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75164[2][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: 1c69108c8e589214b2796109a0c82fed
Bot id: 1
Format:  
-----------------------
06-12-2025 14:42:10.75165[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
06-12-2025 14:42:10.75166[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
06-12-2025 14:42:10.75168[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 165 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
06-12-2025 14:42:10.75289[1][4] - Elapsed time: 1.213 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => Halo
    [1] => Halo
    [2] => Halo
    [3] => Halo
    [4] => Halo
    [5] => Halo
)
 
-----------------------
06-12-2025 14:42:10.75291[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
06-12-2025 14:42:10.75292[1][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
    [1] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
    [2] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
    [3] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
    [4] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
    [5] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)
 
-----------------------
06-12-2025 14:42:10.75295[2][4] - Elapsed time: 0.027 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75296[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang
    [1] =>  Saya di sini untuk membantu
    [2] =>  Silakan tanyakan apa saja
    [3] => 
)

 
-----------------------
06-12-2025 14:42:10.75297[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75298[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75299[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75301[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75302[4][4] - Elapsed time: 0.019 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75304[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75305[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75309[4][4] - Elapsed time: 0.043 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
06-12-2025 14:42:10.75320[4][4] - Elapsed time: 0.109 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75321[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75323[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75324[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75326[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75327[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Saya pedro salto
    [2] =>  siap membantu Anda
    [3] =>  Ada pertanyaan
    [4] => 
)

 
-----------------------
06-12-2025 14:42:10.75328[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75329[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75330[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75331[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75333[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75334[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75335[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75336[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75337[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75339[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75340[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75341[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75342[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang
    [1] =>  Saya di sini untuk membantu
    [2] =>  Silakan tanyakan apa saja
    [3] => 
)

 
-----------------------
06-12-2025 14:42:10.75343[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75344[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75345[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75346[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75348[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75349[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75350[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75352[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75353[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75354[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75355[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75356[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75357[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Selamat datang
    [2] =>  Ada yang bisa saya bantu hari ini
    [3] => 
)

 
-----------------------
06-12-2025 14:42:10.75358[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75359[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Selamat datang Ada yang bisa saya bantu hari ini ' 
-----------------------
06-12-2025 14:42:10.75360[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Selamat datang Ada yang bisa saya bantu hari ini ' 
-----------------------
06-12-2025 14:42:10.75361[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Selamat datang Ada yang bisa saya bantu hari ini ' 
-----------------------
06-12-2025 14:42:10.75363[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75364[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75365[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75366[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75367[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75369[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75370[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75371[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75372[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Saya pedro salto
    [2] =>  siap membantu Anda
    [3] =>  Ada pertanyaan
    [4] => 
)

 
-----------------------
06-12-2025 14:42:10.75373[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75374[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75375[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75376[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:10.75377[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75378[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75379[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75381[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75382[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75383[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75384[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:10.75385[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75387[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang
    [1] =>  Saya di sini untuk membantu
    [2] =>  Silakan tanyakan apa saja
    [3] => 
)

 
-----------------------
06-12-2025 14:42:10.75389[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75390[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75391[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75392[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang Saya di sini untuk membantu Silakan tanyakan apa saja ' 
-----------------------
06-12-2025 14:42:10.75393[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75394[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75395[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75397[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75398[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75399[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75400[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' 
-----------------------
06-12-2025 14:42:10.75401[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
06-12-2025 14:42:10.75403[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75404[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75405[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75407[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75408[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75409[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75410[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75411[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75411[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75413[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
06-12-2025 14:42:10.75414[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75415[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75416[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75417[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75418[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75419[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75420[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75421[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75422[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75425[2][4] - Elapsed time: 0.028 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75426[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75427[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75428[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75429[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75430[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75431[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75432[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75433[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75434[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75435[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75438[4][4] - Elapsed time: 0.027 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75439[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75440[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75441[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75442[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75443[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75444[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75445[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75446[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75447[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75448[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75449[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75450[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75451[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75452[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75453[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75454[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75455[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:10.75456[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75457[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:10.75458[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:10.75459[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:10.75460[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75461[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75462[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75537[2][4] - Elapsed time: 0.750 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
06-12-2025 14:42:10.75539[3][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
06-12-2025 14:42:10.75562[4][4] - Elapsed time: 0.230 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
06-12-2025 14:42:10.75564[0][4] - Elapsed time: 0.023 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
06-12-2025 14:42:10.75565[0][4] - Elapsed time: 0.008 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
06-12-2025 14:42:10.75566[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = Halo 
-----------------------
06-12-2025 14:42:10.75566[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
06-12-2025 14:42:10.75567[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
06-12-2025 14:42:10.75568[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
06-12-2025 14:42:10.75569[0][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = Halo, RAW say = Halo 
-----------------------
06-12-2025 14:42:10.75570[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo' to the front of the [input] array 
-----------------------
06-12-2025 14:42:10.75571[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
06-12-2025 14:42:10.75571[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75572[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75573[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 
-----------------------
06-12-2025 14:42:10.75600[4][4] - Elapsed time: 0.271 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
06-12-2025 14:42:10.75602[3][4] - Elapsed time: 0.020 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` = 'esp32_user'
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
06-12-2025 14:42:10.75642[2][4] - Elapsed time: 0.403 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
06-12-2025 14:42:10.75643[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
06-12-2025 14:42:10.75644[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
06-12-2025 14:42:10.75669[4][4] - Elapsed time: 0.248 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
06-12-2025 14:42:10.75671[3][4] - Elapsed time: 0.017 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 (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
06-12-2025 14:42:10.75717[3][4] - Elapsed time: 0.467 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
06-12-2025 14:42:10.75718[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
06-12-2025 14:42:10.75744[1][4] - Elapsed time: 0.257 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA 
-----------------------
06-12-2025 14:42:10.75745[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
06-12-2025 14:42:10.75746[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 'HALO' 
-----------------------
06-12-2025 14:42:10.75754[4][4] - Elapsed time: 0.087 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
06-12-2025 14:42:10.75756[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
06-12-2025 14:42:10.75783[4][4] - Elapsed time: 0.270 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1244
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
            [score] => 260
            [current_that] => selamat datang saya di sini untuk membantu silakan tanyakan apa saja
            [aiml_id] => 1244
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

    [1] => Array
        (
            [id] => 1190
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Maaf, saya kurang memahami pertanyaan Anda.
        Bisakah Anda mengatakannya dengan cara lain?</li>
        <li>Hmm, saya belum mengerti maksud Anda.
        Bisa dijelaskan lebih detail?</li>
        <li>Maaf, saya masih belajar.
        Bisakah Anda bertanya dengan kalimat yang berbeda?</li>
        <li>Saya belum dapat memproses itu.
        Coba tanyakan hal lain atau gunakan kata-kata yang lebih sederhana.</li>
      </random>
            [score] => 252
            [current_that] => selamat datang saya di sini untuk membantu silakan tanyakan apa saja
            [aiml_id] => 1190
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
06-12-2025 14:42:10.75784[2][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1244
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
            [score] => 260
            [current_that] => selamat datang saya di sini untuk membantu silakan tanyakan apa saja
            [aiml_id] => 1244
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)

 
-----------------------
06-12-2025 14:42:10.75815[4][4] - Elapsed time: 0.303 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1244
    [bot_id] => 1
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
    [score] => 260
    [current_that] => selamat datang saya di sini untuk membantu silakan tanyakan apa saja
    [aiml_id] => 1244
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
)
 
-----------------------
06-12-2025 14:42:10.75815[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
06-12-2025 14:42:10.75817[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1244 (HALO) 
-----------------------
06-12-2025 14:42:10.75818[3][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
06-12-2025 14:42:10.75818[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
06-12-2025 14:42:10.75819[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
06-12-2025 14:42:10.75819[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
06-12-2025 14:42:10.75820[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1244
    [category_id] => 1244
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => Halo
)
 
-----------------------
06-12-2025 14:42:10.75821[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
06-12-2025 14:42:10.75822[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
06-12-2025 14:42:10.75828[4][4] - Elapsed time: 0.060 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template> 
-----------------------
06-12-2025 14:42:10.75843[2][4] - Elapsed time: 0.146 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:10.75848[4][4] - Elapsed time: 0.049 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template>
 
-----------------------
06-12-2025 14:42:10.75849[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. 
-----------------------
06-12-2025 14:42:10.75850[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:10.75852[4][4] - Elapsed time: 0.022 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random> 
-----------------------
06-12-2025 14:42:10.75854[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
06-12-2025 14:42:10.75854[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
06-12-2025 14:42:10.75855[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
06-12-2025 14:42:10.75860[4][4] - Elapsed time: 0.051 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?
        )

    [3] => SimpleXMLElement Object
        (
            [text] => Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.
        )

)
 
-----------------------
06-12-2025 14:42:10.75861[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #0 from random tag.
 
-----------------------
06-12-2025 14:42:10.75861[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:10.75862[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li> 
-----------------------
06-12-2025 14:42:10.75863[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
06-12-2025 14:42:10.75864[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:10.75864[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text> 
-----------------------
06-12-2025 14:42:10.75865[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
06-12-2025 14:42:10.75865[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
06-12-2025 14:42:10.75866[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
06-12-2025 14:42:10.75867[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?' to the response array. tag name is text 
-----------------------
06-12-2025 14:42:10.75867[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75868[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?
)

 
-----------------------
06-12-2025 14:42:10.75868[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75869[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Selamat datang.    Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75869[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Selamat datang.    Ada yang bisa saya bantu hari ini?' to the response array. tag name is li. 
-----------------------
06-12-2025 14:42:10.75870[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75871[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Selamat datang.    Ada yang bisa saya bantu hari ini?
)

 
-----------------------
06-12-2025 14:42:10.75871[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75872[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Selamat datang.  Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75872[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Halo! Selamat datang.  Ada yang bisa saya bantu hari ini?' for output. 
-----------------------
06-12-2025 14:42:10.75873[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Selamat datang.  Ada yang bisa saya bantu hari ini?' to the response array. tag name is random 
-----------------------
06-12-2025 14:42:10.75873[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75874[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Selamat datang.  Ada yang bisa saya bantu hari ini?
)

 
-----------------------
06-12-2025 14:42:10.75874[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75875[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75875[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' to the response array. tag name is template. 
-----------------------
06-12-2025 14:42:10.75876[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:10.75877[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
)

 
-----------------------
06-12-2025 14:42:10.75877[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:10.75878[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75879[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! Selamat datang. Ada yang bisa saya bantu hari ini? 
-----------------------
06-12-2025 14:42:10.75880[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
06-12-2025 14:42:10.75880[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
06-12-2025 14:42:10.75881[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' to the front of the [that_raw] array 
-----------------------
06-12-2025 14:42:10.75881[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
06-12-2025 14:42:10.75884[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' to the front of the [that] array 
-----------------------
06-12-2025 14:42:10.75885[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
06-12-2025 14:42:10.75885[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
06-12-2025 14:42:10.75886[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:10.75887[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:10.75887[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang.' 
-----------------------
06-12-2025 14:42:10.75889[4][4] - Elapsed time: 0.020 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang.' 
-----------------------
06-12-2025 14:42:10.75890[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG' 
-----------------------
06-12-2025 14:42:10.75890[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG' 
-----------------------
06-12-2025 14:42:10.75891[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75891[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Ada yang bisa saya bantu hari ini?' 
-----------------------
06-12-2025 14:42:10.75892[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75892[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'ADA YANG BISA SAYA BANTU HARI INI' 
-----------------------
06-12-2025 14:42:10.75893[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?' to the front of the [parsed_template] array 
-----------------------
06-12-2025 14:42:10.75894[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
06-12-2025 14:42:10.75895[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>' to the front of the [template] array 
-----------------------
06-12-2025 14:42:10.75896[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
06-12-2025 14:42:10.75897[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
06-12-2025 14:42:10.75898[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 ,
      'Halo',
      'Halo! Selamat datang. Ada yang bisa saya bantu hari ini?',
      165,
      'esp32_user',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
06-12-2025 14:42:10.76193[4][4] - Elapsed time: 2.946 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
06-12-2025 14:42:10.76211[3][4] - Elapsed time: 0.183 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 
-----------------------
06-12-2025 14:42:10.76234[2][4] - Elapsed time: 0.230 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
06-12-2025 14:42:10.76235[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
06-12-2025 14:42:10.76236[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
06-12-2025 14:42:10.76238[4][4] - Elapsed time: 0.027 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"esp32_user","usersay":"Halo","botsay":"Halo! Selamat datang. Ada yang bisa saya bantu hari ini?","botData":{"convo_id":"esp32_user","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"165","totallines":1,"rawSay":"Halo","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":"1244","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<random>\n        <li>Halo! Selamat datang.\n        Ada yang bisa saya bantu hari ini?<\/li>\n        <li>Halo! Senang bertemu dengan Anda.\n        Bagaimana kabar Anda?<\/li>\n        <li>Halo! Saya pedro salto, siap membantu Anda.\n        Ada pertanyaan?<\/li>\n        <li>Selamat datang! Saya di sini untuk membantu.\n        Silakan tanyakan apa saja.<\/li>\n      <\/random>","score":260,"current_that":"selamat datang saya di sini untuk membantu silakan tanyakan apa saja","aiml_id":"1244","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}} 
-----------------------
06-12-2025 14:42:10.76279[2][4] - Elapsed time: 0.405 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
06-12-2025 14:42:10.76283[0][4] - Elapsed time: 0.037 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 22.868 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => Halo
    [conversation] => Array
        (
            [convo_id] => esp32_user
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 165
            [totallines] => 1
            [rawSay] => Halo
            [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] => 1244
                    [bot_id] => 1
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chatbot.aiml
                    [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
                    [score] => 260
                    [current_that] => selamat datang saya di sini untuk membantu silakan tanyakan apa saja
                    [aiml_id] => 1244
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => Halo
            [lookingfor] => HALO
            [category_id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [template] => <random>
        <li>Halo! Selamat datang.
        Ada yang bisa saya bantu hari ini?</li>
        <li>Halo! Senang bertemu dengan Anda.
        Bagaimana kabar Anda?</li>
        <li>Halo! Saya pedro salto, siap membantu Anda.
        Ada pertanyaan?</li>
        <li>Selamat datang! Saya di sini untuk membantu.
        Silakan tanyakan apa saja.</li>
      </random>
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 1244
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
        )

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

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Selamat datang! Saya di sini untuk membantu
                    [1] =>  Silakan tanyakan apa saja
                    [2] => 
                )

            [2] => Array
                (
                    [0] => Halo! Saya pedro salto, siap membantu Anda
                    [1] =>  Ada pertanyaan?
                )

            [3] => Array
                (
                    [0] => Halo! Selamat datang
                    [1] =>  Ada yang bisa saya bantu hari ini?
                )

            [4] => Array
                (
                    [0] => Selamat datang! Saya di sini untuk membantu
                    [1] =>  Silakan tanyakan apa saja
                    [2] => 
                )

            [5] => Array
                (
                    [0] => Halo! Saya pedro salto, siap membantu Anda
                    [1] =>  Ada pertanyaan?
                )

            [6] => Array
                (
                    [0] => Selamat datang! Saya di sini untuk membantu
                    [1] =>  Silakan tanyakan apa saja
                    [2] => 
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => ADA YANG BISA SAYA BANTU HARI INI
                    [2] => SELAMAT DATANG
                    [3] => HALO
                )

            [2] => Array
                (
                    [1] => SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA
                )

            [3] => Array
                (
                    [1] => HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN
                )

            [4] => Array
                (
                    [1] => HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI
                )

            [5] => Array
                (
                    [1] => SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA
                )

            [6] => Array
                (
                    [1] => HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN
                )

            [7] => Array
                (
                    [1] => SELAMAT DATANG SAYA DI SINI UNTUK MEMBANTU SILAKAN TANYAKAN APA SAJA
                )

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

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

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Ada yang bisa saya bantu hari ini?
                    [3] => Selamat datang.
                    [4] => Halo!
                )

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

    [parsed_template] => Array
        (
            [1] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <random> <li>Halo! Selamat datang. Ada yang bisa saya bantu hari ini?</li> <li>Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?</li> <li>Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?</li> <li>Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.</li> </random>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"esp32_user","usersay":"Halo","botsay":"Halo! Selamat datang. Ada yang bisa saya bantu hari ini?","botData":{"convo_id":"esp32_user","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"165","totallines":1,"rawSay":"Halo","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":"1244","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<random>\n        <li>Halo! Selamat datang.\n        Ada yang bisa saya bantu hari ini?<\/li>\n        <li>Halo! Senang bertemu dengan Anda.\n        Bagaimana kabar Anda?<\/li>\n        <li>Halo! Saya pedro salto, siap membantu Anda.\n        Ada pertanyaan?<\/li>\n        <li>Selamat datang! Saya di sini untuk membantu.\n        Silakan tanyakan apa saja.<\/li>\n      <\/random>","score":260,"current_that":"selamat datang saya di sini untuk membantu silakan tanyakan apa saja","aiml_id":"1244","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}}
)

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