11-11-2025 00:43:46.47641[0][4] - Elapsed time: 0.779 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 
-----------------------
11-11-2025 00:43:46.47670[4][4] - Elapsed time: 0.289 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
11-11-2025 00:43:46.47689[4][4] - Elapsed time: 0.190 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
11-11-2025 00:43:46.47698[4][4] - Elapsed time: 0.091 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
11-11-2025 00:43:46.47733[4][4] - Elapsed time: 0.355 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
11-11-2025 00:43:46.47735[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
11-11-2025 00:43:46.47747[0][4] - Elapsed time: 0.123 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 46a24d1545f19360f2817e8686b2f6b2 
-----------------------
11-11-2025 00:43:46.47748[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'HELLO'. 
-----------------------
11-11-2025 00:43:46.47749[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
11-11-2025 00:43:46.47750[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
11-11-2025 00:43:46.47751[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
11-11-2025 00:43:46.47772[1][4] - Elapsed time: 0.205 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 46a24d1545f19360f2817e8686b2f6b2 
-----------------------
11-11-2025 00:43:46.47773[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
11-11-2025 00:43:46.47774[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
11-11-2025 00:43:46.47796[2][4] - Elapsed time: 0.222 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
11-11-2025 00:43:46.47797[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
11-11-2025 00:43:46.47818[2][4] - Elapsed time: 0.217 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
11-11-2025 00:43:46.47843[3][4] - Elapsed time: 0.245 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #141 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '46a24d1545f19360f2817e8686b2f6b2'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
11-11-2025 00:43:46.47859[3][4] - Elapsed time: 0.162 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` = 141 AND `bot_id` = 1; 
-----------------------
11-11-2025 00:43:46.47883[2][4] - Elapsed time: 0.236 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
11-11-2025 00:43:46.47884[2][4] - Elapsed time: 0.014 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on HELLO. 
-----------------------
11-11-2025 00:43:46.47885[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
11-11-2025 00:43:46.47915[4][4] - Elapsed time: 0.300 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
11-11-2025 00:43:46.47917[4][4] - Elapsed time: 0.018 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
11-11-2025 00:43:46.47918[2][4] - Elapsed time: 0.007 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: 46a24d1545f19360f2817e8686b2f6b2
Bot id: 1
Format:  
-----------------------
11-11-2025 00:43:46.47918[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
11-11-2025 00:43:46.47919[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
11-11-2025 00:43:46.47920[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` = 141 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
11-11-2025 00:43:46.48006[4][4] - Elapsed time: 0.862 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
11-11-2025 00:43:46.48033[2][4] - Elapsed time: 0.266 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
11-11-2025 00:43:46.48034[3][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
11-11-2025 00:43:46.48052[4][4] - Elapsed time: 0.183 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
11-11-2025 00:43:46.48054[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
11-11-2025 00:43:46.48054[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
11-11-2025 00:43:46.48055[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = HELLO 
-----------------------
11-11-2025 00:43:46.48055[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
11-11-2025 00:43:46.48056[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
11-11-2025 00:43:46.48057[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
11-11-2025 00:43:46.48058[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = HELLO, RAW say = HELLO 
-----------------------
11-11-2025 00:43:46.48059[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
11-11-2025 00:43:46.48059[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
11-11-2025 00:43:46.48060[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
11-11-2025 00:43:46.48061[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
11-11-2025 00:43:46.48062[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
11-11-2025 00:43:46.48062[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 
-----------------------
11-11-2025 00:43:46.48086[4][4] - Elapsed time: 0.234 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
11-11-2025 00:43:46.48087[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` = '46a24d1545f19360f2817e8686b2f6b2'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 00:43:46.48107[2][4] - Elapsed time: 0.191 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
11-11-2025 00:43:46.48107[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
11-11-2025 00:43:46.48108[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
11-11-2025 00:43:46.48131[4][4] - Elapsed time: 0.230 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
11-11-2025 00:43:46.48132[3][4] - Elapsed time: 0.015 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; 
-----------------------
11-11-2025 00:43:46.48162[3][4] - Elapsed time: 0.291 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
11-11-2025 00:43:46.48162[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
11-11-2025 00:43:46.48186[4][4] - Elapsed time: 0.238 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
11-11-2025 00:43:46.48187[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' 
-----------------------
11-11-2025 00:43:46.48190[4][4] - Elapsed time: 0.029 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
11-11-2025 00:43:46.48191[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 00:43:46.48215[4][4] - Elapsed time: 0.245 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)
        )

)
 
-----------------------
11-11-2025 00:43:46.48217[2][4] - Elapsed time: 0.017 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)
        )

)

 
-----------------------
11-11-2025 00:43:46.48231[4][4] - Elapsed time: 0.143 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)
)
 
-----------------------
11-11-2025 00:43:46.48232[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 00:43:46.48233[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1242 (HELLO) 
-----------------------
11-11-2025 00:43:46.48234[3][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
11-11-2025 00:43:46.48235[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
11-11-2025 00:43:46.48235[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 00:43:46.48236[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 00:43:46.48237[2][4] - Elapsed time: 0.011 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
)
 
-----------------------
11-11-2025 00:43:46.48238[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
11-11-2025 00:43:46.48238[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
11-11-2025 00:43:46.48240[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HALO</text></srai></template> 
-----------------------
11-11-2025 00:43:46.48243[2][4] - Elapsed time: 0.038 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48246[4][4] - Elapsed time: 0.024 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>
 
-----------------------
11-11-2025 00:43:46.48247[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. 
-----------------------
11-11-2025 00:43:46.48248[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48249[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HALO</text></srai> 
-----------------------
11-11-2025 00:43:46.48249[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
11-11-2025 00:43:46.48250[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
11-11-2025 00:43:46.48250[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
11-11-2025 00:43:46.48251[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
11-11-2025 00:43:46.48252[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48253[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HALO</text> 
-----------------------
11-11-2025 00:43:46.48253[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
11-11-2025 00:43:46.48254[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
11-11-2025 00:43:46.48254[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
11-11-2025 00:43:46.48255[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HALO' to the response array. tag name is text 
-----------------------
11-11-2025 00:43:46.48255[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48256[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HALO
        )

)

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

 
-----------------------
11-11-2025 00:43:46.48258[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48259[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HALO' 
-----------------------
11-11-2025 00:43:46.48259[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HALO. 
-----------------------
11-11-2025 00:43:46.48260[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
11-11-2025 00:43:46.48261[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 00:43:46.48261[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 00:43:46.48262[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
)
 
-----------------------
11-11-2025 00:43:46.48263[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HALO'. 
-----------------------
11-11-2025 00:43:46.48263[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
11-11-2025 00:43:46.48264[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
11-11-2025 00:43:46.48265[2][4] - Elapsed time: 0.007 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 ); 
-----------------------
11-11-2025 00:43:46.48287[2][4] - Elapsed time: 0.225 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
        )

)
 
-----------------------
11-11-2025 00:43:46.48288[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][run_srai][438]
Found 22 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
        )

)
 
-----------------------
11-11-2025 00:43:46.48289[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 422. 
-----------------------
11-11-2025 00:43:46.48304[2][4] - Elapsed time: 0.147 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 422:  
-----------------------
11-11-2025 00:43:46.48304[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'. 
-----------------------
11-11-2025 00:43:46.48305[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; 
-----------------------
11-11-2025 00:43:46.48330[2][4] - Elapsed time: 0.249 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
11-11-2025 00:43:46.48331[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
11-11-2025 00:43:46.48331[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
11-11-2025 00:43:46.48355[4][4] - Elapsed time: 0.231 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
11-11-2025 00:43:46.48355[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' 
-----------------------
11-11-2025 00:43:46.48357[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
11-11-2025 00:43:46.48358[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 00:43:46.48381[4][4] - Elapsed time: 0.232 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)
        )

)
 
-----------------------
11-11-2025 00:43:46.48382[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)
        )

)

 
-----------------------
11-11-2025 00:43:46.48388[4][4] - Elapsed time: 0.065 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)
)
 
-----------------------
11-11-2025 00:43:46.48389[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 00:43:46.48407[2][4] - Elapsed time: 0.176 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
11-11-2025 00:43:46.48409[4][4] - Elapsed time: 0.018 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> 
-----------------------
11-11-2025 00:43:46.48411[2][4] - Elapsed time: 0.025 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48413[4][4] - Elapsed time: 0.022 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>
 
-----------------------
11-11-2025 00:43:46.48414[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. 
-----------------------
11-11-2025 00:43:46.48415[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48416[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> 
-----------------------
11-11-2025 00:43:46.48417[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
11-11-2025 00:43:46.48417[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
11-11-2025 00:43:46.48418[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
11-11-2025 00:43:46.48421[4][4] - Elapsed time: 0.027 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.
        )

)
 
-----------------------
11-11-2025 00:43:46.48421[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #2 from random tag.
 
-----------------------
11-11-2025 00:43:46.48422[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48424[4][4] - Elapsed time: 0.018 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> 
-----------------------
11-11-2025 00:43:46.48425[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
11-11-2025 00:43:46.48426[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 00:43:46.48426[4][4] - Elapsed time: 0.008 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> 
-----------------------
11-11-2025 00:43:46.48427[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
11-11-2025 00:43:46.48428[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
11-11-2025 00:43:46.48428[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
11-11-2025 00:43:46.48429[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 
-----------------------
11-11-2025 00:43:46.48429[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48430[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?
)

 
-----------------------
11-11-2025 00:43:46.48430[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48431[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?' 
-----------------------
11-11-2025 00:43:46.48431[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. 
-----------------------
11-11-2025 00:43:46.48432[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48433[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?
)

 
-----------------------
11-11-2025 00:43:46.48433[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48434[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?' 
-----------------------
11-11-2025 00:43:46.48434[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. 
-----------------------
11-11-2025 00:43:46.48435[4][4] - Elapsed time: 0.005 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 
-----------------------
11-11-2025 00:43:46.48435[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48436[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?
)

 
-----------------------
11-11-2025 00:43:46.48436[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48437[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?' 
-----------------------
11-11-2025 00:43:46.48437[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. 
-----------------------
11-11-2025 00:43:46.48438[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48439[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?
)

 
-----------------------
11-11-2025 00:43:46.48439[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48440[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?' 
-----------------------
11-11-2025 00:43:46.48457[1][4] - Elapsed time: 0.174 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HALO'. 
-----------------------
11-11-2025 00:43:46.48458[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
11-11-2025 00:43:46.48459[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
11-11-2025 00:43:46.48459[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48460[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?
 
-----------------------
11-11-2025 00:43:46.48460[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 srai 
-----------------------
11-11-2025 00:43:46.48461[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48462[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?
)

 
-----------------------
11-11-2025 00:43:46.48462[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48463[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?' 
-----------------------
11-11-2025 00:43:46.48463[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. 
-----------------------
11-11-2025 00:43:46.48464[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 00:43:46.48464[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?
)

 
-----------------------
11-11-2025 00:43:46.48465[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 00:43:46.48465[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?' 
-----------------------
11-11-2025 00:43:46.48466[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? 
-----------------------
11-11-2025 00:43:46.48466[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
11-11-2025 00:43:46.48467[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
11-11-2025 00:43:46.48468[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 
-----------------------
11-11-2025 00:43:46.48468[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
11-11-2025 00:43:46.48471[2][4] - Elapsed time: 0.027 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 
-----------------------
11-11-2025 00:43:46.48472[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
11-11-2025 00:43:46.48473[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
11-11-2025 00:43:46.48474[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
11-11-2025 00:43:46.48475[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
11-11-2025 00:43:46.48475[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
11-11-2025 00:43:46.48476[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Saya pedro salto, siap membantu Anda.' 
-----------------------
11-11-2025 00:43:46.48476[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Saya pedro salto, siap membantu Anda.' 
-----------------------
11-11-2025 00:43:46.48477[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SAYA PEDRO SALTO SIAP MEMBANTU ANDA' 
-----------------------
11-11-2025 00:43:46.48478[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SAYA PEDRO SALTO SIAP MEMBANTU ANDA' 
-----------------------
11-11-2025 00:43:46.48478[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Ada pertanyaan?' 
-----------------------
11-11-2025 00:43:46.48479[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Ada pertanyaan?' 
-----------------------
11-11-2025 00:43:46.48479[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'ADA PERTANYAAN' 
-----------------------
11-11-2025 00:43:46.48480[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'ADA PERTANYAAN' 
-----------------------
11-11-2025 00:43:46.48481[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 
-----------------------
11-11-2025 00:43:46.48481[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
11-11-2025 00:43:46.48482[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai>HALO</srai>' to the front of the [template] array 
-----------------------
11-11-2025 00:43:46.48483[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
11-11-2025 00:43:46.48484[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
11-11-2025 00:43:46.48485[3][4] - Elapsed time: 0.012 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?',
      141,
      '46a24d1545f19360f2817e8686b2f6b2',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
11-11-2025 00:43:46.48662[4][4] - Elapsed time: 1.773 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
11-11-2025 00:43:46.48679[3][4] - Elapsed time: 0.167 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 
-----------------------
11-11-2025 00:43:46.48699[2][4] - Elapsed time: 0.204 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
11-11-2025 00:43:46.48700[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
11-11-2025 00:43:46.48701[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
11-11-2025 00:43:46.48702[4][4] - Elapsed time: 0.014 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"46a24d1545f19360f2817e8686b2f6b2","usersay":"HELLO","botsay":"Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?","botData":{"convo_id":"46a24d1545f19360f2817e8686b2f6b2","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"141","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)"}}} 
-----------------------
11-11-2025 00:43:46.48720[2][4] - Elapsed time: 0.182 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
11-11-2025 00:43:46.48723[0][4] - Elapsed time: 0.025 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 11.581 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => HELLO
    [conversation] => Array
        (
            [convo_id] => 46a24d1545f19360f2817e8686b2f6b2
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 141
            [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] => 1762796626.4756
    [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":"46a24d1545f19360f2817e8686b2f6b2","usersay":"HELLO","botsay":"Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?","botData":{"convo_id":"46a24d1545f19360f2817e8686b2f6b2","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"141","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: 11.581 Milliseconds. Goodbye.