29-10-2025 23:46:15.20337[0][4] - Elapsed time: 4.064 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 
-----------------------
29-10-2025 23:46:15.21718[4][4] - Elapsed time: 13.802 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
29-10-2025 23:46:15.22171[4][4] - Elapsed time: 4.532 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
29-10-2025 23:46:15.22245[4][4] - Elapsed time: 0.740 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
29-10-2025 23:46:15.22576[4][4] - Elapsed time: 3.315 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
29-10-2025 23:46:15.22579[4][4] - Elapsed time: 0.023 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
29-10-2025 23:46:15.22593[0][4] - Elapsed time: 0.144 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 2f5182fc351d0124cfeb6820ff72e722 
-----------------------
29-10-2025 23:46:15.22595[4][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'hello'. 
-----------------------
29-10-2025 23:46:15.22597[4][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
29-10-2025 23:46:15.22598[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
29-10-2025 23:46:15.22599[3][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
29-10-2025 23:46:15.22645[1][4] - Elapsed time: 0.457 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 2f5182fc351d0124cfeb6820ff72e722 
-----------------------
29-10-2025 23:46:15.22647[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
29-10-2025 23:46:15.22649[3][4] - Elapsed time: 0.015 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; 
-----------------------
29-10-2025 23:46:15.22691[2][4] - Elapsed time: 0.427 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
29-10-2025 23:46:15.22694[2][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
29-10-2025 23:46:15.22732[2][4] - Elapsed time: 0.381 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
29-10-2025 23:46:15.22759[3][4] - Elapsed time: 0.277 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #5 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '2f5182fc351d0124cfeb6820ff72e722'   , 1 , '0'        , '216.73.216.22', ''      , 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
29-10-2025 23:46:15.22794[3][4] - Elapsed time: 0.344 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` = 5 AND `bot_id` = 1; 
-----------------------
29-10-2025 23:46:15.22817[2][4] - Elapsed time: 0.234 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
29-10-2025 23:46:15.22820[2][4] - Elapsed time: 0.024 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on hello. 
-----------------------
29-10-2025 23:46:15.22821[2][4] - Elapsed time: 0.015 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
29-10-2025 23:46:15.22874[4][4] - Elapsed time: 0.527 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'hello' 
-----------------------
29-10-2025 23:46:15.22877[4][4] - Elapsed time: 0.032 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
29-10-2025 23:46:15.22879[2][4] - Elapsed time: 0.015 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: 2f5182fc351d0124cfeb6820ff72e722
Bot id: 1
Format:  
-----------------------
29-10-2025 23:46:15.22880[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
29-10-2025 23:46:15.22881[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
29-10-2025 23:46:15.22884[3][4] - Elapsed time: 0.025 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` = 5 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
29-10-2025 23:46:15.22934[4][4] - Elapsed time: 0.500 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
29-10-2025 23:46:15.22966[2][4] - Elapsed time: 0.329 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
29-10-2025 23:46:15.22969[3][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
29-10-2025 23:46:15.22991[4][4] - Elapsed time: 0.222 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
29-10-2025 23:46:15.22993[0][4] - Elapsed time: 0.024 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
29-10-2025 23:46:15.22994[0][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
29-10-2025 23:46:15.22995[0][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = hello 
-----------------------
29-10-2025 23:46:15.22997[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
29-10-2025 23:46:15.22998[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
29-10-2025 23:46:15.22999[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
29-10-2025 23:46:15.23002[0][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = hello, RAW say = hello 
-----------------------
29-10-2025 23:46:15.23003[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'hello' to the front of the [input] array 
-----------------------
29-10-2025 23:46:15.23004[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
29-10-2025 23:46:15.23006[4][4] - Elapsed time: 0.018 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
29-10-2025 23:46:15.23007[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
29-10-2025 23:46:15.23008[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
29-10-2025 23:46:15.23009[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
29-10-2025 23:46:15.23032[4][4] - Elapsed time: 0.222 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
29-10-2025 23:46:15.23035[3][4] - Elapsed time: 0.029 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` = '2f5182fc351d0124cfeb6820ff72e722'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
29-10-2025 23:46:15.23072[2][4] - Elapsed time: 0.377 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
29-10-2025 23:46:15.23074[4][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
29-10-2025 23:46:15.23075[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
29-10-2025 23:46:15.23097[4][4] - Elapsed time: 0.219 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
29-10-2025 23:46:15.23100[3][4] - Elapsed time: 0.028 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 (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
29-10-2025 23:46:15.23148[3][4] - Elapsed time: 0.486 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
29-10-2025 23:46:15.23150[2][4] - Elapsed time: 0.021 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (4) potential AIML matches 
-----------------------
29-10-2025 23:46:15.23174[4][4] - Elapsed time: 0.234 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 4 rows to unset bad matches 
-----------------------
29-10-2025 23:46:15.23176[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HELLO' 
-----------------------
29-10-2025 23:46:15.23200[4][4] - Elapsed time: 0.244 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
29-10-2025 23:46:15.23202[4][4] - Elapsed time: 0.019 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
29-10-2025 23:46:15.23225[4][4] - Elapsed time: 0.233 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => 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)
        )

)
 
-----------------------
29-10-2025 23:46:15.23229[2][4] - Elapsed time: 0.036 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => 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)
        )

)

 
-----------------------
29-10-2025 23:46:15.23246[4][4] - Elapsed time: 0.177 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: 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)
)
 
-----------------------
29-10-2025 23:46:15.23248[2][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
29-10-2025 23:46:15.23250[4][4] - Elapsed time: 0.026 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
29-10-2025 23:46:15.23252[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
29-10-2025 23:46:15.23300[2][4] - Elapsed time: 0.483 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
29-10-2025 23:46:15.23302[1][4] - Elapsed time: 0.021 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'HELLO' to the unknown_inputs table. 
-----------------------
29-10-2025 23:46:15.23304[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:366 (*) 
-----------------------
29-10-2025 23:46:15.23305[3][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
29-10-2025 23:46:15.23306[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
29-10-2025 23:46:15.23307[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
29-10-2025 23:46:15.23308[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching hello for a match. 
-----------------------
29-10-2025 23:46:15.23314[2][4] - Elapsed time: 0.059 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => hello
        )

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

)
 
-----------------------
29-10-2025 23:46:15.23316[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'hello' to the stars stack. 
-----------------------
29-10-2025 23:46:15.23317[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => hello
)
 
-----------------------
29-10-2025 23:46:15.23318[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
29-10-2025 23:46:15.23319[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
29-10-2025 23:46:15.23321[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 366
    [category_id] => 366
    [html_template] => 
    [lookingfor] => HELLO
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => hello
        )

    [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>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => hello
)
 
-----------------------
29-10-2025 23:46:15.23322[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
29-10-2025 23:46:15.23323[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
29-10-2025 23:46:15.23326[4][4] - Elapsed time: 0.025 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random></template> 
-----------------------
29-10-2025 23:46:15.23333[2][4] - Elapsed time: 0.067 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
29-10-2025 23:46:15.23338[4][4] - Elapsed time: 0.055 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random></template>
 
-----------------------
29-10-2025 23:46:15.23340[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
29-10-2025 23:46:15.23342[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
29-10-2025 23:46:15.23345[4][4] - Elapsed time: 0.031 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random> 
-----------------------
29-10-2025 23:46:15.23346[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
29-10-2025 23:46:15.23347[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
29-10-2025 23:46:15.23348[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
29-10-2025 23:46:15.23354[4][4] - Elapsed time: 0.056 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Array
                (
                    [0] => Maaf, 
                    [1] => , aku nggak ngerti maksud kamu.
                )

            [get] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [name] => namaku
                        )

                )

        )

    [1] => SimpleXMLElement Object
        (
            [text] => Hmm, bisa diulangi dengan kalimat lain?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Aku masih belajar nih. Coba tanya yang lain.
        )

    [3] => SimpleXMLElement Object
        (
            [text] => Kalau soal itu aku kurang paham.
        )

)
 
-----------------------
29-10-2025 23:46:15.23355[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #1 from random tag.
 
-----------------------
29-10-2025 23:46:15.23356[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
29-10-2025 23:46:15.23357[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li> 
-----------------------
29-10-2025 23:46:15.23358[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
29-10-2025 23:46:15.23360[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
29-10-2025 23:46:15.23361[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Hmm, bisa diulangi dengan kalimat lain?</text> 
-----------------------
29-10-2025 23:46:15.23362[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
29-10-2025 23:46:15.23363[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
29-10-2025 23:46:15.23364[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
29-10-2025 23:46:15.23365[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is text 
-----------------------
29-10-2025 23:46:15.23367[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
29-10-2025 23:46:15.23368[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
29-10-2025 23:46:15.23369[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
29-10-2025 23:46:15.23370[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23371[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is li. 
-----------------------
29-10-2025 23:46:15.23372[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
29-10-2025 23:46:15.23373[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
29-10-2025 23:46:15.23374[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
29-10-2025 23:46:15.23375[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23376[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Hmm, bisa diulangi dengan kalimat lain?' for output. 
-----------------------
29-10-2025 23:46:15.23378[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is random 
-----------------------
29-10-2025 23:46:15.23379[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
29-10-2025 23:46:15.23380[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
29-10-2025 23:46:15.23380[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
29-10-2025 23:46:15.23382[4][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23383[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is template. 
-----------------------
29-10-2025 23:46:15.23385[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
29-10-2025 23:46:15.23386[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
29-10-2025 23:46:15.23387[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
29-10-2025 23:46:15.23388[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23390[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Hmm, bisa diulangi dengan kalimat lain? 
-----------------------
29-10-2025 23:46:15.23391[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
29-10-2025 23:46:15.23392[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
29-10-2025 23:46:15.23393[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [that_raw] array 
-----------------------
29-10-2025 23:46:15.23394[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
29-10-2025 23:46:15.23398[2][4] - Elapsed time: 0.038 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [that] array 
-----------------------
29-10-2025 23:46:15.23399[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
29-10-2025 23:46:15.23401[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23402[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
29-10-2025 23:46:15.23404[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HMM BISA DIULANGI DENGAN KALIMAT LAIN' 
-----------------------
29-10-2025 23:46:15.23405[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HMM BISA DIULANGI DENGAN KALIMAT LAIN' 
-----------------------
29-10-2025 23:46:15.23407[2][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [parsed_template] array 
-----------------------
29-10-2025 23:46:15.23408[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
29-10-2025 23:46:15.23410[2][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<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>' to the front of the [template] array 
-----------------------
29-10-2025 23:46:15.23411[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
29-10-2025 23:46:15.23413[2][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
29-10-2025 23:46:15.23414[3][4] - Elapsed time: 0.018 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 ,
      'hello',
      'Hmm, bisa diulangi dengan kalimat lain?',
      5,
      '2f5182fc351d0124cfeb6820ff72e722',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
29-10-2025 23:46:15.23510[4][4] - Elapsed time: 0.958 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
29-10-2025 23:46:15.23531[3][4] - Elapsed time: 0.203 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 
-----------------------
29-10-2025 23:46:15.23555[2][4] - Elapsed time: 0.248 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
29-10-2025 23:46:15.23557[4][4] - Elapsed time: 0.020 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
29-10-2025 23:46:15.23558[2][4] - Elapsed time: 0.012 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
29-10-2025 23:46:15.23561[4][4] - Elapsed time: 0.026 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"2f5182fc351d0124cfeb6820ff72e722","usersay":"hello","botsay":"Hmm, bisa diulangi dengan kalimat lain?","botData":{"convo_id":"2f5182fc351d0124cfeb6820ff72e722","bot_name":"Pedro Salto","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"5","totallines":1,"user_name":"Seeker","rawSay":"hello","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":"366","bot_id":"1","pattern":"*","thatpattern":"","topic":"","filename":"bot.aiml","template":"<random>\n            <li>Maaf, <get name=\"namaku\"\/>, aku nggak ngerti maksud kamu.<\/li>\n            <li>Hmm, bisa diulangi dengan kalimat lain?<\/li>\n            <li>Aku masih belajar nih. Coba tanya yang lain.<\/li>\n            <li>Kalau soal itu aku kurang paham.<\/li>\n        <\/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)"}}} 
-----------------------
29-10-2025 23:46:15.23597[2][4] - Elapsed time: 0.357 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
29-10-2025 23:46:15.23600[0][4] - Elapsed time: 0.030 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 36.673 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => hello
    [conversation] => Array
        (
            [convo_id] => 2f5182fc351d0124cfeb6820ff72e722
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 5
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => hello
            [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] => 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)
                )

        )

    [aiml] => Array
        (
            [user_raw] => hello
            [lookingfor] => HELLO
            [category_id] => 366
            [pattern] => *
            [thatpattern] => 
            [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>
            [html_template] => 
            [topic] => 
            [score] => 252
            [aiml_id] => 366
            [stars] => Array
                (
                    [1] => hello
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Hmm, bisa diulangi dengan kalimat lain?
        )

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

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

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Hmm, bisa diulangi dengan kalimat lain?
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => HMM BISA DIULANGI DENGAN KALIMAT LAIN
                )

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

    [parsed_template] => Array
        (
            [1] => Hmm, bisa diulangi dengan kalimat lain?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <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>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"2f5182fc351d0124cfeb6820ff72e722","usersay":"hello","botsay":"Hmm, bisa diulangi dengan kalimat lain?","botData":{"convo_id":"2f5182fc351d0124cfeb6820ff72e722","bot_name":"Pedro Salto","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"5","totallines":1,"user_name":"Seeker","rawSay":"hello","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":"366","bot_id":"1","pattern":"*","thatpattern":"","topic":"","filename":"bot.aiml","template":"<random>\n            <li>Maaf, <get name=\"namaku\"\/>, aku nggak ngerti maksud kamu.<\/li>\n            <li>Hmm, bisa diulangi dengan kalimat lain?<\/li>\n            <li>Aku masih belajar nih. Coba tanya yang lain.<\/li>\n            <li>Kalau soal itu aku kurang paham.<\/li>\n        <\/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)"}}}
)

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