06-12-2025 14:42:40.37198[0][4] - Elapsed time: 1.623 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:40.37229[4][4] - Elapsed time: 0.309 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
06-12-2025 14:42:40.37250[4][4] - Elapsed time: 0.213 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
06-12-2025 14:42:40.37260[4][4] - Elapsed time: 0.098 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
06-12-2025 14:42:40.37301[4][4] - Elapsed time: 0.417 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
06-12-2025 14:42:40.37303[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
06-12-2025 14:42:40.37318[1][4] - Elapsed time: 0.153 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:40.37350[0][4] - Elapsed time: 0.316 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = a6ac3ae5bf2e9a546612e8053b6e820b 
-----------------------
06-12-2025 14:42:40.37351[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'Halo'. 
-----------------------
06-12-2025 14:42:40.37353[4][4] - Elapsed time: 0.022 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
06-12-2025 14:42:40.37354[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
06-12-2025 14:42:40.37355[3][4] - Elapsed time: 0.010 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:40.37377[4][4] - Elapsed time: 0.225 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: esp32_user 
-----------------------
06-12-2025 14:42:40.37378[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
06-12-2025 14:42:40.37379[3][4] - Elapsed time: 0.009 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:40.37406[2][4] - Elapsed time: 0.263 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
06-12-2025 14:42:40.37407[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
06-12-2025 14:42:40.37431[3][4] - Elapsed time: 0.244 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:40.37457[2][4] - Elapsed time: 0.263 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
06-12-2025 14:42:40.37466[2][4] - Elapsed time: 0.083 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on Halo. 
-----------------------
06-12-2025 14:42:40.37467[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
06-12-2025 14:42:40.37507[4][4] - Elapsed time: 0.396 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37522[4][4] - Elapsed time: 0.152 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37523[2][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: a6ac3ae5bf2e9a546612e8053b6e820b
Bot id: 1
Format:  
-----------------------
06-12-2025 14:42:40.37524[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
06-12-2025 14:42:40.37524[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
06-12-2025 14:42:40.37525[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` = 165 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
06-12-2025 14:42:40.37630[1][4] - Elapsed time: 1.047 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => Halo
    [1] => Halo
    [2] => Halo
    [3] => Halo
    [4] => Halo
    [5] => Halo
    [6] => Halo
)
 
-----------------------
06-12-2025 14:42:40.37631[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
06-12-2025 14:42:40.37632[1][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
    [1] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
    [2] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
    [3] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
    [4] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
    [5] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
    [6] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)
 
-----------------------
06-12-2025 14:42:40.37633[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:40.37634[2][4] - Elapsed time: 0.006 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:40.37634[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
06-12-2025 14:42:40.37635[4][4] - Elapsed time: 0.008 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:40.37636[4][4] - Elapsed time: 0.006 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:40.37637[4][4] - Elapsed time: 0.007 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:40.37638[4][4] - Elapsed time: 0.011 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:40.37638[4][4] - Elapsed time: 0.006 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:40.37639[2][4] - Elapsed time: 0.006 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:40.37642[4][4] - Elapsed time: 0.027 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
06-12-2025 14:42:40.37649[4][4] - Elapsed time: 0.078 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:40.37650[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:40.37651[4][4] - Elapsed time: 0.010 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:40.37652[4][4] - Elapsed time: 0.005 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:40.37653[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:40.37654[2][4] - Elapsed time: 0.007 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:40.37654[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:40.37655[4][4] - Elapsed time: 0.006 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:40.37655[4][4] - Elapsed time: 0.005 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:40.37656[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:40.37657[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37657[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37658[2][4] - Elapsed time: 0.005 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:40.37659[4][4] - Elapsed time: 0.009 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:40.37659[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37660[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37661[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37661[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37662[2][4] - Elapsed time: 0.006 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:40.37662[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:40.37663[4][4] - Elapsed time: 0.006 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:40.37664[4][4] - Elapsed time: 0.005 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:40.37664[4][4] - Elapsed time: 0.005 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:40.37665[4][4] - Elapsed time: 0.009 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:40.37665[4][4] - Elapsed time: 0.005 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:40.37666[2][4] - Elapsed time: 0.006 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:40.37667[4][4] - Elapsed time: 0.008 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:40.37667[4][4] - Elapsed time: 0.006 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:40.37668[4][4] - Elapsed time: 0.007 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:40.37669[4][4] - Elapsed time: 0.005 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:40.37669[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37670[2][4] - Elapsed time: 0.005 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:40.37670[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:40.37671[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:40.37671[4][4] - Elapsed time: 0.005 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:40.37672[4][4] - Elapsed time: 0.005 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:40.37673[4][4] - Elapsed time: 0.007 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:40.37673[4][4] - Elapsed time: 0.005 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:40.37674[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] array 
-----------------------
06-12-2025 14:42:40.37674[4][4] - Elapsed time: 0.008 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:40.37675[4][4] - Elapsed time: 0.005 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:40.37676[4][4] - Elapsed time: 0.007 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:40.37676[4][4] - Elapsed time: 0.005 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:40.37677[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37677[2][4] - Elapsed time: 0.005 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:40.37678[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:40.37678[4][4] - Elapsed time: 0.006 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:40.37679[4][4] - Elapsed time: 0.005 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:40.37679[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
06-12-2025 14:42:40.37680[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37681[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37681[2][4] - Elapsed time: 0.005 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:40.37682[4][4] - Elapsed time: 0.008 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:40.37682[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37683[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37684[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
06-12-2025 14:42:40.37684[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37685[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:40.37686[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:40.37686[4][4] - Elapsed time: 0.006 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:40.37687[4][4] - Elapsed time: 0.006 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:40.37688[4][4] - Elapsed time: 0.012 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:40.37689[4][4] - Elapsed time: 0.009 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:40.37689[4][4] - Elapsed time: 0.005 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:40.37690[2][4] - Elapsed time: 0.005 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:40.37691[4][4] - Elapsed time: 0.008 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:40.37691[4][4] - Elapsed time: 0.006 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:40.37692[4][4] - Elapsed time: 0.007 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:40.37693[4][4] - Elapsed time: 0.008 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:40.37694[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37694[2][4] - Elapsed time: 0.005 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:40.37695[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:40.37695[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:40.37696[4][4] - Elapsed time: 0.005 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:40.37696[4][4] - Elapsed time: 0.004 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:40.37697[4][4] - Elapsed time: 0.008 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:40.37698[4][4] - Elapsed time: 0.005 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:40.37698[2][4] - Elapsed time: 0.004 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:40.37699[4][4] - Elapsed time: 0.012 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:40.37700[4][4] - Elapsed time: 0.006 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:40.37701[4][4] - Elapsed time: 0.010 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:40.37701[4][4] - Elapsed time: 0.005 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:40.37702[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
06-12-2025 14:42:40.37703[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:40.37703[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37704[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:40.37704[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37705[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37705[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37707[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37707[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37708[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37708[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
06-12-2025 14:42:40.37711[2][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37711[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37712[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:40.37712[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37713[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37713[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37714[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37714[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37715[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37716[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37716[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37717[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:40.37717[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37718[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37718[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37719[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37719[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37719[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37720[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37721[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37721[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:40.37721[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37722[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37722[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37723[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37723[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37724[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37725[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37725[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37725[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:40.37726[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37726[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37727[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37727[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37728[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37729[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37729[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37730[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37730[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:40.37731[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37731[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37732[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37732[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37733[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37733[2][4] - Elapsed time: 0.004 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37734[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.37734[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
)

 
-----------------------
06-12-2025 14:42:40.37735[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:40.37735[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo' 
-----------------------
06-12-2025 14:42:40.37736[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo' 
-----------------------
06-12-2025 14:42:40.37737[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo' 
-----------------------
06-12-2025 14:42:40.37737[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37737[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.37738[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37783[2][4] - Elapsed time: 0.450 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
06-12-2025 14:42:40.37784[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; 
-----------------------
06-12-2025 14:42:40.37804[4][4] - Elapsed time: 0.197 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
06-12-2025 14:42:40.37806[0][4] - Elapsed time: 0.015 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
06-12-2025 14:42:40.37806[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
06-12-2025 14:42:40.37807[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:40.37808[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
06-12-2025 14:42:40.37808[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:40.37809[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
06-12-2025 14:42:40.37810[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = Halo, RAW say = Halo 
-----------------------
06-12-2025 14:42:40.37811[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo' to the front of the [input] array 
-----------------------
06-12-2025 14:42:40.37812[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
06-12-2025 14:42:40.37812[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37813[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.37814[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:40.37844[4][4] - Elapsed time: 0.303 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
06-12-2025 14:42:40.37846[3][4] - Elapsed time: 0.019 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 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
06-12-2025 14:42:40.37868[2][4] - Elapsed time: 0.223 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
06-12-2025 14:42:40.37869[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:40.37870[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:40.37895[4][4] - Elapsed time: 0.254 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
06-12-2025 14:42:40.37897[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 'HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI' 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:40.37927[3][4] - Elapsed time: 0.297 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
06-12-2025 14:42:40.37928[2][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
06-12-2025 14:42:40.37953[1][4] - Elapsed time: 0.250 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI 
-----------------------
06-12-2025 14:42:40.37954[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:40.37954[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:40.37962[4][4] - Elapsed time: 0.082 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
06-12-2025 14:42:40.37963[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
06-12-2025 14:42:40.37990[4][4] - Elapsed time: 0.268 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] => halo selamat datang ada yang bisa saya bantu hari ini
            [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] => halo selamat datang ada yang bisa saya bantu hari ini
            [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:40.37992[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] => halo selamat datang ada yang bisa saya bantu hari ini
            [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:40.38024[4][4] - Elapsed time: 0.319 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] => halo selamat datang ada yang bisa saya bantu hari ini
    [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:40.38024[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
06-12-2025 14:42:40.38027[4][4] - Elapsed time: 0.027 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1244 (HALO) 
-----------------------
06-12-2025 14:42:40.38028[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
06-12-2025 14:42:40.38029[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
06-12-2025 14:42:40.38029[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
06-12-2025 14:42:40.38030[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
06-12-2025 14:42:40.38031[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:40.38032[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:40.38033[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:40.38038[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:40.38051[2][4] - Elapsed time: 0.120 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:40.38056[4][4] - Elapsed time: 0.054 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:40.38057[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
06-12-2025 14:42:40.38058[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:40.38060[4][4] - Elapsed time: 0.020 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:40.38061[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
06-12-2025 14:42:40.38062[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:40.38063[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:40.38068[4][4] - Elapsed time: 0.054 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:40.38069[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:40.38069[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:40.38070[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:40.38071[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:40.38072[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 14:42:40.38072[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:40.38073[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
06-12-2025 14:42:40.38074[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:40.38074[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:40.38075[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 text 
-----------------------
06-12-2025 14:42:40.38075[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.38076[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:40.38076[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:40.38077[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:40.38077[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:40.38078[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:40.38079[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:40.38079[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:40.38080[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:40.38081[4][4] - Elapsed time: 0.007 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:40.38081[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:40.38082[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.38082[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:40.38083[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:40.38083[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:40.38084[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:40.38085[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 14:42:40.38085[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:40.38086[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:40.38086[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:40.38087[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:40.38089[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
06-12-2025 14:42:40.38089[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:40.38090[2][4] - Elapsed time: 0.006 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:40.38091[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
06-12-2025 14:42:40.38093[2][4] - Elapsed time: 0.020 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:40.38094[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
06-12-2025 14:42:40.38094[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
06-12-2025 14:42:40.38095[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 14:42:40.38096[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 14:42:40.38096[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:40.38097[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang.' 
-----------------------
06-12-2025 14:42:40.38097[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG' 
-----------------------
06-12-2025 14:42:40.38098[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG' 
-----------------------
06-12-2025 14:42:40.38098[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:40.38099[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:40.38100[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:40.38100[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:40.38101[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:40.38102[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
06-12-2025 14:42:40.38103[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:40.38103[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
06-12-2025 14:42:40.38105[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
06-12-2025 14:42:40.38106[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:40.38396[4][4] - Elapsed time: 2.903 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
06-12-2025 14:42:40.38413[3][4] - Elapsed time: 0.174 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:40.38436[2][4] - Elapsed time: 0.225 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
06-12-2025 14:42:40.38437[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
06-12-2025 14:42:40.38438[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
06-12-2025 14:42:40.38439[4][4] - Elapsed time: 0.018 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":"halo selamat datang ada yang bisa saya bantu hari ini","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:40.38463[2][4] - Elapsed time: 0.240 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
06-12-2025 14:42:40.38465[0][4] - Elapsed time: 0.022 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 14.287 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] => halo selamat datang ada yang bisa saya bantu hari ini
                    [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] => Halo! Selamat datang
                    [1] =>  Ada yang bisa saya bantu hari ini?
                )

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

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

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

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

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

            [7] => 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] => HALO SELAMAT DATANG ADA YANG BISA SAYA BANTU HARI INI
                )

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

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

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

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

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

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

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

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

    [time_start] => 1765006960.3704
    [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":"halo selamat datang ada yang bisa saya bantu hari ini","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: 14.287 Milliseconds. Goodbye.