04-11-2025 14:47:04.97959[0][4] - Elapsed time: 0.934 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 
-----------------------
04-11-2025 14:47:04.97998[4][4] - Elapsed time: 0.393 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
04-11-2025 14:47:04.98028[4][4] - Elapsed time: 0.298 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
04-11-2025 14:47:04.98043[4][4] - Elapsed time: 0.154 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
04-11-2025 14:47:04.98099[4][4] - Elapsed time: 0.555 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
04-11-2025 14:47:04.98101[4][4] - Elapsed time: 0.024 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
04-11-2025 14:47:04.98119[0][4] - Elapsed time: 0.182 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = eaca92224263a7de31bb9ba22113067c 
-----------------------
04-11-2025 14:47:04.98121[4][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'contoh artis jazz'. 
-----------------------
04-11-2025 14:47:04.98123[4][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
04-11-2025 14:47:04.98125[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
04-11-2025 14:47:04.98127[3][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
04-11-2025 14:47:04.98149[1][4] - Elapsed time: 0.220 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: eaca92224263a7de31bb9ba22113067c 
-----------------------
04-11-2025 14:47:04.98151[2][4] - Elapsed time: 0.022 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
04-11-2025 14:47:04.98153[3][4] - Elapsed time: 0.018 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; 
-----------------------
04-11-2025 14:47:04.98178[2][4] - Elapsed time: 0.250 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
04-11-2025 14:47:04.98180[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
04-11-2025 14:47:04.98202[2][4] - Elapsed time: 0.225 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
04-11-2025 14:47:04.98231[3][4] - Elapsed time: 0.285 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #24 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'eaca92224263a7de31bb9ba22113067c'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
04-11-2025 14:47:04.98251[3][4] - Elapsed time: 0.203 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` = 24 AND `bot_id` = 1; 
-----------------------
04-11-2025 14:47:04.98277[2][4] - Elapsed time: 0.258 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
04-11-2025 14:47:04.98280[2][4] - Elapsed time: 0.027 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on contoh. 
-----------------------
04-11-2025 14:47:04.98281[2][4] - Elapsed time: 0.019 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
04-11-2025 14:47:04.98323[2][4] - Elapsed time: 0.416 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
04-11-2025 14:47:04.98326[2][4] - Elapsed time: 0.031 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on artis. 
-----------------------
04-11-2025 14:47:04.98329[2][4] - Elapsed time: 0.031 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
04-11-2025 14:47:04.98332[2][4] - Elapsed time: 0.025 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on jazz. 
-----------------------
04-11-2025 14:47:04.98335[4][4] - Elapsed time: 0.034 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'contoh artis jazz' 
-----------------------
04-11-2025 14:47:04.98338[4][4] - Elapsed time: 0.028 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'CONTOH ARTIS JAZZ' 
-----------------------
04-11-2025 14:47:04.98339[2][4] - Elapsed time: 0.015 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: CONTOH ARTIS JAZZ
Convo id: eaca92224263a7de31bb9ba22113067c
Bot id: 1
Format:  
-----------------------
04-11-2025 14:47:04.98341[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
04-11-2025 14:47:04.98342[2][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
04-11-2025 14:47:04.98344[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 24 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
04-11-2025 14:47:04.98393[4][4] - Elapsed time: 0.488 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
04-11-2025 14:47:04.98431[2][4] - Elapsed time: 0.381 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
04-11-2025 14:47:04.98433[3][4] - Elapsed time: 0.025 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
04-11-2025 14:47:04.98455[4][4] - Elapsed time: 0.219 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
04-11-2025 14:47:04.98458[0][4] - Elapsed time: 0.026 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
04-11-2025 14:47:04.98459[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
04-11-2025 14:47:04.98460[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][235]
Say = CONTOH ARTIS JAZZ: raw say = contoh artis jazz 
-----------------------
04-11-2025 14:47:04.98462[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
04-11-2025 14:47:04.98463[2][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'CONTOH ARTIS JAZZ' to the front of the [user_say] array 
-----------------------
04-11-2025 14:47:04.98465[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
04-11-2025 14:47:04.98467[0][4] - Elapsed time: 0.025 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = contoh artis jazz, RAW say = contoh artis jazz 
-----------------------
04-11-2025 14:47:04.98469[2][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'contoh artis jazz' to the front of the [input] array 
-----------------------
04-11-2025 14:47:04.98470[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
04-11-2025 14:47:04.98472[4][4] - Elapsed time: 0.019 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
04-11-2025 14:47:04.98473[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'CONTOH ARTIS JAZZ' 
-----------------------
04-11-2025 14:47:04.98475[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'CONTOH ARTIS JAZZ' 
-----------------------
04-11-2025 14:47:04.98476[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
04-11-2025 14:47:04.98501[4][4] - Elapsed time: 0.252 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
04-11-2025 14:47:04.98505[3][4] - Elapsed time: 0.038 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` = 'eaca92224263a7de31bb9ba22113067c'
    AND (
        'CONTOH ARTIS JAZZ' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:47:04.98527[2][4] - Elapsed time: 0.221 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
04-11-2025 14:47:04.98529[4][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
04-11-2025 14:47:04.98531[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
04-11-2025 14:47:04.98552[4][4] - Elapsed time: 0.212 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
04-11-2025 14:47:04.98555[3][4] - Elapsed time: 0.029 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 (
        'CONTOH ARTIS JAZZ' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:47:04.98587[3][4] - Elapsed time: 0.319 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
04-11-2025 14:47:04.98589[2][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
04-11-2025 14:47:04.98613[4][4] - Elapsed time: 0.248 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
04-11-2025 14:47:04.98615[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 'CONTOH ARTIS JAZZ' 
-----------------------
04-11-2025 14:47:04.98637[4][4] - Elapsed time: 0.216 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
04-11-2025 14:47:04.98639[4][4] - Elapsed time: 0.021 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 14:47:04.98662[4][4] - Elapsed time: 0.230 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)
        )

)
 
-----------------------
04-11-2025 14:47:04.98664[2][4] - Elapsed time: 0.020 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)
        )

)

 
-----------------------
04-11-2025 14:47:04.98678[4][4] - Elapsed time: 0.144 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)
)
 
-----------------------
04-11-2025 14:47:04.98680[2][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
04-11-2025 14:47:04.98682[4][4] - Elapsed time: 0.027 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
04-11-2025 14:47:04.98684[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' 
-----------------------
04-11-2025 14:47:04.98721[2][4] - Elapsed time: 0.370 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
04-11-2025 14:47:04.98723[1][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'CONTOH ARTIS JAZZ' to the unknown_inputs table. 
-----------------------
04-11-2025 14:47:04.98725[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:366 (*) 
-----------------------
04-11-2025 14:47:04.98727[3][4] - Elapsed time: 0.021 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
04-11-2025 14:47:04.98728[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
04-11-2025 14:47:04.98729[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
04-11-2025 14:47:04.98731[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching contoh artis jazz for a match. 
-----------------------
04-11-2025 14:47:04.98737[2][4] - Elapsed time: 0.057 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => contoh artis jazz
        )

    [1] => Array
        (
            [0] => contoh artis jazz
        )

)
 
-----------------------
04-11-2025 14:47:04.98738[2][4] - Elapsed time: 0.019 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'contoh artis jazz' to the stars stack. 
-----------------------
04-11-2025 14:47:04.98740[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => contoh artis jazz
)
 
-----------------------
04-11-2025 14:47:04.98741[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 14:47:04.98742[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 14:47:04.98744[2][4] - Elapsed time: 0.020 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 366
    [category_id] => 366
    [html_template] => 
    [lookingfor] => CONTOH ARTIS JAZZ
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => contoh artis jazz
        )

    [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] => contoh artis jazz
)
 
-----------------------
04-11-2025 14:47:04.98746[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
04-11-2025 14:47:04.98747[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
04-11-2025 14:47:04.98750[4][4] - Elapsed time: 0.028 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> 
-----------------------
04-11-2025 14:47:04.98758[2][4] - Elapsed time: 0.079 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:04.98764[4][4] - Elapsed time: 0.058 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>
 
-----------------------
04-11-2025 14:47:04.98766[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
04-11-2025 14:47:04.98767[2][4] - Elapsed time: 0.019 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:04.98771[4][4] - Elapsed time: 0.034 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> 
-----------------------
04-11-2025 14:47:04.98772[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
04-11-2025 14:47:04.98774[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
04-11-2025 14:47:04.98775[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
04-11-2025 14:47:04.98781[4][4] - Elapsed time: 0.060 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.
        )

)
 
-----------------------
04-11-2025 14:47:04.98782[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #3 from random tag.
 
-----------------------
04-11-2025 14:47:04.98783[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:04.98786[4][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Kalau soal itu aku kurang paham.</text></li> 
-----------------------
04-11-2025 14:47:04.98787[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
04-11-2025 14:47:04.98789[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:04.98791[4][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Kalau soal itu aku kurang paham.</text> 
-----------------------
04-11-2025 14:47:04.98792[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
04-11-2025 14:47:04.98793[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
04-11-2025 14:47:04.98794[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 14:47:04.98796[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is text 
-----------------------
04-11-2025 14:47:04.98797[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:04.98798[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
04-11-2025 14:47:04.98799[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:04.98801[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98802[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is li. 
-----------------------
04-11-2025 14:47:04.98804[2][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:04.98805[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
04-11-2025 14:47:04.98806[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:04.98808[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98809[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Kalau soal itu aku kurang paham.' for output. 
-----------------------
04-11-2025 14:47:04.98810[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is random 
-----------------------
04-11-2025 14:47:04.98811[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:04.98812[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
04-11-2025 14:47:04.98813[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:04.98814[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98816[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is template. 
-----------------------
04-11-2025 14:47:04.98817[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:04.98818[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
04-11-2025 14:47:04.98819[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:04.98821[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98822[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Kalau soal itu aku kurang paham. 
-----------------------
04-11-2025 14:47:04.98824[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
04-11-2025 14:47:04.98825[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
04-11-2025 14:47:04.98826[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [that_raw] array 
-----------------------
04-11-2025 14:47:04.98827[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
04-11-2025 14:47:04.98832[2][4] - Elapsed time: 0.045 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [that] array 
-----------------------
04-11-2025 14:47:04.98834[4][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
04-11-2025 14:47:04.98836[4][4] - Elapsed time: 0.024 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98838[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Kalau soal itu aku kurang paham.' 
-----------------------
04-11-2025 14:47:04.98840[4][4] - Elapsed time: 0.020 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'KALAU SOAL ITU AKU KURANG PAHAM' 
-----------------------
04-11-2025 14:47:04.98841[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'KALAU SOAL ITU AKU KURANG PAHAM' 
-----------------------
04-11-2025 14:47:04.98843[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [parsed_template] array 
-----------------------
04-11-2025 14:47:04.98845[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
04-11-2025 14:47:04.98846[2][4] - Elapsed time: 0.019 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 
-----------------------
04-11-2025 14:47:04.98848[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
04-11-2025 14:47:04.98850[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
04-11-2025 14:47:04.98852[3][4] - Elapsed time: 0.022 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 ,
      'contoh artis jazz',
      'Kalau soal itu aku kurang paham.',
      24,
      'eaca92224263a7de31bb9ba22113067c',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
04-11-2025 14:47:04.98964[4][4] - Elapsed time: 1.117 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
04-11-2025 14:47:04.98984[3][4] - Elapsed time: 0.197 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 
-----------------------
04-11-2025 14:47:04.99009[2][4] - Elapsed time: 0.250 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
04-11-2025 14:47:04.99011[4][4] - Elapsed time: 0.020 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
04-11-2025 14:47:04.99012[2][4] - Elapsed time: 0.016 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
04-11-2025 14:47:04.99014[4][4] - Elapsed time: 0.018 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"eaca92224263a7de31bb9ba22113067c","usersay":"contoh artis jazz","botsay":"Kalau soal itu aku kurang paham.","botData":{"convo_id":"eaca92224263a7de31bb9ba22113067c","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"24","totallines":1,"user_name":"Seeker","rawSay":"contoh artis jazz","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)"}}} 
-----------------------
04-11-2025 14:47:04.99035[2][4] - Elapsed time: 0.204 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
04-11-2025 14:47:04.99038[0][4] - Elapsed time: 0.035 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 11.708 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => contoh artis jazz
    [conversation] => Array
        (
            [convo_id] => eaca92224263a7de31bb9ba22113067c
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 24
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => contoh artis jazz
            [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] => contoh artis jazz
            [lookingfor] => CONTOH ARTIS JAZZ
            [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] => contoh artis jazz
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Kalau soal itu aku kurang paham.
        )

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

    [time_start] => 1762242424.9787
    [user_say] => Array
        (
            [1] => CONTOH ARTIS JAZZ
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Kalau soal itu aku kurang paham.
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => KALAU SOAL ITU AKU KURANG PAHAM
                )

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

    [parsed_template] => Array
        (
            [1] => Kalau soal itu aku kurang paham.
            [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":"eaca92224263a7de31bb9ba22113067c","usersay":"contoh artis jazz","botsay":"Kalau soal itu aku kurang paham.","botData":{"convo_id":"eaca92224263a7de31bb9ba22113067c","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"24","totallines":1,"user_name":"Seeker","rawSay":"contoh artis jazz","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: 11.708 Milliseconds. Goodbye.