10-11-2025 10:01:07.54090[0][4] - Elapsed time: 4.948 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 10:01:07.54117[4][4] - Elapsed time: 0.267 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 10:01:07.54138[4][4] - Elapsed time: 0.209 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 10:01:07.54147[4][4] - Elapsed time: 0.098 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 10:01:07.54185[4][4] - Elapsed time: 0.380 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 10:01:07.54187[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 10:01:07.54199[0][4] - Elapsed time: 0.122 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 41ef76f4924e783452e286adda3a3d2e 
-----------------------
10-11-2025 10:01:07.54200[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halo'. 
-----------------------
10-11-2025 10:01:07.54201[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 10:01:07.54202[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 10:01:07.54203[3][4] - Elapsed time: 0.010 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 10:01:07.54226[1][4] - Elapsed time: 0.227 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 41ef76f4924e783452e286adda3a3d2e 
-----------------------
10-11-2025 10:01:07.54227[2][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 10:01:07.54228[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
10-11-2025 10:01:07.54254[2][4] - Elapsed time: 0.264 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 10:01:07.54256[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 10:01:07.54276[2][4] - Elapsed time: 0.208 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
10-11-2025 10:01:07.54299[3][4] - Elapsed time: 0.230 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #57 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '41ef76f4924e783452e286adda3a3d2e'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
10-11-2025 10:01:07.54316[3][4] - Elapsed time: 0.167 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` = 57 AND `bot_id` = 1; 
-----------------------
10-11-2025 10:01:07.54338[2][4] - Elapsed time: 0.218 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 10:01:07.54344[2][4] - Elapsed time: 0.058 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halo. 
-----------------------
10-11-2025 10:01:07.54345[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 10:01:07.54382[4][4] - Elapsed time: 0.377 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
10-11-2025 10:01:07.54395[4][4] - Elapsed time: 0.127 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
10-11-2025 10:01:07.54396[2][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: 41ef76f4924e783452e286adda3a3d2e
Bot id: 1
Format:  
-----------------------
10-11-2025 10:01:07.54397[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 10:01:07.54398[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 10:01:07.54399[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` = 57 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 10:01:07.54459[4][4] - Elapsed time: 0.602 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
10-11-2025 10:01:07.54509[2][4] - Elapsed time: 0.500 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 10:01:07.54510[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 10:01:07.54530[4][4] - Elapsed time: 0.197 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 10:01:07.54531[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 10:01:07.54532[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 10:01:07.54533[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = halo 
-----------------------
10-11-2025 10:01:07.54533[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 10:01:07.54534[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
10-11-2025 10:01:07.54537[4][4] - Elapsed time: 0.030 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 10:01:07.54538[0][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halo, RAW say = halo 
-----------------------
10-11-2025 10:01:07.54539[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halo' to the front of the [input] array 
-----------------------
10-11-2025 10:01:07.54540[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 10:01:07.54540[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 10:01:07.54541[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
10-11-2025 10:01:07.54542[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
10-11-2025 10:01:07.54542[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 10:01:07.54564[4][4] - Elapsed time: 0.211 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 10:01:07.54565[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` = '41ef76f4924e783452e286adda3a3d2e'
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:01:07.54585[2][4] - Elapsed time: 0.201 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 10:01:07.54586[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 10:01:07.54587[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 10:01:07.54607[4][4] - Elapsed time: 0.196 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 10:01:07.54608[3][4] - Elapsed time: 0.016 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 (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 10:01:07.54639[3][4] - Elapsed time: 0.311 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 10:01:07.54641[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
10-11-2025 10:01:07.54664[4][4] - Elapsed time: 0.228 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
10-11-2025 10:01:07.54665[4][4] - Elapsed time: 0.009 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 10:01:07.54681[4][4] - Elapsed time: 0.160 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 10:01:07.54682[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 10:01:07.54704[4][4] - Elapsed time: 0.223 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 337
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <srai>HAI</srai>
            [score] => 260
            [current_that] => 
            [aiml_id] => 337
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
        )

    [1] => Array
        (
            [id] => 366
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <random>
            <li>Maaf, <get name="namaku"/>, aku nggak ngerti maksud kamu.</li>
            <li>Hmm, bisa diulangi dengan kalimat lain?</li>
            <li>Aku masih belajar nih. Coba tanya yang lain.</li>
            <li>Kalau soal itu aku kurang paham.</li>
        </random>
            [score] => 252
            [current_that] => 
            [aiml_id] => 366
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 10:01:07.54706[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 337
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <srai>HAI</srai>
            [score] => 260
            [current_that] => 
            [aiml_id] => 337
            [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 10:01:07.54732[4][4] - Elapsed time: 0.263 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 337
    [bot_id] => 1
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [filename] => bot.aiml
    [template] => <srai>HAI</srai>
    [score] => 260
    [current_that] => 
    [aiml_id] => 337
    [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 10:01:07.54733[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 10:01:07.54734[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:337 (HALO) 
-----------------------
10-11-2025 10:01:07.54735[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 10:01:07.54736[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
10-11-2025 10:01:07.54736[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 10:01:07.54737[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 10:01:07.54738[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 337
    [category_id] => 337
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

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

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

    [user_raw] => halo
)
 
-----------------------
10-11-2025 10:01:07.54739[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 10:01:07.54740[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 10:01:07.54745[4][4] - Elapsed time: 0.049 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HAI</text></srai></template> 
-----------------------
10-11-2025 10:01:07.54755[2][4] - Elapsed time: 0.108 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54760[4][4] - Elapsed time: 0.045 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><srai><text>HAI</text></srai></template>
 
-----------------------
10-11-2025 10:01:07.54761[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 10:01:07.54762[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54764[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HAI</text></srai> 
-----------------------
10-11-2025 10:01:07.54765[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
10-11-2025 10:01:07.54765[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 10:01:07.54766[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
10-11-2025 10:01:07.54767[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 10:01:07.54767[2][4] - Elapsed time: 0.008 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54768[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HAI</text> 
-----------------------
10-11-2025 10:01:07.54769[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 10:01:07.54770[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 10:01:07.54770[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 10:01:07.54771[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HAI' to the response array. tag name is text 
-----------------------
10-11-2025 10:01:07.54772[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:07.54772[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HAI
        )

)

 
-----------------------
10-11-2025 10:01:07.54773[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 10:01:07.54773[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 10:01:07.54774[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => HAI
)

 
-----------------------
10-11-2025 10:01:07.54774[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 10:01:07.54775[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HAI' 
-----------------------
10-11-2025 10:01:07.54776[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HAI. 
-----------------------
10-11-2025 10:01:07.54776[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
10-11-2025 10:01:07.54777[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 10:01:07.54777[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 10:01:07.54778[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 337
    [category_id] => 337
    [html_template] => 
    [lookingfor] => HAI
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

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

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

    [user_raw] => halo
)
 
-----------------------
10-11-2025 10:01:07.54779[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HAI'. 
-----------------------
10-11-2025 10:01:07.54780[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
10-11-2025 10:01:07.54780[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
10-11-2025 10:01:07.54781[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][431]
lookup SQL = select `template_id` from `siew8359_dannu`.`srai_lookup` where `pattern` like '%HAI%' and ( bot_id = 1 ); 
-----------------------
10-11-2025 10:01:07.54803[2][4] - Elapsed time: 0.221 milliseconds
[parse_aiml.php][run_srai][433]
Result = Array
(
    [0] => Array
        (
            [template_id] => 105
        )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
10-11-2025 10:01:07.54804[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][run_srai][438]
Found 17 rows in lookup table: Array
(
    [0] => Array
        (
            [template_id] => 105
        )

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

)
 
-----------------------
10-11-2025 10:01:07.54805[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 105. 
-----------------------
10-11-2025 10:01:07.54820[2][4] - Elapsed time: 0.151 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 105:  
-----------------------
10-11-2025 10:01:07.54821[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][run_srai][466]
Nothing found in the SRAI lookup table. Looking for a direct pattern match for 'HAI'. 
-----------------------
10-11-2025 10:01:07.54821[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][473]
lookup SQL = SELECT `id`, `pattern`, `thatpattern`, `topic` FROM `siew8359_dannu`.`aiml` where `pattern` like '%HAI%' and  bot_id = 1  order by `id` asc; 
-----------------------
10-11-2025 10:01:07.54857[2][4] - Elapsed time: 0.357 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
10-11-2025 10:01:07.54858[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 336
            [pattern] => HAI
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
10-11-2025 10:01:07.54859[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
10-11-2025 10:01:07.54880[4][4] - Elapsed time: 0.210 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
10-11-2025 10:01:07.54880[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 10:01:07.54885[4][4] - Elapsed time: 0.045 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
10-11-2025 10:01:07.54886[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 10:01:07.54907[4][4] - Elapsed time: 0.210 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 336
            [pattern] => HAI
            [thatpattern] => 
            [topic] => 
            [aiml_id] => 336
            [score] => 260
            [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 10:01:07.54908[2][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 336
            [pattern] => HAI
            [thatpattern] => 
            [topic] => 
            [aiml_id] => 336
            [score] => 260
            [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 10:01:07.54917[4][4] - Elapsed time: 0.088 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 336
    [pattern] => HAI
    [thatpattern] => 
    [topic] => 
    [aiml_id] => 336
    [score] => 260
    [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 10:01:07.54918[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 10:01:07.54937[2][4] - Elapsed time: 0.192 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 10:01:07.54939[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo, </text><get name="namaku"/><text>! Ada yang bisa aku bantu?</text></li><li><text>Hai juga! Lagi apa nih?</text></li><li><text>Halo! Senang bisa ngobrol sama kamu.</text></li></random></template> 
-----------------------
10-11-2025 10:01:07.54942[2][4] - Elapsed time: 0.031 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54945[4][4] - Elapsed time: 0.028 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, </text><get name="namaku"/><text>! Ada yang bisa aku bantu?</text></li><li><text>Hai juga! Lagi apa nih?</text></li><li><text>Halo! Senang bisa ngobrol sama kamu.</text></li></random></template>
 
-----------------------
10-11-2025 10:01:07.54945[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. 
-----------------------
10-11-2025 10:01:07.54946[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54948[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Halo, </text><get name="namaku"/><text>! Ada yang bisa aku bantu?</text></li><li><text>Hai juga! Lagi apa nih?</text></li><li><text>Halo! Senang bisa ngobrol sama kamu.</text></li></random> 
-----------------------
10-11-2025 10:01:07.54948[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 10:01:07.54949[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 10:01:07.54949[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 10:01:07.54954[4][4] - Elapsed time: 0.045 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Array
                (
                    [0] => Halo, 
                    [1] => ! Ada yang bisa aku bantu?
                )

            [get] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [name] => namaku
                        )

                )

        )

    [1] => SimpleXMLElement Object
        (
            [text] => Hai juga! Lagi apa nih?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Halo! Senang bisa ngobrol sama kamu.
        )

)
 
-----------------------
10-11-2025 10:01:07.54955[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #2 from random tag.
 
-----------------------
10-11-2025 10:01:07.54955[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54956[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Halo! Senang bisa ngobrol sama kamu.</text></li> 
-----------------------
10-11-2025 10:01:07.54957[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 10:01:07.54957[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 10:01:07.54958[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Halo! Senang bisa ngobrol sama kamu.</text> 
-----------------------
10-11-2025 10:01:07.54959[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 10:01:07.54959[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 10:01:07.54960[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 10:01:07.54960[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is text 
-----------------------
10-11-2025 10:01:07.54961[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 10:01:07.54961[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54962[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 10:01:07.54962[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54963[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is li. 
-----------------------
10-11-2025 10:01:07.54964[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 10:01:07.54964[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54965[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 10:01:07.54965[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54966[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Halo! Senang bisa ngobrol sama kamu.' for output. 
-----------------------
10-11-2025 10:01:07.54966[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is random 
-----------------------
10-11-2025 10:01:07.54967[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 10:01:07.54967[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54968[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 10:01:07.54968[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54969[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is template. 
-----------------------
10-11-2025 10:01:07.54970[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 10:01:07.54970[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54971[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 10:01:07.54971[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54989[1][4] - Elapsed time: 0.175 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HAI'. 
-----------------------
10-11-2025 10:01:07.54990[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
10-11-2025 10:01:07.54991[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
10-11-2025 10:01:07.54991[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 10:01:07.54992[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Halo! Senang bisa ngobrol sama kamu.
 
-----------------------
10-11-2025 10:01:07.54993[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is srai 
-----------------------
10-11-2025 10:01:07.54993[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 10:01:07.54994[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54994[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 10:01:07.54995[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54995[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo! Senang bisa ngobrol sama kamu.' to the response array. tag name is template. 
-----------------------
10-11-2025 10:01:07.54996[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 10:01:07.54996[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo! Senang bisa ngobrol sama kamu.
)

 
-----------------------
10-11-2025 10:01:07.54997[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 10:01:07.54997[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo! Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.54998[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Halo! Senang bisa ngobrol sama kamu. 
-----------------------
10-11-2025 10:01:07.54999[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 10:01:07.54999[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 10:01:07.55000[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bisa ngobrol sama kamu.' to the front of the [that_raw] array 
-----------------------
10-11-2025 10:01:07.55001[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 10:01:07.55008[2][4] - Elapsed time: 0.072 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bisa ngobrol sama kamu.' to the front of the [that] array 
-----------------------
10-11-2025 10:01:07.55009[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 10:01:07.55010[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo!' 
-----------------------
10-11-2025 10:01:07.55011[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo!' 
-----------------------
10-11-2025 10:01:07.55012[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
10-11-2025 10:01:07.55012[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
10-11-2025 10:01:07.55013[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.55013[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Senang bisa ngobrol sama kamu.' 
-----------------------
10-11-2025 10:01:07.55014[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SENANG BISA NGOBROL SAMA KAMU' 
-----------------------
10-11-2025 10:01:07.55015[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SENANG BISA NGOBROL SAMA KAMU' 
-----------------------
10-11-2025 10:01:07.55016[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo! Senang bisa ngobrol sama kamu.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 10:01:07.55016[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 10:01:07.55017[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai>HAI</srai>' to the front of the [template] array 
-----------------------
10-11-2025 10:01:07.55018[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 10:01:07.55019[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 10:01:07.55020[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 ,
      'halo',
      'Halo! Senang bisa ngobrol sama kamu.',
      57,
      '41ef76f4924e783452e286adda3a3d2e',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 10:01:07.55141[4][4] - Elapsed time: 1.211 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 10:01:07.55158[3][4] - Elapsed time: 0.174 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 10:01:07.55181[2][4] - Elapsed time: 0.221 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 10:01:07.55182[4][4] - Elapsed time: 0.011 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 10:01:07.55182[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 10:01:07.55184[4][4] - Elapsed time: 0.015 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"41ef76f4924e783452e286adda3a3d2e","usersay":"halo","botsay":"Halo! Senang bisa ngobrol sama kamu.","botData":{"convo_id":"41ef76f4924e783452e286adda3a3d2e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"57","totallines":1,"user_name":"Seeker","rawSay":"halo","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":"336","pattern":"HAI","thatpattern":"","topic":"","aiml_id":"336","score":260,"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 10:01:07.55207[2][4] - Elapsed time: 0.237 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 10:01:07.55210[0][4] - Elapsed time: 0.023 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 16.133 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halo
    [conversation] => Array
        (
            [convo_id] => 41ef76f4924e783452e286adda3a3d2e
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 57
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => halo
            [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] => 336
                    [pattern] => HAI
                    [thatpattern] => 
                    [topic] => 
                    [aiml_id] => 336
                    [score] => 260
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hai (2 points)
                )

        )

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

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Halo! Senang bisa ngobrol sama kamu.
        )

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

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

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Senang bisa ngobrol sama kamu.
                    [3] => Halo!
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SENANG BISA NGOBROL SAMA KAMU
                    [2] => HALO
                )

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

    [parsed_template] => Array
        (
            [1] => Halo! Senang bisa ngobrol sama kamu.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

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

    [send_to_user] => {"convo_id":"41ef76f4924e783452e286adda3a3d2e","usersay":"halo","botsay":"Halo! Senang bisa ngobrol sama kamu.","botData":{"convo_id":"41ef76f4924e783452e286adda3a3d2e","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"57","totallines":1,"user_name":"Seeker","rawSay":"halo","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":"336","pattern":"HAI","thatpattern":"","topic":"","aiml_id":"336","score":260,"track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: hai (2 points)"}}}
)

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