10-11-2025 10:03:11.93528[0][4] - Elapsed time: 4.890 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:03:11.93555[4][4] - Elapsed time: 0.266 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 10:03:11.93575[4][4] - Elapsed time: 0.203 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 10:03:11.93584[4][4] - Elapsed time: 0.096 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 10:03:11.93624[4][4] - Elapsed time: 0.394 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 10:03:11.93625[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 10:03:11.93638[0][4] - Elapsed time: 0.131 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 9166f77b0b8d7006b430311d960e750e 
-----------------------
10-11-2025 10:03:11.93639[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'apa itu si'. 
-----------------------
10-11-2025 10:03:11.93641[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 10:03:11.93642[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 10:03:11.93642[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:03:11.93681[1][4] - Elapsed time: 0.389 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 9166f77b0b8d7006b430311d960e750e 
-----------------------
10-11-2025 10:03:11.93683[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 10:03:11.93683[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:03:11.93724[2][4] - Elapsed time: 0.402 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 10:03:11.93725[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:03:11.93761[2][4] - Elapsed time: 0.365 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 10:03:11.93787[3][4] - Elapsed time: 0.254 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #60 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '9166f77b0b8d7006b430311d960e750e'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 10:03:11.93816[3][4] - Elapsed time: 0.295 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` = 60 AND `bot_id` = 1; 
-----------------------
10-11-2025 10:03:11.93841[2][4] - Elapsed time: 0.248 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 10:03:11.93847[2][4] - Elapsed time: 0.056 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on apa. 
-----------------------
10-11-2025 10:03:11.93848[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:03:11.93897[2][4] - Elapsed time: 0.493 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 10:03:11.93899[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on itu. 
-----------------------
10-11-2025 10:03:11.93900[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 10:03:11.93901[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on si. 
-----------------------
10-11-2025 10:03:11.93903[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'apa itu si' 
-----------------------
10-11-2025 10:03:11.93917[4][4] - Elapsed time: 0.144 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'APA ITU SI' 
-----------------------
10-11-2025 10:03:11.93918[2][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: APA ITU SI
Convo id: 9166f77b0b8d7006b430311d960e750e
Bot id: 1
Format:  
-----------------------
10-11-2025 10:03:11.93919[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 10:03:11.93920[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 10:03:11.93921[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 60 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 10:03:11.93998[4][4] - Elapsed time: 0.772 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 10:03:11.94043[2][4] - Elapsed time: 0.455 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 10:03:11.94045[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:03:11.94065[4][4] - Elapsed time: 0.206 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 10:03:11.94067[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 10:03:11.94067[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 10:03:11.94068[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][235]
Say = APA ITU SI: raw say = apa itu si 
-----------------------
10-11-2025 10:03:11.94068[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 10:03:11.94069[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'APA ITU SI' to the front of the [user_say] array 
-----------------------
10-11-2025 10:03:11.94072[4][4] - Elapsed time: 0.030 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 10:03:11.94074[0][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = apa itu si, RAW say = apa itu si 
-----------------------
10-11-2025 10:03:11.94074[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'apa itu si' to the front of the [input] array 
-----------------------
10-11-2025 10:03:11.94075[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 10:03:11.94076[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 10:03:11.94076[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'APA ITU SI' 
-----------------------
10-11-2025 10:03:11.94077[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'APA ITU SI' 
-----------------------
10-11-2025 10:03:11.94078[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 10:03:11.94101[4][4] - Elapsed time: 0.232 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 10:03:11.94103[3][4] - Elapsed time: 0.017 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` = '9166f77b0b8d7006b430311d960e750e'
    AND (
        'APA ITU SI' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:03:11.94138[2][4] - Elapsed time: 0.355 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 10:03:11.94140[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 10:03:11.94140[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 10:03:11.94163[4][4] - Elapsed time: 0.231 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 10:03:11.94165[3][4] - Elapsed time: 0.020 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 (
        'APA ITU SI' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:03:11.94198[3][4] - Elapsed time: 0.323 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 10:03:11.94198[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
10-11-2025 10:03:11.94223[4][4] - Elapsed time: 0.243 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
10-11-2025 10:03:11.94224[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 'APA ITU SI' 
-----------------------
10-11-2025 10:03:11.94241[4][4] - Elapsed time: 0.176 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
10-11-2025 10:03:11.94243[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 10:03:11.94267[4][4] - Elapsed time: 0.243 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)
        )

)
 
-----------------------
10-11-2025 10:03:11.94269[2][4] - Elapsed time: 0.018 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)
        )

)

 
-----------------------
10-11-2025 10:03:11.94298[4][4] - Elapsed time: 0.296 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)
)
 
-----------------------
10-11-2025 10:03:11.94299[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 10:03:11.94301[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
10-11-2025 10:03:11.94302[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
10-11-2025 10:03:11.94360[2][4] - Elapsed time: 0.585 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
10-11-2025 10:03:11.94361[1][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'APA ITU SI' to the unknown_inputs table. 
-----------------------
10-11-2025 10:03:11.94362[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:366 (*) 
-----------------------
10-11-2025 10:03:11.94363[3][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 10:03:11.94363[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
10-11-2025 10:03:11.94364[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
10-11-2025 10:03:11.94365[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching apa itu si for a match. 
-----------------------
10-11-2025 10:03:11.94368[2][4] - Elapsed time: 0.029 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => apa itu si
        )

    [1] => Array
        (
            [0] => apa itu si
        )

)
 
-----------------------
10-11-2025 10:03:11.94368[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'apa itu si' to the stars stack. 
-----------------------
10-11-2025 10:03:11.94369[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => apa itu si
)
 
-----------------------
10-11-2025 10:03:11.94370[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 10:03:11.94370[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 10:03:11.94371[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 366
    [category_id] => 366
    [html_template] => 
    [lookingfor] => APA ITU SI
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => apa itu si
        )

    [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] => apa itu si
)
 
-----------------------
10-11-2025 10:03:11.94372[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 10:03:11.94373[2][4] - Elapsed time: 0.009 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:03:11.94379[4][4] - Elapsed time: 0.059 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> 
-----------------------
10-11-2025 10:03:11.94392[2][4] - Elapsed time: 0.133 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:03:11.94398[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>
 
-----------------------
10-11-2025 10:03:11.94399[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:03:11.94401[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:03:11.94403[4][4] - Elapsed time: 0.021 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> 
-----------------------
10-11-2025 10:03:11.94404[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
10-11-2025 10:03:11.94405[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
10-11-2025 10:03:11.94405[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
10-11-2025 10:03:11.94410[4][4] - Elapsed time: 0.053 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.
        )

)
 
-----------------------
10-11-2025 10:03:11.94411[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #3 from random tag.
 
-----------------------
10-11-2025 10:03:11.94412[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:03:11.94413[4][4] - Elapsed time: 0.009 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> 
-----------------------
10-11-2025 10:03:11.94413[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 10:03:11.94414[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:03:11.94415[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Kalau soal itu aku kurang paham.</text> 
-----------------------
10-11-2025 10:03:11.94416[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:03:11.94416[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:03:11.94417[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 10:03:11.94418[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is text 
-----------------------
10-11-2025 10:03:11.94418[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:03:11.94419[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
10-11-2025 10:03:11.94419[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:03:11.94420[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94421[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is li. 
-----------------------
10-11-2025 10:03:11.94421[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:03:11.94423[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
10-11-2025 10:03:11.94423[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:03:11.94424[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94424[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Kalau soal itu aku kurang paham.' for output. 
-----------------------
10-11-2025 10:03:11.94425[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is random 
-----------------------
10-11-2025 10:03:11.94426[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:03:11.94426[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
10-11-2025 10:03:11.94426[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 10:03:11.94427[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94427[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Kalau soal itu aku kurang paham.' to the response array. tag name is template. 
-----------------------
10-11-2025 10:03:11.94428[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:03:11.94429[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Kalau soal itu aku kurang paham.
)

 
-----------------------
10-11-2025 10:03:11.94429[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:03:11.94430[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94431[4][4] - Elapsed time: 0.008 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. 
-----------------------
10-11-2025 10:03:11.94432[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 10:03:11.94432[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:03:11.94433[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [that_raw] array 
-----------------------
10-11-2025 10:03:11.94434[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 10:03:11.94441[2][4] - Elapsed time: 0.071 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [that] array 
-----------------------
10-11-2025 10:03:11.94442[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 10:03:11.94443[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94444[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Kalau soal itu aku kurang paham.' 
-----------------------
10-11-2025 10:03:11.94445[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'KALAU SOAL ITU AKU KURANG PAHAM' 
-----------------------
10-11-2025 10:03:11.94445[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'KALAU SOAL ITU AKU KURANG PAHAM' 
-----------------------
10-11-2025 10:03:11.94446[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Kalau soal itu aku kurang paham.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 10:03:11.94447[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 10:03:11.94448[2][4] - Elapsed time: 0.008 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 
-----------------------
10-11-2025 10:03:11.94448[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 10:03:11.94449[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 10:03:11.94451[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 ,
      'apa itu si',
      'Kalau soal itu aku kurang paham.',
      60,
      '9166f77b0b8d7006b430311d960e750e',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 10:03:11.94587[4][4] - Elapsed time: 1.361 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 10:03:11.94606[3][4] - Elapsed time: 0.194 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:03:11.94632[2][4] - Elapsed time: 0.258 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 10:03:11.94633[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 10:03:11.94634[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 10:03:11.94636[4][4] - Elapsed time: 0.028 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"9166f77b0b8d7006b430311d960e750e","usersay":"apa itu si","botsay":"Kalau soal itu aku kurang paham.","botData":{"convo_id":"9166f77b0b8d7006b430311d960e750e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"60","totallines":1,"user_name":"Seeker","rawSay":"apa itu si","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)"}}} 
-----------------------
10-11-2025 10:03:11.94673[2][4] - Elapsed time: 0.368 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 10:03:11.94677[0][4] - Elapsed time: 0.039 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 16.352 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => apa itu si
    [conversation] => Array
        (
            [convo_id] => 9166f77b0b8d7006b430311d960e750e
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 60
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => apa itu si
            [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] => apa itu si
            [lookingfor] => APA ITU SI
            [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] => apa itu si
                )

            [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] => 1762743791.9304
    [user_say] => Array
        (
            [1] => APA ITU SI
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [input] => Array
        (
            [1] => apa itu si
            [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":"9166f77b0b8d7006b430311d960e750e","usersay":"apa itu si","botsay":"Kalau soal itu aku kurang paham.","botData":{"convo_id":"9166f77b0b8d7006b430311d960e750e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"60","totallines":1,"user_name":"Seeker","rawSay":"apa itu si","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: 16.352 Milliseconds. Goodbye.