10-11-2025 20:53:53.20971[0][4] - Elapsed time: 5.676 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 20:53:53.20998[4][4] - Elapsed time: 0.268 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 20:53:53.21017[4][4] - Elapsed time: 0.189 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 20:53:53.21027[4][4] - Elapsed time: 0.105 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 20:53:53.21070[4][4] - Elapsed time: 0.422 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 20:53:53.21071[4][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 20:53:53.21089[0][4] - Elapsed time: 0.176 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 6b77881c2d46055435402b008fad4a53 
-----------------------
10-11-2025 20:53:53.21091[4][4] - Elapsed time: 0.016 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'HELLO'. 
-----------------------
10-11-2025 20:53:53.21094[4][4] - Elapsed time: 0.034 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 20:53:53.21096[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 20:53:53.21097[3][4] - Elapsed time: 0.016 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 20:53:53.21148[1][4] - Elapsed time: 0.509 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 6b77881c2d46055435402b008fad4a53 
-----------------------
10-11-2025 20:53:53.21150[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 20:53:53.21152[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; 
-----------------------
10-11-2025 20:53:53.21197[2][4] - Elapsed time: 0.454 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 20:53:53.21199[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 20:53:53.21242[2][4] - Elapsed time: 0.426 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 20:53:53.21270[3][4] - Elapsed time: 0.283 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #137 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '6b77881c2d46055435402b008fad4a53'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 20:53:53.21304[3][4] - Elapsed time: 0.336 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` = 137 AND `bot_id` = 1; 
-----------------------
10-11-2025 20:53:53.21332[2][4] - Elapsed time: 0.287 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 20:53:53.21341[2][4] - Elapsed time: 0.086 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on HELLO. 
-----------------------
10-11-2025 20:53:53.21343[2][4] - Elapsed time: 0.023 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 20:53:53.21408[4][4] - Elapsed time: 0.642 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
10-11-2025 20:53:53.21433[4][4] - Elapsed time: 0.260 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
10-11-2025 20:53:53.21436[2][4] - Elapsed time: 0.021 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: 6b77881c2d46055435402b008fad4a53
Bot id: 1
Format:  
-----------------------
10-11-2025 20:53:53.21437[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 20:53:53.21438[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 20:53:53.21440[3][4] - Elapsed time: 0.018 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` = 137 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 20:53:53.21544[4][4] - Elapsed time: 1.043 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 20:53:53.21616[2][4] - Elapsed time: 0.717 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 20:53:53.21618[3][4] - Elapsed time: 0.022 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
10-11-2025 20:53:53.21643[4][4] - Elapsed time: 0.243 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 20:53:53.21645[0][4] - Elapsed time: 0.023 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 20:53:53.21646[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 20:53:53.21647[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = HELLO 
-----------------------
10-11-2025 20:53:53.21648[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 20:53:53.21650[2][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
10-11-2025 20:53:53.21654[4][4] - Elapsed time: 0.046 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 20:53:53.21657[0][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = HELLO, RAW say = HELLO 
-----------------------
10-11-2025 20:53:53.21658[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
10-11-2025 20:53:53.21659[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 20:53:53.21661[4][4] - Elapsed time: 0.019 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 20:53:53.21662[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
10-11-2025 20:53:53.21664[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
10-11-2025 20:53:53.21665[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 20:53:53.21692[4][4] - Elapsed time: 0.271 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 20:53:53.21695[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` = '6b77881c2d46055435402b008fad4a53'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 20:53:53.21736[2][4] - Elapsed time: 0.413 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 20:53:53.21738[4][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 20:53:53.21739[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 20:53:53.21767[4][4] - Elapsed time: 0.277 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 20:53:53.21770[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; 
-----------------------
10-11-2025 20:53:53.21820[3][4] - Elapsed time: 0.500 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 20:53:53.21822[2][4] - Elapsed time: 0.026 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
10-11-2025 20:53:53.21851[4][4] - Elapsed time: 0.289 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
10-11-2025 20:53:53.21853[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' 
-----------------------
10-11-2025 20:53:53.21865[4][4] - Elapsed time: 0.125 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 20:53:53.21867[4][4] - Elapsed time: 0.019 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 20:53:53.21897[4][4] - Elapsed time: 0.295 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1242
            [bot_id] => 1
            [pattern] => HELLO
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <srai>HALO</srai>
            [score] => 260
            [current_that] => 
            [aiml_id] => 1242
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hello (2 points)
        )

    [1] => Array
        (
            [id] => 1190
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Maaf, saya kurang memahami pertanyaan Anda.
        Bisakah Anda mengatakannya dengan cara lain?</li>
        <li>Hmm, saya belum mengerti maksud Anda.
        Bisa dijelaskan lebih detail?</li>
        <li>Maaf, saya masih belajar.
        Bisakah Anda bertanya dengan kalimat yang berbeda?</li>
        <li>Saya belum dapat memproses itu.
        Coba tanyakan hal lain atau gunakan kata-kata yang lebih sederhana.</li>
      </random>
            [score] => 252
            [current_that] => 
            [aiml_id] => 1190
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 20:53:53.21900[2][4] - Elapsed time: 0.028 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1242
            [bot_id] => 1
            [pattern] => HELLO
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <srai>HALO</srai>
            [score] => 260
            [current_that] => 
            [aiml_id] => 1242
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hello (2 points)
        )

)

 
-----------------------
10-11-2025 20:53:53.21941[4][4] - Elapsed time: 0.415 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1242
    [bot_id] => 1
    [pattern] => HELLO
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <srai>HALO</srai>
    [score] => 260
    [current_that] => 
    [aiml_id] => 1242
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hello (2 points)
)
 
-----------------------
10-11-2025 20:53:53.21943[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 20:53:53.21945[4][4] - Elapsed time: 0.025 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1242 (HELLO) 
-----------------------
10-11-2025 20:53:53.21947[3][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 20:53:53.21948[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
10-11-2025 20:53:53.21949[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 20:53:53.21950[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 20:53:53.21952[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1242
    [category_id] => 1242
    [html_template] => 
    [lookingfor] => HELLO
    [pattern] => HELLO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => <srai>HALO</srai>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => HELLO
)
 
-----------------------
10-11-2025 20:53:53.21954[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 20:53:53.21956[2][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 20:53:53.21964[4][4] - Elapsed time: 0.082 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HALO</text></srai></template> 
-----------------------
10-11-2025 20:53:53.21983[2][4] - Elapsed time: 0.194 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.21989[4][4] - Elapsed time: 0.059 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><srai><text>HALO</text></srai></template>
 
-----------------------
10-11-2025 20:53:53.21991[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 20:53:53.21994[2][4] - Elapsed time: 0.030 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.21997[4][4] - Elapsed time: 0.028 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HALO</text></srai> 
-----------------------
10-11-2025 20:53:53.21999[4][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
10-11-2025 20:53:53.22000[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
10-11-2025 20:53:53.22001[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
10-11-2025 20:53:53.22003[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
10-11-2025 20:53:53.22004[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.22006[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HALO</text> 
-----------------------
10-11-2025 20:53:53.22007[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 20:53:53.22008[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 20:53:53.22009[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 20:53:53.22010[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HALO' to the response array. tag name is text 
-----------------------
10-11-2025 20:53:53.22012[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:53:53.22013[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HALO
        )

)

 
-----------------------
10-11-2025 20:53:53.22014[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22015[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 20:53:53.22016[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => HALO
)

 
-----------------------
10-11-2025 20:53:53.22017[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22019[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HALO' 
-----------------------
10-11-2025 20:53:53.22020[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HALO. 
-----------------------
10-11-2025 20:53:53.22021[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
10-11-2025 20:53:53.22023[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 20:53:53.22024[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 20:53:53.22026[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1242
    [category_id] => 1242
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HELLO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => <srai>HALO</srai>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => HELLO
)
 
-----------------------
10-11-2025 20:53:53.22027[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HALO'. 
-----------------------
10-11-2025 20:53:53.22028[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
10-11-2025 20:53:53.22029[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
10-11-2025 20:53:53.22030[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][run_srai][431]
lookup SQL = select `template_id` from `siew8359_dannu`.`srai_lookup` where `pattern` like '%HALO%' and ( bot_id = 1 ); 
-----------------------
10-11-2025 20:53:53.22071[2][4] - Elapsed time: 0.400 milliseconds
[parse_aiml.php][run_srai][433]
Result = Array
(
    [0] => Array
        (
            [template_id] => 422
        )

    [1] => Array
        (
            [template_id] => 468
        )

    [2] => Array
        (
            [template_id] => 617
        )

    [3] => Array
        (
            [template_id] => 933
        )

    [4] => Array
        (
            [template_id] => 933
        )

    [5] => Array
        (
            [template_id] => 933
        )

    [6] => Array
        (
            [template_id] => 1244
        )

    [7] => Array
        (
            [template_id] => 1244
        )

    [8] => Array
        (
            [template_id] => 1244
        )

    [9] => Array
        (
            [template_id] => 1244
        )

    [10] => Array
        (
            [template_id] => 1244
        )

    [11] => Array
        (
            [template_id] => 1244
        )

    [12] => Array
        (
            [template_id] => 1244
        )

    [13] => Array
        (
            [template_id] => 1244
        )

    [14] => Array
        (
            [template_id] => 1244
        )

    [15] => Array
        (
            [template_id] => 1244
        )

    [16] => Array
        (
            [template_id] => 1244
        )

)
 
-----------------------
10-11-2025 20:53:53.22073[2][4] - Elapsed time: 0.020 milliseconds
[parse_aiml.php][run_srai][438]
Found 17 rows in lookup table: Array
(
    [0] => Array
        (
            [template_id] => 422
        )

    [1] => Array
        (
            [template_id] => 468
        )

    [2] => Array
        (
            [template_id] => 617
        )

    [3] => Array
        (
            [template_id] => 933
        )

    [4] => Array
        (
            [template_id] => 933
        )

    [5] => Array
        (
            [template_id] => 933
        )

    [6] => Array
        (
            [template_id] => 1244
        )

    [7] => Array
        (
            [template_id] => 1244
        )

    [8] => Array
        (
            [template_id] => 1244
        )

    [9] => Array
        (
            [template_id] => 1244
        )

    [10] => Array
        (
            [template_id] => 1244
        )

    [11] => Array
        (
            [template_id] => 1244
        )

    [12] => Array
        (
            [template_id] => 1244
        )

    [13] => Array
        (
            [template_id] => 1244
        )

    [14] => Array
        (
            [template_id] => 1244
        )

    [15] => Array
        (
            [template_id] => 1244
        )

    [16] => Array
        (
            [template_id] => 1244
        )

)
 
-----------------------
10-11-2025 20:53:53.22074[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 422. 
-----------------------
10-11-2025 20:53:53.22091[2][4] - Elapsed time: 0.178 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 422:  
-----------------------
10-11-2025 20:53:53.22093[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][run_srai][466]
Nothing found in the SRAI lookup table. Looking for a direct pattern match for 'HALO'. 
-----------------------
10-11-2025 20:53:53.22094[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][run_srai][473]
lookup SQL = SELECT `id`, `pattern`, `thatpattern`, `topic` FROM `siew8359_dannu`.`aiml` where `pattern` like '%HALO%' and  bot_id = 1  order by `id` asc; 
-----------------------
10-11-2025 20:53:53.22123[2][4] - Elapsed time: 0.286 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
10-11-2025 20:53:53.22125[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
10-11-2025 20:53:53.22126[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
10-11-2025 20:53:53.22153[4][4] - Elapsed time: 0.276 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
10-11-2025 20:53:53.22155[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 'HALO' 
-----------------------
10-11-2025 20:53:53.22161[4][4] - Elapsed time: 0.065 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
10-11-2025 20:53:53.22163[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 20:53:53.22190[4][4] - Elapsed time: 0.272 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [aiml_id] => 1244
            [score] => 260
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)
 
-----------------------
10-11-2025 20:53:53.22192[2][4] - Elapsed time: 0.022 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [aiml_id] => 1244
            [score] => 260
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)

 
-----------------------
10-11-2025 20:53:53.22206[4][4] - Elapsed time: 0.141 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1244
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [aiml_id] => 1244
    [score] => 260
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
)
 
-----------------------
10-11-2025 20:53:53.22208[2][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 20:53:53.22232[2][4] - Elapsed time: 0.240 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 20:53:53.22235[4][4] - Elapsed time: 0.030 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template> 
-----------------------
10-11-2025 20:53:53.22240[2][4] - Elapsed time: 0.050 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.22244[4][4] - Elapsed time: 0.041 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template>
 
-----------------------
10-11-2025 20:53:53.22245[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 20:53:53.22247[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.22250[4][4] - Elapsed time: 0.026 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random> 
-----------------------
10-11-2025 20:53:53.22251[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
10-11-2025 20:53:53.22252[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
10-11-2025 20:53:53.22253[2][4] - Elapsed time: 0.011 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 20:53:53.22261[4][4] - Elapsed time: 0.084 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?
        )

    [3] => SimpleXMLElement Object
        (
            [text] => Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.
        )

)
 
-----------------------
10-11-2025 20:53:53.22263[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #3 from random tag.
 
-----------------------
10-11-2025 20:53:53.22264[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.22266[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li> 
-----------------------
10-11-2025 20:53:53.22267[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 20:53:53.22268[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:53:53.22270[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text> 
-----------------------
10-11-2025 20:53:53.22271[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 20:53:53.22272[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 20:53:53.22273[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 20:53:53.22274[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.' to the response array. tag name is text 
-----------------------
10-11-2025 20:53:53.22275[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 20:53:53.22277[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22278[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22279[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu.    Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22280[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Selamat datang! Saya di sini untuk membantu.    Silakan tanyakan apa saja.' to the response array. tag name is li. 
-----------------------
10-11-2025 20:53:53.22281[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:53:53.22282[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu.    Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22283[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22285[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu.  Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22286[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Selamat datang! Saya di sini untuk membantu.  Silakan tanyakan apa saja.' for output. 
-----------------------
10-11-2025 20:53:53.22287[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu.  Silakan tanyakan apa saja.' to the response array. tag name is random 
-----------------------
10-11-2025 20:53:53.22288[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 20:53:53.22289[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu.  Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22290[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22291[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22292[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is template. 
-----------------------
10-11-2025 20:53:53.22293[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:53:53.22295[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22296[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22297[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22329[1][4] - Elapsed time: 0.323 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HALO'. 
-----------------------
10-11-2025 20:53:53.22331[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
10-11-2025 20:53:53.22333[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
10-11-2025 20:53:53.22334[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 20:53:53.22335[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
 
-----------------------
10-11-2025 20:53:53.22336[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is srai 
-----------------------
10-11-2025 20:53:53.22337[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 20:53:53.22338[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22339[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22340[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22341[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is template. 
-----------------------
10-11-2025 20:53:53.22342[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:53:53.22343[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 20:53:53.22344[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:53:53.22345[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22347[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: Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja. 
-----------------------
10-11-2025 20:53:53.22348[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 20:53:53.22349[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 20:53:53.22350[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [that_raw] array 
-----------------------
10-11-2025 20:53:53.22351[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 20:53:53.22363[2][4] - Elapsed time: 0.112 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [that] array 
-----------------------
10-11-2025 20:53:53.22365[4][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 20:53:53.22367[4][4] - Elapsed time: 0.024 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang!' 
-----------------------
10-11-2025 20:53:53.22368[4][4] - Elapsed time: 0.013 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang!' 
-----------------------
10-11-2025 20:53:53.22370[4][4] - Elapsed time: 0.018 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG' 
-----------------------
10-11-2025 20:53:53.22371[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG' 
-----------------------
10-11-2025 20:53:53.22372[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Saya di sini untuk membantu.' 
-----------------------
10-11-2025 20:53:53.22373[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Saya di sini untuk membantu.' 
-----------------------
10-11-2025 20:53:53.22375[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SAYA DI SINI UNTUK MEMBANTU' 
-----------------------
10-11-2025 20:53:53.22376[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SAYA DI SINI UNTUK MEMBANTU' 
-----------------------
10-11-2025 20:53:53.22377[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22378[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 20:53:53.22379[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SILAKAN TANYAKAN APA SAJA' 
-----------------------
10-11-2025 20:53:53.22380[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SILAKAN TANYAKAN APA SAJA' 
-----------------------
10-11-2025 20:53:53.22382[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 20:53:53.22383[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 20:53:53.22385[2][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai>HALO</srai>' to the front of the [template] array 
-----------------------
10-11-2025 20:53:53.22386[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 20:53:53.22388[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 20:53:53.22390[3][4] - Elapsed time: 0.021 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',
      'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.',
      137,
      '6b77881c2d46055435402b008fad4a53',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 20:53:53.22707[4][4] - Elapsed time: 3.165 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 20:53:53.22736[3][4] - Elapsed time: 0.294 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 20:53:53.22781[2][4] - Elapsed time: 0.450 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 20:53:53.22783[4][4] - Elapsed time: 0.021 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 20:53:53.22785[2][4] - Elapsed time: 0.013 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 20:53:53.22789[4][4] - Elapsed time: 0.045 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"6b77881c2d46055435402b008fad4a53","usersay":"HELLO","botsay":"Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.","botData":{"convo_id":"6b77881c2d46055435402b008fad4a53","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"137","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":"1244","pattern":"HALO","thatpattern":"","topic":"","aiml_id":"1244","score":260,"track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}} 
-----------------------
10-11-2025 20:53:53.22856[2][4] - Elapsed time: 0.671 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 20:53:53.22863[0][4] - Elapsed time: 0.064 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 24.545 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => HELLO
    [conversation] => Array
        (
            [convo_id] => 6b77881c2d46055435402b008fad4a53
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 137
            [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] => 1244
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [aiml_id] => 1244
                    [score] => 260
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => HELLO
            [lookingfor] => HELLO
            [category_id] => 1242
            [pattern] => HELLO
            [thatpattern] => 
            [template] => <srai>HALO</srai>
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 1242
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
        )

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

    [time_start] => 1762782833.204
    [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] => Silakan tanyakan apa saja.
                    [3] => Saya di sini untuk membantu.
                    [4] => Selamat datang!
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SILAKAN TANYAKAN APA SAJA
                    [2] => SAYA DI SINI UNTUK MEMBANTU
                    [3] => SELAMAT DATANG
                )

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

    [parsed_template] => Array
        (
            [1] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <srai>HALO</srai>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"6b77881c2d46055435402b008fad4a53","usersay":"HELLO","botsay":"Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.","botData":{"convo_id":"6b77881c2d46055435402b008fad4a53","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"137","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":"1244","pattern":"HALO","thatpattern":"","topic":"","aiml_id":"1244","score":260,"track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}}
)

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