10-11-2025 10:01:22.45698[0][4] - Elapsed time: 5.007 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 
-----------------------
10-11-2025 10:01:22.45726[4][4] - Elapsed time: 0.275 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 10:01:22.45746[4][4] - Elapsed time: 0.204 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 10:01:22.45756[4][4] - Elapsed time: 0.099 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 10:01:22.45794[4][4] - Elapsed time: 0.385 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 10:01:22.45796[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 10:01:22.45809[0][4] - Elapsed time: 0.137 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = e6f9a27d38b01c5d2710dd538098bdfc 
-----------------------
10-11-2025 10:01:22.45811[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'namaku erick'. 
-----------------------
10-11-2025 10:01:22.45812[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 10:01:22.45813[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 10:01:22.45814[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
10-11-2025 10:01:22.45837[1][4] - Elapsed time: 0.234 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: e6f9a27d38b01c5d2710dd538098bdfc 
-----------------------
10-11-2025 10:01:22.45838[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 10:01:22.45839[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; 
-----------------------
10-11-2025 10:01:22.45865[2][4] - Elapsed time: 0.261 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 10:01:22.45867[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 10:01:22.45887[2][4] - Elapsed time: 0.208 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 10:01:22.45912[3][4] - Elapsed time: 0.250 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #58 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'e6f9a27d38b01c5d2710dd538098bdfc'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 10:01:22.45930[3][4] - Elapsed time: 0.179 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` = 58 AND `bot_id` = 1; 
-----------------------
10-11-2025 10:01:22.45951[2][4] - Elapsed time: 0.211 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 10:01:22.45958[2][4] - Elapsed time: 0.065 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on namaku. 
-----------------------
10-11-2025 10:01:22.45959[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 10:01:22.45996[2][4] - Elapsed time: 0.368 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 10:01:22.45998[2][4] - Elapsed time: 0.018 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on erick. 
-----------------------
10-11-2025 10:01:22.46000[4][4] - Elapsed time: 0.018 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'namaku erick' 
-----------------------
10-11-2025 10:01:22.46014[4][4] - Elapsed time: 0.146 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU ERICK' 
-----------------------
10-11-2025 10:01:22.46015[2][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: NAMAKU ERICK
Convo id: e6f9a27d38b01c5d2710dd538098bdfc
Bot id: 1
Format:  
-----------------------
10-11-2025 10:01:22.46016[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 10:01:22.46017[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 10:01:22.46018[3][4] - Elapsed time: 0.009 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` = 58 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 10:01:22.46078[4][4] - Elapsed time: 0.606 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 10:01:22.46123[2][4] - Elapsed time: 0.445 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 10:01:22.46124[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; 
-----------------------
10-11-2025 10:01:22.46144[4][4] - Elapsed time: 0.197 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 10:01:22.46145[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 10:01:22.46146[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 10:01:22.46146[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = NAMAKU ERICK: raw say = namaku erick 
-----------------------
10-11-2025 10:01:22.46147[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 10:01:22.46148[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMAKU ERICK' to the front of the [user_say] array 
-----------------------
10-11-2025 10:01:22.46151[4][4] - Elapsed time: 0.030 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 10:01:22.46152[0][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = namaku erick, RAW say = namaku erick 
-----------------------
10-11-2025 10:01:22.46153[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'namaku erick' to the front of the [input] array 
-----------------------
10-11-2025 10:01:22.46153[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 10:01:22.46154[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 10:01:22.46155[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'NAMAKU ERICK' 
-----------------------
10-11-2025 10:01:22.46156[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMAKU ERICK' 
-----------------------
10-11-2025 10:01:22.46157[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 10:01:22.46179[4][4] - Elapsed time: 0.220 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 10:01:22.46180[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` = 'e6f9a27d38b01c5d2710dd538098bdfc'
    AND (
        'NAMAKU ERICK' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:01:22.46201[2][4] - Elapsed time: 0.210 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 10:01:22.46202[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 10:01:22.46203[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 10:01:22.46224[4][4] - Elapsed time: 0.214 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 10:01:22.46226[3][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'NAMAKU ERICK' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:01:22.46256[3][4] - Elapsed time: 0.303 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 10:01:22.46258[2][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
10-11-2025 10:01:22.46281[4][4] - Elapsed time: 0.230 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
10-11-2025 10:01:22.46282[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 'NAMAKU ERICK' 
-----------------------
10-11-2025 10:01:22.46300[4][4] - Elapsed time: 0.181 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 10:01:22.46301[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 10:01:22.46327[4][4] - Elapsed time: 0.264 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 331
            [bot_id] => 1
            [pattern] => NAMAKU *
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
            [score] => 254
            [current_that] => 
            [aiml_id] => 331
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
        )

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

)
 
-----------------------
10-11-2025 10:01:22.46329[2][4] - Elapsed time: 0.019 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

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

)

 
-----------------------
10-11-2025 10:01:22.46359[4][4] - Elapsed time: 0.303 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 331
    [bot_id] => 1
    [pattern] => NAMAKU *
    [thatpattern] => 
    [topic] => 
    [filename] => bot.aiml
    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
    [score] => 254
    [current_that] => 
    [aiml_id] => 331
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
)
 
-----------------------
10-11-2025 10:01:22.46360[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 10:01:22.46362[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:331 (NAMAKU *) 
-----------------------
10-11-2025 10:01:22.46363[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 10:01:22.46363[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'NAMAKU *' 
-----------------------
10-11-2025 10:01:22.46364[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
10-11-2025 10:01:22.46364[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~NAMAKU (.+)$~siuU: Searching namaku erick for a match. 
-----------------------
10-11-2025 10:01:22.46369[2][4] - Elapsed time: 0.043 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => namaku erick
        )

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

)
 
-----------------------
10-11-2025 10:01:22.46370[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'erick' to the stars stack. 
-----------------------
10-11-2025 10:01:22.46370[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => erick
)
 
-----------------------
10-11-2025 10:01:22.46371[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 10:01:22.46372[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 10:01:22.46373[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 331
    [category_id] => 331
    [html_template] => 
    [lookingfor] => NAMAKU ERICK
    [pattern] => NAMAKU *
    [score] => 254
    [stars] => Array
        (
            [1] => erick
        )

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

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

    [user_raw] => namaku erick
)
 
-----------------------
10-11-2025 10:01:22.46373[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 10:01:22.46374[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 10:01:22.46379[4][4] - Elapsed time: 0.049 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Halo </text><set name="namaku"><star/></set><text>! Senang berkenalan denganmu.</text></template> 
-----------------------
10-11-2025 10:01:22.46392[2][4] - Elapsed time: 0.131 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:22.46397[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><text>Halo </text><set name="namaku"><star/></set><text>! Senang berkenalan denganmu.</text></template>
 
-----------------------
10-11-2025 10:01:22.46398[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 10:01:22.46400[2][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:22.46402[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Halo </text> 
-----------------------
10-11-2025 10:01:22.46403[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 10:01:22.46403[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 10:01:22.46404[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 10:01:22.46405[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo ' to the response array. tag name is text 
-----------------------
10-11-2025 10:01:22.46405[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46406[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo 
)

 
-----------------------
10-11-2025 10:01:22.46406[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46407[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo ' 
-----------------------
10-11-2025 10:01:22.46408[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo ' to the response array. tag name is template. 
-----------------------
10-11-2025 10:01:22.46408[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:22.46409[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element set at level 1. element XML = <set name="namaku"><star/></set> 
-----------------------
10-11-2025 10:01:22.46410[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_set_tag does exist. Processing now. 
-----------------------
10-11-2025 10:01:22.46411[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element set to the parse_set_tag function 
-----------------------
10-11-2025 10:01:22.46412[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][557]
Parsing the SET tag. 
-----------------------
10-11-2025 10:01:22.46412[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the set tag into text. 
-----------------------
10-11-2025 10:01:22.46413[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:22.46414[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 2. element XML = <star/> 
-----------------------
10-11-2025 10:01:22.46414[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
10-11-2025 10:01:22.46415[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
10-11-2025 10:01:22.46415[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
10-11-2025 10:01:22.46416[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 2. element = <star/> 
-----------------------
10-11-2025 10:01:22.46417[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => namaku erick
    [lookingfor] => NAMAKU ERICK
    [category_id] => 331
    [pattern] => NAMAKU *
    [thatpattern] => 
    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
    [html_template] => 
    [topic] => 
    [score] => 254
    [aiml_id] => 331
    [stars] => Array
        (
            [1] => erick
        )

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

    [topic_stars] => Array
        (
        )

)
 
-----------------------
10-11-2025 10:01:22.46417[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
10-11-2025 10:01:22.46418[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'erick' to the response array. 
-----------------------
10-11-2025 10:01:22.46419[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = erick 
-----------------------
10-11-2025 10:01:22.46419[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46420[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => erick
)

 
-----------------------
10-11-2025 10:01:22.46420[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46421[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'erick' 
-----------------------
10-11-2025 10:01:22.46421[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'erick' to the response array. tag name is star 
-----------------------
10-11-2025 10:01:22.46423[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46423[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => erick
        )

)

 
-----------------------
10-11-2025 10:01:22.46424[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46424[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46425[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => erick
)

 
-----------------------
10-11-2025 10:01:22.46425[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46426[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'erick' 
-----------------------
10-11-2025 10:01:22.46427[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][568]
Adding 'namaku' to the client properties array. Value is 'erick' 
-----------------------
10-11-2025 10:01:22.46428[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][569]
Client properties: Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
    [namaku] => erick
)
 
-----------------------
10-11-2025 10:01:22.46449[2][4] - Elapsed time: 0.215 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][582]
Inserting data into the DB 
-----------------------
10-11-2025 10:01:22.46466[4][4] - Elapsed time: 0.164 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'erick' to the response array. tag name is set 
-----------------------
10-11-2025 10:01:22.46467[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46467[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => erick
)

 
-----------------------
10-11-2025 10:01:22.46468[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46468[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'erick' 
-----------------------
10-11-2025 10:01:22.46469[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'erick' to the response array. tag name is template. 
-----------------------
10-11-2025 10:01:22.46470[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:22.46471[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>! Senang berkenalan denganmu.</text> 
-----------------------
10-11-2025 10:01:22.46471[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 10:01:22.46472[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 10:01:22.46472[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 10:01:22.46473[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '! Senang berkenalan denganmu.' to the response array. tag name is text 
-----------------------
10-11-2025 10:01:22.46473[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:22.46474[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => ! Senang berkenalan denganmu.
)

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

 
-----------------------
10-11-2025 10:01:22.46477[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:01:22.46478[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo erick ! Senang berkenalan denganmu.' 
-----------------------
10-11-2025 10:01:22.46479[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 erick ! Senang berkenalan denganmu. 
-----------------------
10-11-2025 10:01:22.46480[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 10:01:22.46480[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 10:01:22.46481[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo erick ! Senang berkenalan denganmu.' to the front of the [that_raw] array 
-----------------------
10-11-2025 10:01:22.46481[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 10:01:22.46490[2][4] - Elapsed time: 0.083 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo erick ! Senang berkenalan denganmu.' to the front of the [that] array 
-----------------------
10-11-2025 10:01:22.46491[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 10:01:22.46492[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo erick !' 
-----------------------
10-11-2025 10:01:22.46493[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo erick !' 
-----------------------
10-11-2025 10:01:22.46494[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO ERICK' 
-----------------------
10-11-2025 10:01:22.46495[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO ERICK' 
-----------------------
10-11-2025 10:01:22.46495[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Senang berkenalan denganmu.' 
-----------------------
10-11-2025 10:01:22.46496[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Senang berkenalan denganmu.' 
-----------------------
10-11-2025 10:01:22.46496[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SENANG BERKENALAN DENGANMU' 
-----------------------
10-11-2025 10:01:22.46497[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SENANG BERKENALAN DENGANMU' 
-----------------------
10-11-2025 10:01:22.46498[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo erick ! Senang berkenalan denganmu.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 10:01:22.46498[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 10:01:22.46499[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.' to the front of the [template] array 
-----------------------
10-11-2025 10:01:22.46500[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 10:01:22.46501[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 10:01:22.46502[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'namaku erick',
      'Halo erick ! Senang berkenalan denganmu.',
      58,
      'e6f9a27d38b01c5d2710dd538098bdfc',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 10:01:22.46690[4][4] - Elapsed time: 1.878 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 10:01:22.46707[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 
-----------------------
10-11-2025 10:01:22.46733[2][4] - Elapsed time: 0.259 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 10:01:22.46734[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 10:01:22.46735[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 10:01:22.46737[4][4] - Elapsed time: 0.027 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"e6f9a27d38b01c5d2710dd538098bdfc","usersay":"namaku erick","botsay":"Halo erick ! Senang berkenalan denganmu.","botData":{"convo_id":"e6f9a27d38b01c5d2710dd538098bdfc","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"58","totallines":1,"user_name":"Seeker","rawSay":"namaku erick","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":"331","bot_id":"1","pattern":"NAMAKU *","thatpattern":"","topic":"","filename":"bot.aiml","template":"Halo <set name=\"namaku\"><star\/><\/set>! Senang berkenalan denganmu.","score":254,"current_that":"","aiml_id":"331","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)"}}} 
-----------------------
10-11-2025 10:01:22.46760[2][4] - Elapsed time: 0.231 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 10:01:22.46765[0][4] - Elapsed time: 0.044 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 15.640 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => namaku erick
    [conversation] => Array
        (
            [convo_id] => e6f9a27d38b01c5d2710dd538098bdfc
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 58
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => namaku erick
            [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] => 331
                    [bot_id] => 1
                    [pattern] => NAMAKU *
                    [thatpattern] => 
                    [topic] => 
                    [filename] => bot.aiml
                    [template] => Halo <set name="namaku"><star/></set>! Senang berkenalan denganmu.
                    [score] => 254
                    [current_that] => 
                    [aiml_id] => 331
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)
                )

        )

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

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

            [topic_stars] => Array
                (
                )

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

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

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

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

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

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

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

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

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

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

    [send_to_user] => {"convo_id":"e6f9a27d38b01c5d2710dd538098bdfc","usersay":"namaku erick","botsay":"Halo erick ! Senang berkenalan denganmu.","botData":{"convo_id":"e6f9a27d38b01c5d2710dd538098bdfc","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"58","totallines":1,"user_name":"Seeker","rawSay":"namaku erick","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":"331","bot_id":"1","pattern":"NAMAKU *","thatpattern":"","topic":"","filename":"bot.aiml","template":"Halo <set name=\"namaku\"><star\/><\/set>! Senang berkenalan denganmu.","score":254,"current_that":"","aiml_id":"331","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: namaku (2 points), star word match (1 points)"}}}
)

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