04-11-2025 14:58:58.86128[0][4] - Elapsed time: 0.692 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 
-----------------------
04-11-2025 14:58:58.86147[4][4] - Elapsed time: 0.186 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
04-11-2025 14:58:58.86160[4][4] - Elapsed time: 0.133 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
04-11-2025 14:58:58.86167[4][4] - Elapsed time: 0.070 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
04-11-2025 14:58:58.86192[4][4] - Elapsed time: 0.251 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
04-11-2025 14:58:58.86193[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
04-11-2025 14:58:58.86205[0][4] - Elapsed time: 0.117 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = e320c1d7f6010d4365ca5b5f57483775 
-----------------------
04-11-2025 14:58:58.86206[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halo'. 
-----------------------
04-11-2025 14:58:58.86207[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
04-11-2025 14:58:58.86208[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
04-11-2025 14:58:58.86209[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; 
-----------------------
04-11-2025 14:58:58.86229[1][4] - Elapsed time: 0.202 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: e320c1d7f6010d4365ca5b5f57483775 
-----------------------
04-11-2025 14:58:58.86230[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
04-11-2025 14:58:58.86231[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; 
-----------------------
04-11-2025 14:58:58.86253[2][4] - Elapsed time: 0.223 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
04-11-2025 14:58:58.86254[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
04-11-2025 14:58:58.86274[2][4] - Elapsed time: 0.201 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
04-11-2025 14:58:58.86297[3][4] - Elapsed time: 0.229 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #39 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'e320c1d7f6010d4365ca5b5f57483775'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
04-11-2025 14:58:58.86315[3][4] - Elapsed time: 0.178 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` = 39 AND `bot_id` = 1; 
-----------------------
04-11-2025 14:58:58.86335[2][4] - Elapsed time: 0.200 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
04-11-2025 14:58:58.86336[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halo. 
-----------------------
04-11-2025 14:58:58.86337[2][4] - Elapsed time: 0.008 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
04-11-2025 14:58:58.86367[4][4] - Elapsed time: 0.296 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
04-11-2025 14:58:58.86368[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
04-11-2025 14:58:58.86369[2][4] - Elapsed time: 0.007 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: e320c1d7f6010d4365ca5b5f57483775
Bot id: 1
Format:  
-----------------------
04-11-2025 14:58:58.86370[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
04-11-2025 14:58:58.86370[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
04-11-2025 14:58:58.86371[3][4] - Elapsed time: 0.008 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` = 39 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
04-11-2025 14:58:58.86426[4][4] - Elapsed time: 0.545 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
04-11-2025 14:58:58.86449[2][4] - Elapsed time: 0.233 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
04-11-2025 14:58:58.86450[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
04-11-2025 14:58:58.86468[4][4] - Elapsed time: 0.184 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
04-11-2025 14:58:58.86470[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
04-11-2025 14:58:58.86470[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
04-11-2025 14:58:58.86471[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = halo 
-----------------------
04-11-2025 14:58:58.86471[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
04-11-2025 14:58:58.86472[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
04-11-2025 14:58:58.86473[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
04-11-2025 14:58:58.86474[0][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halo, RAW say = halo 
-----------------------
04-11-2025 14:58:58.86475[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halo' to the front of the [input] array 
-----------------------
04-11-2025 14:58:58.86475[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
04-11-2025 14:58:58.86476[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
04-11-2025 14:58:58.86477[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
04-11-2025 14:58:58.86478[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
04-11-2025 14:58:58.86478[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 
-----------------------
04-11-2025 14:58:58.86498[4][4] - Elapsed time: 0.199 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
04-11-2025 14:58:58.86500[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` = 'e320c1d7f6010d4365ca5b5f57483775'
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:58:58.86521[2][4] - Elapsed time: 0.209 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
04-11-2025 14:58:58.86522[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
04-11-2025 14:58:58.86522[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
04-11-2025 14:58:58.86542[4][4] - Elapsed time: 0.193 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
04-11-2025 14:58:58.86543[3][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:58:58.86573[3][4] - Elapsed time: 0.299 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
04-11-2025 14:58:58.86574[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (5) potential AIML matches 
-----------------------
04-11-2025 14:58:58.86594[4][4] - Elapsed time: 0.202 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 5 rows to unset bad matches 
-----------------------
04-11-2025 14:58:58.86595[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HALO' 
-----------------------
04-11-2025 14:58:58.86604[4][4] - Elapsed time: 0.088 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
04-11-2025 14:58:58.86605[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 14:58:58.86627[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)
        )

)
 
-----------------------
04-11-2025 14:58:58.86629[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)
        )

)

 
-----------------------
04-11-2025 14:58:58.86642[4][4] - Elapsed time: 0.133 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)
)
 
-----------------------
04-11-2025 14:58:58.86643[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
04-11-2025 14:58:58.86644[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:337 (HALO) 
-----------------------
04-11-2025 14:58:58.86645[3][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
04-11-2025 14:58:58.86646[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
04-11-2025 14:58:58.86646[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 14:58:58.86647[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 14:58:58.86648[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
)
 
-----------------------
04-11-2025 14:58:58.86649[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
04-11-2025 14:58:58.86649[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
04-11-2025 14:58:58.86650[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><text>HAI</text></srai></template> 
-----------------------
04-11-2025 14:58:58.86654[2][4] - Elapsed time: 0.041 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86657[4][4] - Elapsed time: 0.024 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><srai><text>HAI</text></srai></template>
 
-----------------------
04-11-2025 14:58:58.86658[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. 
-----------------------
04-11-2025 14:58:58.86659[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86659[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><text>HAI</text></srai> 
-----------------------
04-11-2025 14:58:58.86660[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86661[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
04-11-2025 14:58:58.86661[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
04-11-2025 14:58:58.86662[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
04-11-2025 14:58:58.86663[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86663[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 2. element XML = <text>HAI</text> 
-----------------------
04-11-2025 14:58:58.86664[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86664[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
04-11-2025 14:58:58.86665[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 14:58:58.86666[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'HAI' to the response array. tag name is text 
-----------------------
04-11-2025 14:58:58.86666[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86667[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => HAI
        )

)

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

 
-----------------------
04-11-2025 14:58:58.86669[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86670[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HAI' 
-----------------------
04-11-2025 14:58:58.86670[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to HAI. 
-----------------------
04-11-2025 14:58:58.86671[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
04-11-2025 14:58:58.86671[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 14:58:58.86672[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 14:58:58.86673[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
)
 
-----------------------
04-11-2025 14:58:58.86673[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'HAI'. 
-----------------------
04-11-2025 14:58:58.86674[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
04-11-2025 14:58:58.86674[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
04-11-2025 14:58:58.86675[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 ); 
-----------------------
04-11-2025 14:58:58.86713[2][4] - Elapsed time: 0.378 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
        )

)
 
-----------------------
04-11-2025 14:58:58.86714[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][run_srai][438]
Found 11 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
        )

)
 
-----------------------
04-11-2025 14:58:58.86715[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][440]
Found a matching entry in the lookup table. Using ID# 105. 
-----------------------
04-11-2025 14:58:58.86731[2][4] - Elapsed time: 0.166 milliseconds
[parse_aiml.php][run_srai][443]
Row found in AIML for ID 105:  
-----------------------
04-11-2025 14:58:58.86732[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 'HAI'. 
-----------------------
04-11-2025 14:58:58.86733[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; 
-----------------------
04-11-2025 14:58:58.86757[2][4] - Elapsed time: 0.240 milliseconds
[parse_aiml.php][run_srai][477]
Found 1 potential responses. 
-----------------------
04-11-2025 14:58:58.86758[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
    [0] => Array
        (
            [id] => 336
            [pattern] => HAI
            [thatpattern] => 
            [topic] => 
        )

)
 
-----------------------
04-11-2025 14:58:58.86758[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][485]
FOUND: (1) potential AIML matches 
-----------------------
04-11-2025 14:58:58.86779[4][4] - Elapsed time: 0.204 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
04-11-2025 14:58:58.86779[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 'HAI' 
-----------------------
04-11-2025 14:58:58.86783[4][4] - Elapsed time: 0.036 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
04-11-2025 14:58:58.86784[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 14:58:58.86805[4][4] - Elapsed time: 0.213 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)
        )

)
 
-----------------------
04-11-2025 14:58:58.86806[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)
        )

)

 
-----------------------
04-11-2025 14:58:58.86813[4][4] - Elapsed time: 0.066 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)
)
 
-----------------------
04-11-2025 14:58:58.86814[2][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
04-11-2025 14:58:58.86832[2][4] - Elapsed time: 0.185 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
04-11-2025 14:58:58.86834[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> 
-----------------------
04-11-2025 14:58:58.86837[2][4] - Elapsed time: 0.031 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86839[4][4] - Elapsed time: 0.024 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><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>
 
-----------------------
04-11-2025 14:58:58.86840[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. 
-----------------------
04-11-2025 14:58:58.86841[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86842[4][4] - Elapsed time: 0.015 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> 
-----------------------
04-11-2025 14:58:58.86843[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86843[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
04-11-2025 14:58:58.86844[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... 
-----------------------
04-11-2025 14:58:58.86847[4][4] - Elapsed time: 0.031 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.
        )

)
 
-----------------------
04-11-2025 14:58:58.86848[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #0 from random tag.
 
-----------------------
04-11-2025 14:58:58.86848[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86849[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Halo, </text><get name="namaku"/><text>! Ada yang bisa aku bantu?</text></li> 
-----------------------
04-11-2025 14:58:58.86850[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. 
-----------------------
04-11-2025 14:58:58.86851[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86851[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Halo, </text> 
-----------------------
04-11-2025 14:58:58.86852[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86853[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
04-11-2025 14:58:58.86853[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 14:58:58.86854[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo, ' to the response array. tag name is text 
-----------------------
04-11-2025 14:58:58.86854[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86855[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, 
)

 
-----------------------
04-11-2025 14:58:58.86855[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86856[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, ' 
-----------------------
04-11-2025 14:58:58.86856[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo, ' to the response array. tag name is li. 
-----------------------
04-11-2025 14:58:58.86857[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86858[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element get at level 3. element XML = <get name="namaku"/> 
-----------------------
04-11-2025 14:58:58.86858[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_get_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86859[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element get to the parse_get_tag function 
-----------------------
04-11-2025 14:58:58.86859[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][519]
Client properties(get): Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
)
 
-----------------------
04-11-2025 14:58:58.86860[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][520]
Parsing a GET tag. Oh, and getting a sandwich while I'm at it. 
-----------------------
04-11-2025 14:58:58.86861[2][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][get_client_property][770]
Rummaging through various locations for client property 'namaku' 
-----------------------
04-11-2025 14:58:58.86862[2][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_client_property][781]
Client property 'namaku' not found in the conversation array. Searching the DB. 
-----------------------
04-11-2025 14:58:58.86862[3][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_client_property][793]
Querying the client_properties table for namaku. SQL:
SELECT `value` FROM `siew8359_dannu`.`client_properties` WHERE `user_id` = 39 AND `bot_id` = 1 AND `name` = 'namaku' limit 1; 
-----------------------
04-11-2025 14:58:58.86882[2][4] - Elapsed time: 0.194 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][542]
Client properties(get2): Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
)
 
-----------------------
04-11-2025 14:58:58.86883[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'undefined' to the response array. tag name is get 
-----------------------
04-11-2025 14:58:58.86883[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86884[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => undefined
)

 
-----------------------
04-11-2025 14:58:58.86884[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86885[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'undefined' 
-----------------------
04-11-2025 14:58:58.86885[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'undefined' to the response array. tag name is li. 
-----------------------
04-11-2025 14:58:58.86886[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:58:58.86887[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>! Ada yang bisa aku bantu?</text> 
-----------------------
04-11-2025 14:58:58.86888[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
04-11-2025 14:58:58.86888[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
04-11-2025 14:58:58.86889[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 14:58:58.86889[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '! Ada yang bisa aku bantu?' to the response array. tag name is text 
-----------------------
04-11-2025 14:58:58.86890[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86890[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86891[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86892[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86892[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '! Ada yang bisa aku bantu?' to the response array. tag name is li. 
-----------------------
04-11-2025 14:58:58.86893[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86893[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, 
    [1] => undefined
    [2] => ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86894[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86894[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, undefined ! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86895[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Halo, undefined ! Ada yang bisa aku bantu?' for output. 
-----------------------
04-11-2025 14:58:58.86895[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo, undefined ! Ada yang bisa aku bantu?' to the response array. tag name is random 
-----------------------
04-11-2025 14:58:58.86896[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86896[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, undefined ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86897[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86897[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, undefined ! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86898[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo, undefined ! Ada yang bisa aku bantu?' to the response array. tag name is template. 
-----------------------
04-11-2025 14:58:58.86899[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86899[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, undefined ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86900[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86900[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, undefined ! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86920[1][4] - Elapsed time: 0.195 milliseconds
[parse_aiml.php][run_srai][567]
Successfully inserted entry for 'HAI'. 
-----------------------
04-11-2025 14:58:58.86921[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][576]
Returning results from stored srai lookup. 
-----------------------
04-11-2025 14:58:58.86922[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
04-11-2025 14:58:58.86922[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86923[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Halo, undefined ! Ada yang bisa aku bantu?
 
-----------------------
04-11-2025 14:58:58.86923[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Halo, undefined ! Ada yang bisa aku bantu?' to the response array. tag name is srai 
-----------------------
04-11-2025 14:58:58.86924[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86924[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, undefined ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86925[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86925[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, undefined ! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86926[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Halo, undefined ! Ada yang bisa aku bantu?' to the response array. tag name is template. 
-----------------------
04-11-2025 14:58:58.86927[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:58:58.86927[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo, undefined ! Ada yang bisa aku bantu?
)

 
-----------------------
04-11-2025 14:58:58.86927[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:58:58.86928[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo, undefined ! Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86929[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, undefined ! Ada yang bisa aku bantu? 
-----------------------
04-11-2025 14:58:58.86929[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
04-11-2025 14:58:58.86930[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
04-11-2025 14:58:58.86930[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo, undefined ! Ada yang bisa aku bantu?' to the front of the [that_raw] array 
-----------------------
04-11-2025 14:58:58.86931[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
04-11-2025 14:58:58.86934[2][4] - Elapsed time: 0.025 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo, undefined ! Ada yang bisa aku bantu?' to the front of the [that] array 
-----------------------
04-11-2025 14:58:58.86934[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
04-11-2025 14:58:58.86935[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo, undefined !' 
-----------------------
04-11-2025 14:58:58.86936[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo, undefined !' 
-----------------------
04-11-2025 14:58:58.86937[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO UNDEFINED' 
-----------------------
04-11-2025 14:58:58.86938[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO UNDEFINED' 
-----------------------
04-11-2025 14:58:58.86938[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86939[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Ada yang bisa aku bantu?' 
-----------------------
04-11-2025 14:58:58.86939[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'ADA YANG BISA AKU BANTU' 
-----------------------
04-11-2025 14:58:58.86940[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'ADA YANG BISA AKU BANTU' 
-----------------------
04-11-2025 14:58:58.86941[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Halo, undefined ! Ada yang bisa aku bantu?' to the front of the [parsed_template] array 
-----------------------
04-11-2025 14:58:58.86942[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
04-11-2025 14:58:58.86942[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 
-----------------------
04-11-2025 14:58:58.86943[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
04-11-2025 14:58:58.86944[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
04-11-2025 14:58:58.86945[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 ,
      'halo',
      'Halo, undefined ! Ada yang bisa aku bantu?',
      39,
      'e320c1d7f6010d4365ca5b5f57483775',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
04-11-2025 14:58:58.87054[4][4] - Elapsed time: 1.093 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
04-11-2025 14:58:58.87074[3][4] - Elapsed time: 0.194 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 
-----------------------
04-11-2025 14:58:58.87095[2][4] - Elapsed time: 0.211 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
04-11-2025 14:58:58.87096[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
04-11-2025 14:58:58.87096[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
04-11-2025 14:58:58.87098[4][4] - Elapsed time: 0.013 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"e320c1d7f6010d4365ca5b5f57483775","usersay":"halo","botsay":"Halo, undefined ! Ada yang bisa aku bantu?","botData":{"convo_id":"e320c1d7f6010d4365ca5b5f57483775","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"39","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)"}}} 
-----------------------
04-11-2025 14:58:58.87117[2][4] - Elapsed time: 0.195 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
04-11-2025 14:58:58.87119[0][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 10.588 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halo
    [conversation] => Array
        (
            [convo_id] => e320c1d7f6010d4365ca5b5f57483775
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 39
            [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, undefined ! Ada yang bisa aku bantu?
        )

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

    [time_start] => 1762243138.8606
    [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] => Ada yang bisa aku bantu?
                    [3] => Halo, undefined !
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => ADA YANG BISA AKU BANTU
                    [2] => HALO UNDEFINED
                )

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

    [parsed_template] => Array
        (
            [1] => Halo, undefined ! Ada yang bisa aku bantu?
            [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":"e320c1d7f6010d4365ca5b5f57483775","usersay":"halo","botsay":"Halo, undefined ! Ada yang bisa aku bantu?","botData":{"convo_id":"e320c1d7f6010d4365ca5b5f57483775","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"39","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: 10.588 Milliseconds. Goodbye.