19-11-2025 11:42:57.66960[0][4] - Elapsed time: 9.298 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 
-----------------------
19-11-2025 11:42:57.67995[4][4] - Elapsed time: 10.348 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
19-11-2025 11:42:57.68367[4][4] - Elapsed time: 3.717 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
19-11-2025 11:42:57.68432[4][4] - Elapsed time: 0.657 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
19-11-2025 11:42:57.68748[4][4] - Elapsed time: 3.154 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
19-11-2025 11:42:57.68749[4][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
19-11-2025 11:42:57.68762[0][4] - Elapsed time: 0.124 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = d7f47022814aa6f29d7f06b6fefa0601 
-----------------------
19-11-2025 11:42:57.68763[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'HELLO'. 
-----------------------
19-11-2025 11:42:57.68765[4][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
19-11-2025 11:42:57.68765[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
19-11-2025 11:42:57.68766[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
19-11-2025 11:42:57.68820[1][4] - Elapsed time: 0.535 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: d7f47022814aa6f29d7f06b6fefa0601 
-----------------------
19-11-2025 11:42:57.68821[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
19-11-2025 11:42:57.68822[3][4] - Elapsed time: 0.008 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; 
-----------------------
19-11-2025 11:42:57.68878[2][4] - Elapsed time: 0.564 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
19-11-2025 11:42:57.68879[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
19-11-2025 11:42:57.68938[2][4] - Elapsed time: 0.590 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
19-11-2025 11:42:57.69005[3][4] - Elapsed time: 0.671 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #154 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'd7f47022814aa6f29d7f06b6fefa0601'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
19-11-2025 11:42:57.69069[3][4] - Elapsed time: 0.643 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` = 154 AND `bot_id` = 1; 
-----------------------
19-11-2025 11:42:57.69115[2][4] - Elapsed time: 0.453 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
19-11-2025 11:42:57.69123[2][4] - Elapsed time: 0.082 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on HELLO. 
-----------------------
19-11-2025 11:42:57.69124[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
19-11-2025 11:42:57.69187[4][4] - Elapsed time: 0.633 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69202[4][4] - Elapsed time: 0.146 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69203[2][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: d7f47022814aa6f29d7f06b6fefa0601
Bot id: 1
Format:  
-----------------------
19-11-2025 11:42:57.69204[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
19-11-2025 11:42:57.69205[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
19-11-2025 11:42:57.69205[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 154 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
19-11-2025 11:42:57.69415[4][4] - Elapsed time: 2.092 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
19-11-2025 11:42:57.69474[2][4] - Elapsed time: 0.597 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
19-11-2025 11:42:57.69476[3][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
19-11-2025 11:42:57.69495[4][4] - Elapsed time: 0.194 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
19-11-2025 11:42:57.69496[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
19-11-2025 11:42:57.69497[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
19-11-2025 11:42:57.69498[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = HELLO 
-----------------------
19-11-2025 11:42:57.69498[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
19-11-2025 11:42:57.69499[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
19-11-2025 11:42:57.69502[4][4] - Elapsed time: 0.029 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
19-11-2025 11:42:57.69503[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = HELLO, RAW say = HELLO 
-----------------------
19-11-2025 11:42:57.69504[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
19-11-2025 11:42:57.69504[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
19-11-2025 11:42:57.69505[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
19-11-2025 11:42:57.69506[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69507[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69507[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 
-----------------------
19-11-2025 11:42:57.69533[4][4] - Elapsed time: 0.260 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
19-11-2025 11:42:57.69535[3][4] - Elapsed time: 0.016 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` = 'd7f47022814aa6f29d7f06b6fefa0601'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
19-11-2025 11:42:57.69574[2][4] - Elapsed time: 0.394 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
19-11-2025 11:42:57.69575[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
19-11-2025 11:42:57.69576[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
19-11-2025 11:42:57.69600[4][4] - Elapsed time: 0.243 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
19-11-2025 11:42:57.69602[3][4] - Elapsed time: 0.014 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; 
-----------------------
19-11-2025 11:42:57.69678[3][4] - Elapsed time: 0.761 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
19-11-2025 11:42:57.69679[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
19-11-2025 11:42:57.69704[4][4] - Elapsed time: 0.250 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
19-11-2025 11:42:57.69705[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HELLO' 
-----------------------
19-11-2025 11:42:57.69714[4][4] - Elapsed time: 0.091 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
19-11-2025 11:42:57.69715[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
19-11-2025 11:42:57.69741[4][4] - Elapsed time: 0.261 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)
        )

)
 
-----------------------
19-11-2025 11:42:57.69743[2][4] - Elapsed time: 0.023 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)
        )

)

 
-----------------------
19-11-2025 11:42:57.69771[4][4] - Elapsed time: 0.280 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)
)
 
-----------------------
19-11-2025 11:42:57.69772[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
19-11-2025 11:42:57.69773[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1242 (HELLO) 
-----------------------
19-11-2025 11:42:57.69774[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
19-11-2025 11:42:57.69775[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69775[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
19-11-2025 11:42:57.69776[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
19-11-2025 11:42:57.69777[2][4] - Elapsed time: 0.010 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
)
 
-----------------------
19-11-2025 11:42:57.69778[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
19-11-2025 11:42:57.69778[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
19-11-2025 11:42:57.69783[4][4] - Elapsed time: 0.047 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HALO</text></srai></template> 
-----------------------
19-11-2025 11:42:57.69796[2][4] - Elapsed time: 0.127 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.69800[4][4] - Elapsed time: 0.048 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>
 
-----------------------
19-11-2025 11:42:57.69801[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
19-11-2025 11:42:57.69803[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.69805[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HALO</text></srai> 
-----------------------
19-11-2025 11:42:57.69805[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
19-11-2025 11:42:57.69806[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
19-11-2025 11:42:57.69807[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
19-11-2025 11:42:57.69807[2][4] - Elapsed time: 0.007 milliseconds 
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
19-11-2025 11:42:57.69808[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.69810[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> 
-----------------------
19-11-2025 11:42:57.69810[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
19-11-2025 11:42:57.69811[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
19-11-2025 11:42:57.69812[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
19-11-2025 11:42:57.69812[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HALO' to the response array. tag name is text 
-----------------------
19-11-2025 11:42:57.69813[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.69813[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HALO
        )

)

 
-----------------------
19-11-2025 11:42:57.69814[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.69814[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.69815[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => HALO
)

 
-----------------------
19-11-2025 11:42:57.69816[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.69816[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HALO' 
-----------------------
19-11-2025 11:42:57.69817[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HALO. 
-----------------------
19-11-2025 11:42:57.69818[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
19-11-2025 11:42:57.69818[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
19-11-2025 11:42:57.69819[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
19-11-2025 11:42:57.69820[2][4] - Elapsed time: 0.009 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
)
 
-----------------------
19-11-2025 11:42:57.69820[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HALO'. 
-----------------------
19-11-2025 11:42:57.69821[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
19-11-2025 11:42:57.69821[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
19-11-2025 11:42:57.69822[2][4] - Elapsed time: 0.008 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 ); 
-----------------------
19-11-2025 11:42:57.69878[2][4] - Elapsed time: 0.556 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
        )

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
19-11-2025 11:42:57.69879[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][run_srai][438]
Found 29 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
        )

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
19-11-2025 11:42:57.69879[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 422. 
-----------------------
19-11-2025 11:42:57.69909[2][4] - Elapsed time: 0.299 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 422:  
-----------------------
19-11-2025 11:42:57.69910[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][466]
Nothing found in the SRAI lookup table. Looking for a direct pattern match for 'HALO'. 
-----------------------
19-11-2025 11:42:57.69911[2][4] - Elapsed time: 0.007 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; 
-----------------------
19-11-2025 11:42:57.69935[2][4] - Elapsed time: 0.240 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
19-11-2025 11:42:57.69936[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
19-11-2025 11:42:57.69936[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
19-11-2025 11:42:57.69960[4][4] - Elapsed time: 0.241 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
19-11-2025 11:42:57.69961[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HALO' 
-----------------------
19-11-2025 11:42:57.69965[4][4] - Elapsed time: 0.043 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
19-11-2025 11:42:57.69966[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
19-11-2025 11:42:57.69991[4][4] - Elapsed time: 0.244 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)
        )

)
 
-----------------------
19-11-2025 11:42:57.69992[2][4] - Elapsed time: 0.012 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)
        )

)

 
-----------------------
19-11-2025 11:42:57.70001[4][4] - Elapsed time: 0.088 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)
)
 
-----------------------
19-11-2025 11:42:57.70001[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
19-11-2025 11:42:57.70019[2][4] - Elapsed time: 0.180 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
19-11-2025 11:42:57.70021[4][4] - Elapsed time: 0.019 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> 
-----------------------
19-11-2025 11:42:57.70024[2][4] - Elapsed time: 0.031 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.70027[4][4] - Elapsed time: 0.026 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>
 
-----------------------
19-11-2025 11:42:57.70028[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
19-11-2025 11:42:57.70028[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.70030[4][4] - Elapsed time: 0.013 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> 
-----------------------
19-11-2025 11:42:57.70030[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
19-11-2025 11:42:57.70031[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
19-11-2025 11:42:57.70031[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
19-11-2025 11:42:57.70037[4][4] - Elapsed time: 0.061 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.
        )

)
 
-----------------------
19-11-2025 11:42:57.70038[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #2 from random tag.
 
-----------------------
19-11-2025 11:42:57.70039[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.70040[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li> 
-----------------------
19-11-2025 11:42:57.70040[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. 
-----------------------
19-11-2025 11:42:57.70041[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
19-11-2025 11:42:57.70042[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text> 
-----------------------
19-11-2025 11:42:57.70042[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
19-11-2025 11:42:57.70043[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
19-11-2025 11:42:57.70043[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
19-11-2025 11:42:57.70044[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?' to the response array. tag name is text 
-----------------------
19-11-2025 11:42:57.70045[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70045[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70046[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70046[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda.    Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70047[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Saya pedro salto, siap membantu Anda.    Ada pertanyaan?' to the response array. tag name is li. 
-----------------------
19-11-2025 11:42:57.70047[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70048[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda.    Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70048[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70049[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda.  Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70050[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Halo! Saya pedro salto, siap membantu Anda.  Ada pertanyaan?' for output. 
-----------------------
19-11-2025 11:42:57.70050[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Saya pedro salto, siap membantu Anda.  Ada pertanyaan?' to the response array. tag name is random 
-----------------------
19-11-2025 11:42:57.70051[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70051[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda.  Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70052[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70052[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70053[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the response array. tag name is template. 
-----------------------
19-11-2025 11:42:57.70054[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70054[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70055[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70055[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70074[1][4] - Elapsed time: 0.189 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HALO'. 
-----------------------
19-11-2025 11:42:57.70075[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
19-11-2025 11:42:57.70076[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
19-11-2025 11:42:57.70077[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70077[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
 
-----------------------
19-11-2025 11:42:57.70078[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the response array. tag name is srai 
-----------------------
19-11-2025 11:42:57.70078[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70079[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70079[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70080[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70080[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the response array. tag name is template. 
-----------------------
19-11-2025 11:42:57.70081[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
19-11-2025 11:42:57.70082[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
)

 
-----------------------
19-11-2025 11:42:57.70082[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
19-11-2025 11:42:57.70083[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70083[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan? 
-----------------------
19-11-2025 11:42:57.70084[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
19-11-2025 11:42:57.70085[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
19-11-2025 11:42:57.70085[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the front of the [that_raw] array 
-----------------------
19-11-2025 11:42:57.70086[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
19-11-2025 11:42:57.70094[2][4] - Elapsed time: 0.080 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the front of the [that] array 
-----------------------
19-11-2025 11:42:57.70095[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
19-11-2025 11:42:57.70096[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
19-11-2025 11:42:57.70097[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
19-11-2025 11:42:57.70098[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
19-11-2025 11:42:57.70098[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
19-11-2025 11:42:57.70099[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Saya pedro salto, siap membantu Anda.' 
-----------------------
19-11-2025 11:42:57.70099[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Saya pedro salto, siap membantu Anda.' 
-----------------------
19-11-2025 11:42:57.70100[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SAYA PEDRO SALTO SIAP MEMBANTU ANDA' 
-----------------------
19-11-2025 11:42:57.70100[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SAYA PEDRO SALTO SIAP MEMBANTU ANDA' 
-----------------------
19-11-2025 11:42:57.70101[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70101[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Ada pertanyaan?' 
-----------------------
19-11-2025 11:42:57.70102[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'ADA PERTANYAAN' 
-----------------------
19-11-2025 11:42:57.70103[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'ADA PERTANYAAN' 
-----------------------
19-11-2025 11:42:57.70104[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?' to the front of the [parsed_template] array 
-----------------------
19-11-2025 11:42:57.70104[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
19-11-2025 11:42:57.70105[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai>HALO</srai>' to the front of the [template] array 
-----------------------
19-11-2025 11:42:57.70106[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
19-11-2025 11:42:57.70107[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
19-11-2025 11:42:57.70108[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 ,
      'HELLO',
      'Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?',
      154,
      'd7f47022814aa6f29d7f06b6fefa0601',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
19-11-2025 11:42:57.70291[4][4] - Elapsed time: 1.830 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
19-11-2025 11:42:57.70307[3][4] - Elapsed time: 0.166 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 
-----------------------
19-11-2025 11:42:57.70329[2][4] - Elapsed time: 0.212 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
19-11-2025 11:42:57.70330[4][4] - Elapsed time: 0.010 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
19-11-2025 11:42:57.70330[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
19-11-2025 11:42:57.70333[4][4] - Elapsed time: 0.028 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"d7f47022814aa6f29d7f06b6fefa0601","usersay":"HELLO","botsay":"Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?","botData":{"convo_id":"d7f47022814aa6f29d7f06b6fefa0601","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"154","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)"}}} 
-----------------------
19-11-2025 11:42:57.70386[2][4] - Elapsed time: 0.525 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
19-11-2025 11:42:57.70389[0][4] - Elapsed time: 0.037 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 43.562 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => HELLO
    [conversation] => Array
        (
            [convo_id] => d7f47022814aa6f29d7f06b6fefa0601
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 154
            [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] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
        )

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

    [time_start] => 1763527377.6603
    [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] => Ada pertanyaan?
                    [3] => Saya pedro salto, siap membantu Anda.
                    [4] => Halo!
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => ADA PERTANYAAN
                    [2] => SAYA PEDRO SALTO SIAP MEMBANTU ANDA
                    [3] => HALO
                )

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

    [parsed_template] => Array
        (
            [1] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
            [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":"d7f47022814aa6f29d7f06b6fefa0601","usersay":"HELLO","botsay":"Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?","botData":{"convo_id":"d7f47022814aa6f29d7f06b6fefa0601","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"154","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: 43.562 Milliseconds. Goodbye.