06-12-2025 15:05:15.15668[0][4] - Elapsed time: 0.755 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
06-12-2025 15:05:15.15694[4][4] - Elapsed time: 0.254 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
06-12-2025 15:05:15.15710[4][4] - Elapsed time: 0.160 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
06-12-2025 15:05:15.15718[4][4] - Elapsed time: 0.081 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
06-12-2025 15:05:15.15746[4][4] - Elapsed time: 0.287 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
06-12-2025 15:05:15.15748[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
06-12-2025 15:05:15.15760[1][4] - Elapsed time: 0.122 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 15:05:15.15790[0][4] - Elapsed time: 0.297 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 8dff1b979699a338798078d5f4fee0d1 
-----------------------
06-12-2025 15:05:15.15791[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'bahas siega'. 
-----------------------
06-12-2025 15:05:15.15792[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
06-12-2025 15:05:15.15793[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
06-12-2025 15:05:15.15794[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 15:05:15.15831[4][4] - Elapsed time: 0.376 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: 104925b33277f9b1616c7986fd761fa7 
-----------------------
06-12-2025 15:05:15.15832[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
06-12-2025 15:05:15.15833[3][4] - Elapsed time: 0.008 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 15:05:15.15869[2][4] - Elapsed time: 0.364 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
06-12-2025 15:05:15.15870[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
06-12-2025 15:05:15.15911[3][4] - Elapsed time: 0.405 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` = 167 AND `bot_id` = 1; 
-----------------------
06-12-2025 15:05:15.15950[2][4] - Elapsed time: 0.389 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
06-12-2025 15:05:15.15951[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on bahas. 
-----------------------
06-12-2025 15:05:15.15952[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
06-12-2025 15:05:15.15998[2][4] - Elapsed time: 0.464 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
06-12-2025 15:05:15.16000[2][4] - Elapsed time: 0.016 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on siega. 
-----------------------
06-12-2025 15:05:15.16002[4][4] - Elapsed time: 0.018 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'bahas siega' 
-----------------------
06-12-2025 15:05:15.16003[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BAHAS SIEGA' 
-----------------------
06-12-2025 15:05:15.16004[2][4] - Elapsed time: 0.007 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: BAHAS SIEGA
Convo id: 8dff1b979699a338798078d5f4fee0d1
Bot id: 1
Format: json 
-----------------------
06-12-2025 15:05:15.16005[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
06-12-2025 15:05:15.16005[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
06-12-2025 15:05:15.16006[3][4] - Elapsed time: 0.008 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` = 167 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
06-12-2025 15:05:15.16131[1][4] - Elapsed time: 1.249 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => nama saya dannu
    [1] => halo
)
 
-----------------------
06-12-2025 15:05:15.16132[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
06-12-2025 15:05:15.16132[1][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => dannu Senang berkenalan dengan Anda, dannu. Saya akan mengingat nama Anda.
    [1] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
)
 
-----------------------
06-12-2025 15:05:15.16134[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 15:05:15.16134[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Senang bertemu dengan Anda
    [2] =>  Bagaimana kabar Anda
    [3] => 
)

 
-----------------------
06-12-2025 15:05:15.16135[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 15:05:15.16136[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
06-12-2025 15:05:15.16136[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
06-12-2025 15:05:15.16137[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
06-12-2025 15:05:15.16138[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16139[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16139[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' to the front of the [that] array 
-----------------------
06-12-2025 15:05:15.16140[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
06-12-2025 15:05:15.16142[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16142[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16143[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16144[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
06-12-2025 15:05:15.16145[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 15:05:15.16145[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => dannu Senang berkenalan dengan Anda
    [1] =>  dannu
    [2] =>  Saya akan mengingat nama Anda
    [3] => 
)

 
-----------------------
06-12-2025 15:05:15.16146[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 15:05:15.16146[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'dannu Senang berkenalan dengan Anda dannu Saya akan mengingat nama Anda ' 
-----------------------
06-12-2025 15:05:15.16147[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'dannu Senang berkenalan dengan Anda dannu Saya akan mengingat nama Anda ' 
-----------------------
06-12-2025 15:05:15.16147[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'dannu Senang berkenalan dengan Anda dannu Saya akan mengingat nama Anda ' 
-----------------------
06-12-2025 15:05:15.16148[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16149[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16149[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' to the front of the [that] array 
-----------------------
06-12-2025 15:05:15.16150[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16151[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16152[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16152[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
06-12-2025 15:05:15.16153[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
06-12-2025 15:05:15.16154[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 15:05:15.16154[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
06-12-2025 15:05:15.16155[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 15:05:15.16155[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
06-12-2025 15:05:15.16156[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
06-12-2025 15:05:15.16156[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
06-12-2025 15:05:15.16157[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
06-12-2025 15:05:15.16157[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
06-12-2025 15:05:15.16158[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 15:05:15.16158[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
06-12-2025 15:05:15.16159[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 15:05:15.16160[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => nama saya dannu
)

 
-----------------------
06-12-2025 15:05:15.16160[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 15:05:15.16161[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'nama saya dannu' 
-----------------------
06-12-2025 15:05:15.16161[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'nama saya dannu' 
-----------------------
06-12-2025 15:05:15.16162[4][4] - Elapsed time: 0.004 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'nama saya dannu' 
-----------------------
06-12-2025 15:05:15.16162[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMA SAYA DANNU' 
-----------------------
06-12-2025 15:05:15.16163[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'NAMA SAYA DANNU' 
-----------------------
06-12-2025 15:05:15.16163[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMA SAYA DANNU' to the front of the [input] array 
-----------------------
06-12-2025 15:05:15.16191[2][4] - Elapsed time: 0.273 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
06-12-2025 15:05:15.16192[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
06-12-2025 15:05:15.16212[4][4] - Elapsed time: 0.200 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
06-12-2025 15:05:15.16213[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
06-12-2025 15:05:15.16213[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
06-12-2025 15:05:15.16214[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][235]
Say = BAHAS SIEGA: raw say = bahas siega 
-----------------------
06-12-2025 15:05:15.16215[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
06-12-2025 15:05:15.16215[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'BAHAS SIEGA' to the front of the [user_say] array 
-----------------------
06-12-2025 15:05:15.16216[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
06-12-2025 15:05:15.16217[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = bahas siega, RAW say = bahas siega 
-----------------------
06-12-2025 15:05:15.16218[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'bahas siega' to the front of the [input] array 
-----------------------
06-12-2025 15:05:15.16218[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
06-12-2025 15:05:15.16219[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'BAHAS SIEGA' 
-----------------------
06-12-2025 15:05:15.16220[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BAHAS SIEGA' 
-----------------------
06-12-2025 15:05:15.16220[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 15:05:15.16246[4][4] - Elapsed time: 0.252 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
06-12-2025 15:05:15.16247[3][4] - Elapsed time: 0.018 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` = '104925b33277f9b1616c7986fd761fa7'
    AND (
        'BAHAS SIEGA' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
06-12-2025 15:05:15.16285[2][4] - Elapsed time: 0.373 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
06-12-2025 15:05:15.16285[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
06-12-2025 15:05:15.16286[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
06-12-2025 15:05:15.16311[4][4] - Elapsed time: 0.251 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
06-12-2025 15:05:15.16313[3][4] - Elapsed time: 0.016 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 (
        'BAHAS SIEGA' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
06-12-2025 15:05:15.16360[3][4] - Elapsed time: 0.469 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
06-12-2025 15:05:15.16360[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
06-12-2025 15:05:15.16386[1][4] - Elapsed time: 0.253 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA 
-----------------------
06-12-2025 15:05:15.16387[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
06-12-2025 15:05:15.16388[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'BAHAS SIEGA' 
-----------------------
06-12-2025 15:05:15.16397[4][4] - Elapsed time: 0.092 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
06-12-2025 15:05:15.16398[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
06-12-2025 15:05:15.16428[4][4] - Elapsed time: 0.298 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1392
            [bot_id] => 1
            [pattern] => BAHAS *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
            [score] => 254
            [current_that] => dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda
            [aiml_id] => 1392
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)
        )

    [1] => Array
        (
            [id] => 1385
            [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] => dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda
            [aiml_id] => 1385
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
06-12-2025 15:05:15.16429[2][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1392
            [bot_id] => 1
            [pattern] => BAHAS *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
            [score] => 254
            [current_that] => dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda
            [aiml_id] => 1392
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)
        )

)

 
-----------------------
06-12-2025 15:05:15.16443[4][4] - Elapsed time: 0.139 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1392
    [bot_id] => 1
    [pattern] => BAHAS *
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
    [score] => 254
    [current_that] => dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda
    [aiml_id] => 1392
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)
)
 
-----------------------
06-12-2025 15:05:15.16444[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 15:05:15.16445[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1392 (BAHAS *) 
-----------------------
06-12-2025 15:05:15.16446[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 15:05:15.16447[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'BAHAS *' 
-----------------------
06-12-2025 15:05:15.16447[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
06-12-2025 15:05:15.16448[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~BAHAS (.+)$~siuU: Searching bahas siega for a match. 
-----------------------
06-12-2025 15:05:15.16452[2][4] - Elapsed time: 0.044 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => bahas siega
        )

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

)
 
-----------------------
06-12-2025 15:05:15.16453[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'siega' to the stars stack. 
-----------------------
06-12-2025 15:05:15.16454[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => siega
)
 
-----------------------
06-12-2025 15:05:15.16454[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
06-12-2025 15:05:15.16455[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
06-12-2025 15:05:15.16456[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1392
    [category_id] => 1392
    [html_template] => 
    [lookingfor] => BAHAS SIEGA
    [pattern] => BAHAS *
    [score] => 254
    [stars] => Array
        (
            [1] => siega
        )

    [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => bahas siega
)
 
-----------------------
06-12-2025 15:05:15.16457[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 15:05:15.16457[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 15:05:15.16459[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><think><set name="topic"><star/></set></think><text>      Mode diskusi diubah. Mari kita bahas topik: </text><star/><text>. Silakan ajukan pertanyaan Anda.</text></template> 
-----------------------
06-12-2025 15:05:15.16463[2][4] - Elapsed time: 0.042 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16466[4][4] - Elapsed time: 0.031 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><think><set name="topic"><star/></set></think><text>      Mode diskusi diubah. Mari kita bahas topik: </text><star/><text>. Silakan ajukan pertanyaan Anda.</text></template>
 
-----------------------
06-12-2025 15:05:15.16467[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 15:05:15.16468[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16469[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element think at level 1. element XML = <think><set name="topic"><star/></set></think> 
-----------------------
06-12-2025 15:05:15.16470[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_think_tag does exist. Processing now. 
-----------------------
06-12-2025 15:05:15.16470[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element think to the parse_think_tag function 
-----------------------
06-12-2025 15:05:15.16471[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_think_tag][604]
I'm considering parsing a THINK tag. 
-----------------------
06-12-2025 15:05:15.16471[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the think tag into text. 
-----------------------
06-12-2025 15:05:15.16472[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16473[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element set at level 2. element XML = <set name="topic"><star/></set> 
-----------------------
06-12-2025 15:05:15.16474[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_set_tag does exist. Processing now. 
-----------------------
06-12-2025 15:05:15.16474[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element set to the parse_set_tag function 
-----------------------
06-12-2025 15:05:15.16475[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][557]
Parsing the SET tag. 
-----------------------
06-12-2025 15:05:15.16475[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the set tag into text. 
-----------------------
06-12-2025 15:05:15.16476[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16476[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 3. element XML = <star/> 
-----------------------
06-12-2025 15:05:15.16477[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
06-12-2025 15:05:15.16477[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
06-12-2025 15:05:15.16478[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
06-12-2025 15:05:15.16478[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 3. element = <star/> 
-----------------------
06-12-2025 15:05:15.16479[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => bahas siega
    [lookingfor] => BAHAS SIEGA
    [category_id] => 1392
    [pattern] => BAHAS *
    [thatpattern] => 
    [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
    [html_template] => 
    [topic] => 
    [score] => 254
    [aiml_id] => 1392
    [stars] => Array
        (
            [1] => siega
        )

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

    [topic_stars] => Array
        (
        )

)
 
-----------------------
06-12-2025 15:05:15.16480[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
06-12-2025 15:05:15.16480[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'siega' to the response array. 
-----------------------
06-12-2025 15:05:15.16481[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = siega 
-----------------------
06-12-2025 15:05:15.16482[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 15:05:15.16482[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siega
)

 
-----------------------
06-12-2025 15:05:15.16483[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 15:05:15.16483[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siega' 
-----------------------
06-12-2025 15:05:15.16484[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'siega' to the response array. tag name is star 
-----------------------
06-12-2025 15:05:15.16484[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 15:05:15.16485[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => siega
        )

)

 
-----------------------
06-12-2025 15:05:15.16485[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 15:05:15.16486[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 15:05:15.16486[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siega
)

 
-----------------------
06-12-2025 15:05:15.16487[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 15:05:15.16488[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siega' 
-----------------------
06-12-2025 15:05:15.16489[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][568]
Adding 'topic' to the client properties array. Value is 'siega' 
-----------------------
06-12-2025 15:05:15.16490[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][569]
Client properties: Array
(
    [ip_address] => 104.28.219.244
    [name] => Seeker
    [nama] => dannu
    [topic] => siega
)
 
-----------------------
06-12-2025 15:05:15.16516[2][4] - Elapsed time: 0.264 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][582]
Inserting data into the DB 
-----------------------
06-12-2025 15:05:15.16536[4][4] - Elapsed time: 0.200 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'siega' to the response array. tag name is set 
-----------------------
06-12-2025 15:05:15.16537[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 15:05:15.16538[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => siega
        )

)

 
-----------------------
06-12-2025 15:05:15.16538[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 15:05:15.16539[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
06-12-2025 15:05:15.16539[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siega
)

 
-----------------------
06-12-2025 15:05:15.16540[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 15:05:15.16540[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siega' 
-----------------------
06-12-2025 15:05:15.16541[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '' to the response array. tag name is think 
-----------------------
06-12-2025 15:05:15.16542[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 15:05:15.16542[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
)

 
-----------------------
06-12-2025 15:05:15.16543[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 15:05:15.16543[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '' 
-----------------------
06-12-2025 15:05:15.16544[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '' to the response array. tag name is template. 
-----------------------
06-12-2025 15:05:15.16544[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16545[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>      Mode diskusi diubah. Mari kita bahas topik: </text> 
-----------------------
06-12-2025 15:05:15.16546[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 15:05:15.16546[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
06-12-2025 15:05:15.16547[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
06-12-2025 15:05:15.16547[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '      Mode diskusi diubah. Mari kita bahas topik: ' to the response array. tag name is text 
-----------------------
06-12-2025 15:05:15.16548[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 15:05:15.16548[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] =>       Mode diskusi diubah. Mari kita bahas topik: 
)

 
-----------------------
06-12-2025 15:05:15.16549[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 15:05:15.16550[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '   Mode diskusi diubah. Mari kita bahas topik: ' 
-----------------------
06-12-2025 15:05:15.16550[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Mode diskusi diubah. Mari kita bahas topik: ' to the response array. tag name is template. 
-----------------------
06-12-2025 15:05:15.16551[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16551[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 1. element XML = <star/> 
-----------------------
06-12-2025 15:05:15.16552[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
06-12-2025 15:05:15.16552[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
06-12-2025 15:05:15.16553[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
06-12-2025 15:05:15.16553[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 1. element = <star/> 
-----------------------
06-12-2025 15:05:15.16554[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => bahas siega
    [lookingfor] => BAHAS SIEGA
    [category_id] => 1392
    [pattern] => BAHAS *
    [thatpattern] => 
    [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
    [html_template] => 
    [topic] => 
    [score] => 254
    [aiml_id] => 1392
    [stars] => Array
        (
            [1] => siega
        )

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

    [topic_stars] => Array
        (
        )

)
 
-----------------------
06-12-2025 15:05:15.16555[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
06-12-2025 15:05:15.16555[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'siega' to the response array. 
-----------------------
06-12-2025 15:05:15.16556[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = siega 
-----------------------
06-12-2025 15:05:15.16556[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 15:05:15.16557[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siega
)

 
-----------------------
06-12-2025 15:05:15.16557[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 15:05:15.16558[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siega' 
-----------------------
06-12-2025 15:05:15.16558[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'siega' to the response array. tag name is star 
-----------------------
06-12-2025 15:05:15.16559[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 15:05:15.16559[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => siega
)

 
-----------------------
06-12-2025 15:05:15.16560[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 15:05:15.16560[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'siega' 
-----------------------
06-12-2025 15:05:15.16561[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'siega' to the response array. tag name is template. 
-----------------------
06-12-2025 15:05:15.16561[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
06-12-2025 15:05:15.16562[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>. Silakan ajukan pertanyaan Anda.</text> 
-----------------------
06-12-2025 15:05:15.16563[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 15:05:15.16563[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
06-12-2025 15:05:15.16564[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
06-12-2025 15:05:15.16564[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '. Silakan ajukan pertanyaan Anda.' to the response array. tag name is text 
-----------------------
06-12-2025 15:05:15.16565[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 15:05:15.16565[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => . Silakan ajukan pertanyaan Anda.
)

 
-----------------------
06-12-2025 15:05:15.16566[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 15:05:15.16566[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '. Silakan ajukan pertanyaan Anda.' 
-----------------------
06-12-2025 15:05:15.16567[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '. Silakan ajukan pertanyaan Anda.' to the response array. tag name is template. 
-----------------------
06-12-2025 15:05:15.16567[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 15:05:15.16568[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
    [1] => Mode diskusi diubah. Mari kita bahas topik: 
    [2] => siega
    [3] => . Silakan ajukan pertanyaan Anda.
)

 
-----------------------
06-12-2025 15:05:15.16568[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 15:05:15.16569[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning ' Mode diskusi diubah. Mari kita bahas topik: siega . Silakan ajukan pertanyaan Anda.' 
-----------------------
06-12-2025 15:05:15.16570[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: Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda. 
-----------------------
06-12-2025 15:05:15.16571[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
06-12-2025 15:05:15.16571[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
06-12-2025 15:05:15.16572[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.' to the front of the [that_raw] array 
-----------------------
06-12-2025 15:05:15.16572[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
06-12-2025 15:05:15.16574[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.' to the front of the [that] array 
-----------------------
06-12-2025 15:05:15.16576[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Mode diskusi diubah.' 
-----------------------
06-12-2025 15:05:15.16576[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Mode diskusi diubah.' 
-----------------------
06-12-2025 15:05:15.16577[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MODE DISKUSI DIUBAH' 
-----------------------
06-12-2025 15:05:15.16578[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MODE DISKUSI DIUBAH' 
-----------------------
06-12-2025 15:05:15.16578[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Mari kita bahas topik: siega.' 
-----------------------
06-12-2025 15:05:15.16579[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Mari kita bahas topik: siega.' 
-----------------------
06-12-2025 15:05:15.16579[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'MARI KITA BAHAS TOPIK SIEGA' 
-----------------------
06-12-2025 15:05:15.16580[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'MARI KITA BAHAS TOPIK SIEGA' 
-----------------------
06-12-2025 15:05:15.16580[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Silakan ajukan pertanyaan Anda.' 
-----------------------
06-12-2025 15:05:15.16581[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Silakan ajukan pertanyaan Anda.' 
-----------------------
06-12-2025 15:05:15.16581[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SILAKAN AJUKAN PERTANYAAN ANDA' 
-----------------------
06-12-2025 15:05:15.16582[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SILAKAN AJUKAN PERTANYAAN ANDA' 
-----------------------
06-12-2025 15:05:15.16583[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.' to the front of the [parsed_template] array 
-----------------------
06-12-2025 15:05:15.16583[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
06-12-2025 15:05:15.16584[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.' to the front of the [template] array 
-----------------------
06-12-2025 15:05:15.16585[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
06-12-2025 15:05:15.16586[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
06-12-2025 15:05:15.16587[3][4] - Elapsed time: 0.013 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 ,
      'bahas siega',
      'Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.',
      167,
      '104925b33277f9b1616c7986fd761fa7',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
06-12-2025 15:05:15.17145[4][4] - Elapsed time: 5.577 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
06-12-2025 15:05:15.17162[3][4] - Elapsed time: 0.171 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
06-12-2025 15:05:15.17183[2][4] - Elapsed time: 0.210 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
06-12-2025 15:05:15.17184[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
06-12-2025 15:05:15.17185[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
06-12-2025 15:05:15.17186[4][4] - Elapsed time: 0.014 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"104925b33277f9b1616c7986fd761fa7","usersay":"bahas siega","botsay":"Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.","botData":{"convo_id":"104925b33277f9b1616c7986fd761fa7","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"167","totallines":1,"rawSay":"bahas siega","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":"1392","bot_id":"1","pattern":"BAHAS *","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<think><set name=\"topic\"><star\/><\/set><\/think>\n      Mode diskusi diubah. Mari kita bahas topik: <star\/>. Silakan ajukan pertanyaan Anda.","score":254,"current_that":"dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda","aiml_id":"1392","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)"}}} 
-----------------------
06-12-2025 15:05:15.17220[2][4] - Elapsed time: 0.340 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
06-12-2025 15:05:15.17222[0][4] - Elapsed time: 0.022 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 16.281 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => bahas siega
    [conversation] => Array
        (
            [convo_id] => 104925b33277f9b1616c7986fd761fa7
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 167
            [totallines] => 1
            [rawSay] => bahas siega
            [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] => 1392
                    [bot_id] => 1
                    [pattern] => BAHAS *
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chatbot.aiml
                    [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
                    [score] => 254
                    [current_that] => dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda
                    [aiml_id] => 1392
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => bahas siega
            [lookingfor] => BAHAS SIEGA
            [category_id] => 1392
            [pattern] => BAHAS *
            [thatpattern] => 
            [template] => <think><set name="topic"><star/></set></think>
      Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
            [html_template] => 
            [topic] => 
            [score] => 254
            [aiml_id] => 1392
            [stars] => Array
                (
                    [1] => siega
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.
        )

    [client_properties] => Array
        (
            [ip_address] => 104.28.219.244
            [name] => Seeker
            [nama] => dannu
            [topic] => siega
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => dannu Senang berkenalan dengan Anda, dannu
                    [1] =>  Saya akan mengingat nama Anda
                    [2] => 
                )

            [2] => Array
                (
                    [0] => Halo! Senang bertemu dengan Anda
                    [1] =>  Bagaimana kabar Anda?
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SILAKAN AJUKAN PERTANYAAN ANDA
                    [2] => MARI KITA BAHAS TOPIK SIEGA
                    [3] => MODE DISKUSI DIUBAH
                )

            [2] => Array
                (
                    [1] => DANNU SENANG BERKENALAN DENGAN ANDA DANNU SAYA AKAN MENGINGAT NAMA ANDA
                )

            [3] => Array
                (
                    [1] => HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA
                )

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

    [input] => Array
        (
            [1] => bahas siega
            [2] => NAMA SAYA DANNU
            [3] => HALO
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1765008315.1559
    [user_say] => Array
        (
            [1] => BAHAS SIEGA
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Silakan ajukan pertanyaan Anda.
                    [3] => Mari kita bahas topik: siega.
                    [4] => Mode diskusi diubah.
                )

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

    [parsed_template] => Array
        (
            [1] => Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <think><set name="topic"><star/></set></think> Mode diskusi diubah. Mari kita bahas topik: <star/>. Silakan ajukan pertanyaan Anda.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"104925b33277f9b1616c7986fd761fa7","usersay":"bahas siega","botsay":"Mode diskusi diubah. Mari kita bahas topik: siega. Silakan ajukan pertanyaan Anda.","botData":{"convo_id":"104925b33277f9b1616c7986fd761fa7","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"167","totallines":1,"rawSay":"bahas siega","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":"1392","bot_id":"1","pattern":"BAHAS *","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<think><set name=\"topic\"><star\/><\/set><\/think>\n      Mode diskusi diubah. Mari kita bahas topik: <star\/>. Silakan ajukan pertanyaan Anda.","score":254,"current_that":"dannu senang berkenalan dengan anda dannu saya akan mengingat nama anda","aiml_id":"1392","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: bahas (2 points), star word match (1 points)"}}}
)

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