21-11-2025 06:39:03.20984[0][4] - Elapsed time: 8.408 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 
-----------------------
21-11-2025 06:39:03.21926[4][4] - Elapsed time: 9.416 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
21-11-2025 06:39:03.22237[4][4] - Elapsed time: 3.116 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
21-11-2025 06:39:03.22288[4][4] - Elapsed time: 0.505 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
21-11-2025 06:39:03.22549[4][4] - Elapsed time: 2.612 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
21-11-2025 06:39:03.22551[4][4] - Elapsed time: 0.017 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
21-11-2025 06:39:03.22563[0][4] - Elapsed time: 0.123 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 2805fac202d2c73d45e5094746a93baf 
-----------------------
21-11-2025 06:39:03.22564[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'HELLO'. 
-----------------------
21-11-2025 06:39:03.22566[4][4] - Elapsed time: 0.022 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
21-11-2025 06:39:03.22567[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
21-11-2025 06:39:03.22568[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; 
-----------------------
21-11-2025 06:39:03.22615[1][4] - Elapsed time: 0.465 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 2805fac202d2c73d45e5094746a93baf 
-----------------------
21-11-2025 06:39:03.22616[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
21-11-2025 06:39:03.22617[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; 
-----------------------
21-11-2025 06:39:03.22655[2][4] - Elapsed time: 0.384 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
21-11-2025 06:39:03.22656[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
21-11-2025 06:39:03.22712[2][4] - Elapsed time: 0.564 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
21-11-2025 06:39:03.22760[3][4] - Elapsed time: 0.479 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #156 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '2805fac202d2c73d45e5094746a93baf'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
21-11-2025 06:39:03.22808[3][4] - Elapsed time: 0.473 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` = 156 AND `bot_id` = 1; 
-----------------------
21-11-2025 06:39:03.22833[2][4] - Elapsed time: 0.255 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
21-11-2025 06:39:03.22840[2][4] - Elapsed time: 0.065 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on HELLO. 
-----------------------
21-11-2025 06:39:03.22841[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
21-11-2025 06:39:03.22898[4][4] - Elapsed time: 0.574 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
21-11-2025 06:39:03.22913[4][4] - Elapsed time: 0.144 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
21-11-2025 06:39:03.22914[2][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: 2805fac202d2c73d45e5094746a93baf
Bot id: 1
Format:  
-----------------------
21-11-2025 06:39:03.22915[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
21-11-2025 06:39:03.22915[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
21-11-2025 06:39:03.22916[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` = 156 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
21-11-2025 06:39:03.23040[4][4] - Elapsed time: 1.244 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
21-11-2025 06:39:03.23075[2][4] - Elapsed time: 0.350 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
21-11-2025 06:39:03.23077[3][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
21-11-2025 06:39:03.23097[4][4] - Elapsed time: 0.199 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
21-11-2025 06:39:03.23099[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
21-11-2025 06:39:03.23099[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
21-11-2025 06:39:03.23100[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = HELLO 
-----------------------
21-11-2025 06:39:03.23100[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
21-11-2025 06:39:03.23101[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
21-11-2025 06:39:03.23104[4][4] - Elapsed time: 0.028 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
21-11-2025 06:39:03.23105[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = HELLO, RAW say = HELLO 
-----------------------
21-11-2025 06:39:03.23106[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
21-11-2025 06:39:03.23107[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
21-11-2025 06:39:03.23107[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
21-11-2025 06:39:03.23108[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
21-11-2025 06:39:03.23109[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
21-11-2025 06:39:03.23109[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 
-----------------------
21-11-2025 06:39:03.23135[4][4] - Elapsed time: 0.261 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
21-11-2025 06:39:03.23137[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` = '2805fac202d2c73d45e5094746a93baf'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
21-11-2025 06:39:03.23174[2][4] - Elapsed time: 0.365 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
21-11-2025 06:39:03.23175[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
21-11-2025 06:39:03.23175[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
21-11-2025 06:39:03.23200[4][4] - Elapsed time: 0.253 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
21-11-2025 06:39:03.23202[3][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
21-11-2025 06:39:03.23269[3][4] - Elapsed time: 0.667 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
21-11-2025 06:39:03.23270[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
21-11-2025 06:39:03.23295[4][4] - Elapsed time: 0.254 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
21-11-2025 06:39:03.23296[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' 
-----------------------
21-11-2025 06:39:03.23304[4][4] - Elapsed time: 0.080 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
21-11-2025 06:39:03.23305[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
21-11-2025 06:39:03.23330[4][4] - Elapsed time: 0.258 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)
        )

)
 
-----------------------
21-11-2025 06:39:03.23333[2][4] - Elapsed time: 0.023 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

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

)

 
-----------------------
21-11-2025 06:39:03.23358[4][4] - Elapsed time: 0.253 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)
)
 
-----------------------
21-11-2025 06:39:03.23359[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
21-11-2025 06:39:03.23360[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1242 (HELLO) 
-----------------------
21-11-2025 06:39:03.23361[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
21-11-2025 06:39:03.23362[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
21-11-2025 06:39:03.23362[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
21-11-2025 06:39:03.23363[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
21-11-2025 06:39:03.23364[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1242
    [category_id] => 1242
    [html_template] => 
    [lookingfor] => HELLO
    [pattern] => HELLO
    [score] => 260
    [stars] => Array
        (
        )

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

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

    [user_raw] => HELLO
)
 
-----------------------
21-11-2025 06:39:03.23365[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
21-11-2025 06:39:03.23365[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... 
-----------------------
21-11-2025 06:39:03.23370[4][4] - Elapsed time: 0.047 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HALO</text></srai></template> 
-----------------------
21-11-2025 06:39:03.23385[2][4] - Elapsed time: 0.146 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23390[4][4] - Elapsed time: 0.050 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>
 
-----------------------
21-11-2025 06:39:03.23391[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. 
-----------------------
21-11-2025 06:39:03.23392[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23394[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HALO</text></srai> 
-----------------------
21-11-2025 06:39:03.23394[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
21-11-2025 06:39:03.23395[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
21-11-2025 06:39:03.23396[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
21-11-2025 06:39:03.23396[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
21-11-2025 06:39:03.23397[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23398[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HALO</text> 
-----------------------
21-11-2025 06:39:03.23399[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
21-11-2025 06:39:03.23399[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
21-11-2025 06:39:03.23400[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
21-11-2025 06:39:03.23400[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HALO' to the response array. tag name is text 
-----------------------
21-11-2025 06:39:03.23401[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23402[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HALO
        )

)

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

 
-----------------------
21-11-2025 06:39:03.23404[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23405[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HALO' 
-----------------------
21-11-2025 06:39:03.23405[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HALO. 
-----------------------
21-11-2025 06:39:03.23406[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HELLO' 
-----------------------
21-11-2025 06:39:03.23406[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
21-11-2025 06:39:03.23407[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
21-11-2025 06:39:03.23408[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
)
 
-----------------------
21-11-2025 06:39:03.23408[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HALO'. 
-----------------------
21-11-2025 06:39:03.23409[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
21-11-2025 06:39:03.23409[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
21-11-2025 06:39:03.23410[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 ); 
-----------------------
21-11-2025 06:39:03.23462[2][4] - Elapsed time: 0.514 milliseconds
[parse_aiml.php][run_srai][433]
Result = Array
(
    [0] => Array
        (
            [template_id] => 422
        )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
21-11-2025 06:39:03.23463[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][run_srai][438]
Found 31 rows in lookup table: Array
(
    [0] => Array
        (
            [template_id] => 422
        )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
21-11-2025 06:39:03.23463[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 422. 
-----------------------
21-11-2025 06:39:03.23487[2][4] - Elapsed time: 0.235 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 422:  
-----------------------
21-11-2025 06:39:03.23488[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'. 
-----------------------
21-11-2025 06:39:03.23488[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; 
-----------------------
21-11-2025 06:39:03.23513[2][4] - Elapsed time: 0.242 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
21-11-2025 06:39:03.23513[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 1244
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
21-11-2025 06:39:03.23514[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
21-11-2025 06:39:03.23539[4][4] - Elapsed time: 0.252 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
21-11-2025 06:39:03.23540[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' 
-----------------------
21-11-2025 06:39:03.23544[4][4] - Elapsed time: 0.043 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
21-11-2025 06:39:03.23545[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
21-11-2025 06:39:03.23570[4][4] - Elapsed time: 0.248 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)
        )

)
 
-----------------------
21-11-2025 06:39:03.23571[2][4] - Elapsed time: 0.013 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)
        )

)

 
-----------------------
21-11-2025 06:39:03.23581[4][4] - Elapsed time: 0.095 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)
)
 
-----------------------
21-11-2025 06:39:03.23581[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
21-11-2025 06:39:03.23603[2][4] - Elapsed time: 0.213 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
21-11-2025 06:39:03.23605[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template> 
-----------------------
21-11-2025 06:39:03.23608[2][4] - Elapsed time: 0.030 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23610[4][4] - Elapsed time: 0.026 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Halo! Selamat datang.        Ada yang bisa saya bantu hari ini?</text></li><li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li><li><text>Halo! Saya pedro salto, siap membantu Anda.        Ada pertanyaan?</text></li><li><text>Selamat datang! Saya di sini untuk membantu.        Silakan tanyakan apa saja.</text></li></random></template>
 
-----------------------
21-11-2025 06:39:03.23611[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. 
-----------------------
21-11-2025 06:39:03.23612[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23613[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> 
-----------------------
21-11-2025 06:39:03.23614[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
21-11-2025 06:39:03.23614[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
21-11-2025 06:39:03.23615[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... 
-----------------------
21-11-2025 06:39:03.23620[4][4] - Elapsed time: 0.053 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.
        )

)
 
-----------------------
21-11-2025 06:39:03.23621[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #1 from random tag.
 
-----------------------
21-11-2025 06:39:03.23622[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23622[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text></li> 
-----------------------
21-11-2025 06:39:03.23623[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. 
-----------------------
21-11-2025 06:39:03.23624[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
21-11-2025 06:39:03.23624[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?</text> 
-----------------------
21-11-2025 06:39:03.23625[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
21-11-2025 06:39:03.23625[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
21-11-2025 06:39:03.23626[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
21-11-2025 06:39:03.23627[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?' to the response array. tag name is text 
-----------------------
21-11-2025 06:39:03.23627[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23628[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda.        Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23628[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23629[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda.    Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23629[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bertemu dengan Anda.    Bagaimana kabar Anda?' to the response array. tag name is li. 
-----------------------
21-11-2025 06:39:03.23630[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23630[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda.    Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23631[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23632[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda.  Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23632[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Halo! Senang bertemu dengan Anda.  Bagaimana kabar Anda?' for output. 
-----------------------
21-11-2025 06:39:03.23633[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bertemu dengan Anda.  Bagaimana kabar Anda?' to the response array. tag name is random 
-----------------------
21-11-2025 06:39:03.23633[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23634[2][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda.  Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23634[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23635[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23635[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the response array. tag name is template. 
-----------------------
21-11-2025 06:39:03.23636[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23637[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23637[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23638[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23656[1][4] - Elapsed time: 0.187 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HALO'. 
-----------------------
21-11-2025 06:39:03.23657[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
21-11-2025 06:39:03.23658[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
21-11-2025 06:39:03.23659[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23659[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
 
-----------------------
21-11-2025 06:39:03.23660[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the response array. tag name is srai 
-----------------------
21-11-2025 06:39:03.23661[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23661[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23662[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23662[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23663[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the response array. tag name is template. 
-----------------------
21-11-2025 06:39:03.23663[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
21-11-2025 06:39:03.23664[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
)

 
-----------------------
21-11-2025 06:39:03.23664[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
21-11-2025 06:39:03.23665[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23665[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! Senang bertemu dengan Anda. Bagaimana kabar Anda? 
-----------------------
21-11-2025 06:39:03.23666[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
21-11-2025 06:39:03.23667[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
21-11-2025 06:39:03.23667[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the front of the [that_raw] array 
-----------------------
21-11-2025 06:39:03.23668[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
21-11-2025 06:39:03.23676[2][4] - Elapsed time: 0.079 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the front of the [that] array 
-----------------------
21-11-2025 06:39:03.23678[4][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
21-11-2025 06:39:03.23679[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
21-11-2025 06:39:03.23680[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
21-11-2025 06:39:03.23681[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
21-11-2025 06:39:03.23681[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
21-11-2025 06:39:03.23682[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Senang bertemu dengan Anda.' 
-----------------------
21-11-2025 06:39:03.23682[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Senang bertemu dengan Anda.' 
-----------------------
21-11-2025 06:39:03.23683[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SENANG BERTEMU DENGAN ANDA' 
-----------------------
21-11-2025 06:39:03.23683[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SENANG BERTEMU DENGAN ANDA' 
-----------------------
21-11-2025 06:39:03.23684[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23684[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Bagaimana kabar Anda?' 
-----------------------
21-11-2025 06:39:03.23685[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BAGAIMANA KABAR ANDA' 
-----------------------
21-11-2025 06:39:03.23686[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'BAGAIMANA KABAR ANDA' 
-----------------------
21-11-2025 06:39:03.23687[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?' to the front of the [parsed_template] array 
-----------------------
21-11-2025 06:39:03.23687[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
21-11-2025 06:39:03.23688[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai>HALO</srai>' to the front of the [template] array 
-----------------------
21-11-2025 06:39:03.23689[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
21-11-2025 06:39:03.23690[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
21-11-2025 06:39:03.23691[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'HELLO',
      'Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?',
      156,
      '2805fac202d2c73d45e5094746a93baf',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
21-11-2025 06:39:03.23877[4][4] - Elapsed time: 1.867 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
21-11-2025 06:39:03.23895[3][4] - Elapsed time: 0.177 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 
-----------------------
21-11-2025 06:39:03.23918[2][4] - Elapsed time: 0.233 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
21-11-2025 06:39:03.23919[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
21-11-2025 06:39:03.23920[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
21-11-2025 06:39:03.23923[4][4] - Elapsed time: 0.028 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"2805fac202d2c73d45e5094746a93baf","usersay":"HELLO","botsay":"Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?","botData":{"convo_id":"2805fac202d2c73d45e5094746a93baf","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"156","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)"}}} 
-----------------------
21-11-2025 06:39:03.24074[2][4] - Elapsed time: 1.510 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
21-11-2025 06:39:03.24078[0][4] - Elapsed time: 0.040 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 39.312 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => HELLO
    [conversation] => Array
        (
            [convo_id] => 2805fac202d2c73d45e5094746a93baf
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 156
            [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! Senang bertemu dengan Anda. Bagaimana kabar Anda?
        )

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

    [time_start] => 1763681943.2014
    [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] => Bagaimana kabar Anda?
                    [3] => Senang bertemu dengan Anda.
                    [4] => Halo!
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => BAGAIMANA KABAR ANDA
                    [2] => SENANG BERTEMU DENGAN ANDA
                    [3] => HALO
                )

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

    [parsed_template] => Array
        (
            [1] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
            [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":"2805fac202d2c73d45e5094746a93baf","usersay":"HELLO","botsay":"Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?","botData":{"convo_id":"2805fac202d2c73d45e5094746a93baf","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"156","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: 39.312 Milliseconds. Goodbye.