10-11-2025 15:35:21.70283[0][4] - Elapsed time: 4.804 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
10-11-2025 15:35:21.70307[4][4] - Elapsed time: 0.241 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 15:35:21.70328[4][4] - Elapsed time: 0.209 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 15:35:21.70338[4][4] - Elapsed time: 0.092 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 15:35:21.70377[4][4] - Elapsed time: 0.391 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 15:35:21.70378[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 15:35:21.70390[0][4] - Elapsed time: 0.122 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 0a7af6393cce6e75bcb6b78a448ae839 
-----------------------
10-11-2025 15:35:21.70391[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'HAI'. 
-----------------------
10-11-2025 15:35:21.70392[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 15:35:21.70393[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 15:35:21.70394[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
10-11-2025 15:35:21.70438[1][4] - Elapsed time: 0.435 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 0a7af6393cce6e75bcb6b78a448ae839 
-----------------------
10-11-2025 15:35:21.70439[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 15:35:21.70440[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
10-11-2025 15:35:21.70483[2][4] - Elapsed time: 0.433 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 15:35:21.70484[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 15:35:21.70521[2][4] - Elapsed time: 0.373 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 15:35:21.70546[3][4] - Elapsed time: 0.243 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #97 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '0a7af6393cce6e75bcb6b78a448ae839'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 15:35:21.70580[3][4] - Elapsed time: 0.343 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` = 97 AND `bot_id` = 1; 
-----------------------
10-11-2025 15:35:21.70603[2][4] - Elapsed time: 0.231 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 15:35:21.70608[2][4] - Elapsed time: 0.053 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on HAI. 
-----------------------
10-11-2025 15:35:21.70609[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 15:35:21.70663[4][4] - Elapsed time: 0.535 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HAI' 
-----------------------
10-11-2025 15:35:21.70677[4][4] - Elapsed time: 0.139 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI' 
-----------------------
10-11-2025 15:35:21.70678[2][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HAI
Convo id: 0a7af6393cce6e75bcb6b78a448ae839
Bot id: 1
Format:  
-----------------------
10-11-2025 15:35:21.70679[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 15:35:21.70679[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 15:35:21.70680[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 97 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 15:35:21.70768[4][4] - Elapsed time: 0.875 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 15:35:21.70817[2][4] - Elapsed time: 0.491 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 15:35:21.70818[3][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
10-11-2025 15:35:21.70838[4][4] - Elapsed time: 0.197 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 15:35:21.70839[0][4] - Elapsed time: 0.014 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 15:35:21.70840[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 15:35:21.70840[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HAI: raw say = HAI 
-----------------------
10-11-2025 15:35:21.70841[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 15:35:21.70842[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HAI' to the front of the [user_say] array 
-----------------------
10-11-2025 15:35:21.70845[4][4] - Elapsed time: 0.029 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 15:35:21.70846[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = HAI, RAW say = HAI 
-----------------------
10-11-2025 15:35:21.70847[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HAI' to the front of the [input] array 
-----------------------
10-11-2025 15:35:21.70847[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 15:35:21.70848[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 15:35:21.70849[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HAI' 
-----------------------
10-11-2025 15:35:21.70850[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI' 
-----------------------
10-11-2025 15:35:21.70850[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 15:35:21.70874[4][4] - Elapsed time: 0.235 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 15:35:21.70875[3][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_dannu`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = '0a7af6393cce6e75bcb6b78a448ae839'
    AND (
        'HAI' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 15:35:21.70913[2][4] - Elapsed time: 0.375 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 15:35:21.70914[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 15:35:21.70914[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 15:35:21.70937[4][4] - Elapsed time: 0.227 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 15:35:21.70939[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 (
        'HAI' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 15:35:21.70986[3][4] - Elapsed time: 0.474 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 15:35:21.70987[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (3) potential AIML matches 
-----------------------
10-11-2025 15:35:21.71009[4][4] - Elapsed time: 0.226 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 3 rows to unset bad matches 
-----------------------
10-11-2025 15:35:21.71010[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 'HAI' 
-----------------------
10-11-2025 15:35:21.71024[4][4] - Elapsed time: 0.134 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 15:35:21.71025[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 15:35:21.71049[4][4] - Elapsed time: 0.246 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 934
            [bot_id] => 1
            [pattern] => HAI
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <srai>HALO</srai>
            [score] => 260
            [current_that] => 
            [aiml_id] => 934
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hai (2 points)
        )

    [1] => Array
        (
            [id] => 1091
            [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] => 1091
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 15:35:21.71051[2][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

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

)

 
-----------------------
10-11-2025 15:35:21.71076[4][4] - Elapsed time: 0.250 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 934
    [bot_id] => 1
    [pattern] => HAI
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <srai>HALO</srai>
    [score] => 260
    [current_that] => 
    [aiml_id] => 934
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hai (2 points)
)
 
-----------------------
10-11-2025 15:35:21.71077[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 15:35:21.71078[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:934 (HAI) 
-----------------------
10-11-2025 15:35:21.71079[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 15:35:21.71080[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HAI' 
-----------------------
10-11-2025 15:35:21.71080[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 15:35:21.71081[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 15:35:21.71082[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 934
    [category_id] => 934
    [html_template] => 
    [lookingfor] => HAI
    [pattern] => HAI
    [score] => 260
    [stars] => Array
        (
        )

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

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

    [user_raw] => HAI
)
 
-----------------------
10-11-2025 15:35:21.71083[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 15:35:21.71083[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... 
-----------------------
10-11-2025 15:35:21.71088[4][4] - Elapsed time: 0.046 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HALO</text></srai></template> 
-----------------------
10-11-2025 15:35:21.71101[2][4] - Elapsed time: 0.128 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71105[4][4] - Elapsed time: 0.044 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><srai><text>HALO</text></srai></template>
 
-----------------------
10-11-2025 15:35:21.71106[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 15:35:21.71108[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71109[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HALO</text></srai> 
-----------------------
10-11-2025 15:35:21.71110[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
10-11-2025 15:35:21.71110[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
10-11-2025 15:35:21.71111[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
10-11-2025 15:35:21.71112[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
10-11-2025 15:35:21.71112[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71113[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HALO</text> 
-----------------------
10-11-2025 15:35:21.71114[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 15:35:21.71114[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 15:35:21.71115[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 15:35:21.71115[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HALO' to the response array. tag name is text 
-----------------------
10-11-2025 15:35:21.71116[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71117[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HALO
        )

)

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

 
-----------------------
10-11-2025 15:35:21.71119[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71120[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HALO' 
-----------------------
10-11-2025 15:35:21.71120[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HALO. 
-----------------------
10-11-2025 15:35:21.71121[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HAI' 
-----------------------
10-11-2025 15:35:21.71122[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 15:35:21.71123[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 15:35:21.71124[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 934
    [category_id] => 934
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HAI
    [score] => 260
    [stars] => Array
        (
        )

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

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

    [user_raw] => HAI
)
 
-----------------------
10-11-2025 15:35:21.71125[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HALO'. 
-----------------------
10-11-2025 15:35:21.71125[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
10-11-2025 15:35:21.71126[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
10-11-2025 15:35:21.71127[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 ); 
-----------------------
10-11-2025 15:35:21.71163[2][4] - Elapsed time: 0.367 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
        )

)
 
-----------------------
10-11-2025 15:35:21.71164[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][run_srai][438]
Found 4 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
        )

)
 
-----------------------
10-11-2025 15:35:21.71165[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 422. 
-----------------------
10-11-2025 15:35:21.71180[2][4] - Elapsed time: 0.155 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 422:  
-----------------------
10-11-2025 15:35:21.71181[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][466]
Nothing found in the SRAI lookup table. Looking for a direct pattern match for 'HALO'. 
-----------------------
10-11-2025 15:35:21.71182[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][473]
lookup SQL = SELECT `id`, `pattern`, `thatpattern`, `topic` FROM `siew8359_dannu`.`aiml` where `pattern` like '%HALO%' and  bot_id = 1  order by `id` asc; 
-----------------------
10-11-2025 15:35:21.71209[2][4] - Elapsed time: 0.269 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
10-11-2025 15:35:21.71210[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 933
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
10-11-2025 15:35:21.71210[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
10-11-2025 15:35:21.71233[4][4] - Elapsed time: 0.233 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
10-11-2025 15:35:21.71234[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 'HALO' 
-----------------------
10-11-2025 15:35:21.71239[4][4] - Elapsed time: 0.046 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
10-11-2025 15:35:21.71240[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 15:35:21.71262[4][4] - Elapsed time: 0.223 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 933
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [aiml_id] => 933
            [score] => 260
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

)
 
-----------------------
10-11-2025 15:35:21.71263[2][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

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

)

 
-----------------------
10-11-2025 15:35:21.71271[4][4] - Elapsed time: 0.079 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 933
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [aiml_id] => 933
    [score] => 260
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
)
 
-----------------------
10-11-2025 15:35:21.71272[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 15:35:21.71289[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... 
-----------------------
10-11-2025 15:35:21.71291[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> 
-----------------------
10-11-2025 15:35:21.71294[2][4] - Elapsed time: 0.029 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71297[4][4] - Elapsed time: 0.027 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Halo! Selamat datang. Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.</text></li></random></template>
 
-----------------------
10-11-2025 15:35:21.71298[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 15:35:21.71298[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71300[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> 
-----------------------
10-11-2025 15:35:21.71300[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
10-11-2025 15:35:21.71301[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
10-11-2025 15:35:21.71302[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
10-11-2025 15:35:21.71306[4][4] - Elapsed time: 0.048 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Halo! Selamat datang. Ada yang bisa saya bantu hari ini?
        )

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

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

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

)
 
-----------------------
10-11-2025 15:35:21.71307[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #3 from random tag.
 
-----------------------
10-11-2025 15:35:21.71308[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71309[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.</text></li> 
-----------------------
10-11-2025 15:35:21.71309[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 15:35:21.71310[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 15:35:21.71311[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.</text> 
-----------------------
10-11-2025 15:35:21.71311[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 15:35:21.71312[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 15:35:21.71313[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 15:35:21.71313[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is text 
-----------------------
10-11-2025 15:35:21.71314[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71314[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 15:35:21.71315[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71315[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71316[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is li. 
-----------------------
10-11-2025 15:35:21.71317[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71317[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 15:35:21.71318[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71318[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71319[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' for output. 
-----------------------
10-11-2025 15:35:21.71319[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is random 
-----------------------
10-11-2025 15:35:21.71320[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71320[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

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

 
-----------------------
10-11-2025 15:35:21.71324[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71325[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71348[1][4] - Elapsed time: 0.227 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HALO'. 
-----------------------
10-11-2025 15:35:21.71349[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
10-11-2025 15:35:21.71350[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
10-11-2025 15:35:21.71350[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71351[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
 
-----------------------
10-11-2025 15:35:21.71351[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is srai 
-----------------------
10-11-2025 15:35:21.71352[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71352[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 15:35:21.71353[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71353[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71354[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the response array. tag name is template. 
-----------------------
10-11-2025 15:35:21.71354[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 15:35:21.71355[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.
)

 
-----------------------
10-11-2025 15:35:21.71355[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 15:35:21.71356[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71357[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: Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja. 
-----------------------
10-11-2025 15:35:21.71357[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 15:35:21.71358[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 15:35:21.71358[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [that_raw] array 
-----------------------
10-11-2025 15:35:21.71359[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 15:35:21.71367[2][4] - Elapsed time: 0.076 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [that] array 
-----------------------
10-11-2025 15:35:21.71368[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 15:35:21.71369[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Selamat datang!' 
-----------------------
10-11-2025 15:35:21.71370[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Selamat datang!' 
-----------------------
10-11-2025 15:35:21.71371[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SELAMAT DATANG' 
-----------------------
10-11-2025 15:35:21.71371[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SELAMAT DATANG' 
-----------------------
10-11-2025 15:35:21.71372[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Saya di sini untuk membantu.' 
-----------------------
10-11-2025 15:35:21.71372[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Saya di sini untuk membantu.' 
-----------------------
10-11-2025 15:35:21.71373[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SAYA DI SINI UNTUK MEMBANTU' 
-----------------------
10-11-2025 15:35:21.71374[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SAYA DI SINI UNTUK MEMBANTU' 
-----------------------
10-11-2025 15:35:21.71374[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71375[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Silakan tanyakan apa saja.' 
-----------------------
10-11-2025 15:35:21.71375[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SILAKAN TANYAKAN APA SAJA' 
-----------------------
10-11-2025 15:35:21.71376[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SILAKAN TANYAKAN APA SAJA' 
-----------------------
10-11-2025 15:35:21.71377[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 15:35:21.71377[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 15:35:21.71378[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 
-----------------------
10-11-2025 15:35:21.71379[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 15:35:21.71380[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 15:35:21.71381[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 ,
      'HAI',
      'Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.',
      97,
      '0a7af6393cce6e75bcb6b78a448ae839',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 15:35:21.71546[4][4] - Elapsed time: 1.647 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 15:35:21.71563[3][4] - Elapsed time: 0.169 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
10-11-2025 15:35:21.71584[2][4] - Elapsed time: 0.216 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 15:35:21.71585[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 15:35:21.71586[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 15:35:21.71588[4][4] - Elapsed time: 0.024 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"0a7af6393cce6e75bcb6b78a448ae839","usersay":"HAI","botsay":"Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.","botData":{"convo_id":"0a7af6393cce6e75bcb6b78a448ae839","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"97","totallines":1,"user_name":"Seeker","rawSay":"HAI","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":"933","pattern":"HALO","thatpattern":"","topic":"","aiml_id":"933","score":260,"track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}} 
-----------------------
10-11-2025 15:35:21.71626[2][4] - Elapsed time: 0.383 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 15:35:21.71631[0][4] - Elapsed time: 0.042 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 18.244 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => HAI
    [conversation] => Array
        (
            [convo_id] => 0a7af6393cce6e75bcb6b78a448ae839
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 97
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => HAI
            [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] => 933
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [aiml_id] => 933
                    [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] => HAI
            [lookingfor] => HAI
            [category_id] => 934
            [pattern] => HAI
            [thatpattern] => 
            [template] => <srai>HALO</srai>
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 934
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

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

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

    [time_start] => 1762763721.698
    [user_say] => Array
        (
            [1] => HAI
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Silakan tanyakan apa saja.
                    [3] => Saya di sini untuk membantu.
                    [4] => Selamat datang!
                )

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

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

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

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

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

    [send_to_user] => {"convo_id":"0a7af6393cce6e75bcb6b78a448ae839","usersay":"HAI","botsay":"Selamat datang! Saya di sini untuk membantu. Silakan tanyakan apa saja.","botData":{"convo_id":"0a7af6393cce6e75bcb6b78a448ae839","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"97","totallines":1,"user_name":"Seeker","rawSay":"HAI","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":"933","pattern":"HALO","thatpattern":"","topic":"","aiml_id":"933","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: 18.244 Milliseconds. Goodbye.