04-11-2025 15:15:13.41269[0][4] - Elapsed time: 0.999 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 15:15:13.41317[4][4] - Elapsed time: 0.476 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
04-11-2025 15:15:13.41356[4][4] - Elapsed time: 0.394 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
04-11-2025 15:15:13.41375[4][4] - Elapsed time: 0.188 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
04-11-2025 15:15:13.41437[4][4] - Elapsed time: 0.612 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
04-11-2025 15:15:13.41439[4][4] - Elapsed time: 0.022 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
04-11-2025 15:15:13.41453[0][4] - Elapsed time: 0.138 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = adf1bf831c7a061d91e3ae2704ccd106 
-----------------------
04-11-2025 15:15:13.41454[4][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halo'. 
-----------------------
04-11-2025 15:15:13.41456[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
04-11-2025 15:15:13.41457[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
04-11-2025 15:15:13.41459[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_riski`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
04-11-2025 15:15:13.41500[1][4] - Elapsed time: 0.416 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: adf1bf831c7a061d91e3ae2704ccd106 
-----------------------
04-11-2025 15:15:13.41501[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
04-11-2025 15:15:13.41502[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
04-11-2025 15:15:13.41540[2][4] - Elapsed time: 0.374 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
04-11-2025 15:15:13.41541[2][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
04-11-2025 15:15:13.41576[2][4] - Elapsed time: 0.352 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
04-11-2025 15:15:13.41599[3][4] - Elapsed time: 0.232 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #3 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'adf1bf831c7a061d91e3ae2704ccd106'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
04-11-2025 15:15:13.41633[3][4] - Elapsed time: 0.332 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_riski`.`client_properties` WHERE `user_id` = 3 AND `bot_id` = 1; 
-----------------------
04-11-2025 15:15:13.41654[2][4] - Elapsed time: 0.213 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
04-11-2025 15:15:13.41655[2][4] - Elapsed time: 0.015 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halo. 
-----------------------
04-11-2025 15:15:13.41656[2][4] - Elapsed time: 0.009 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
04-11-2025 15:15:13.41710[4][4] - Elapsed time: 0.539 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
04-11-2025 15:15:13.41713[4][4] - Elapsed time: 0.030 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
04-11-2025 15:15:13.41715[2][4] - Elapsed time: 0.015 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALO
Convo id: adf1bf831c7a061d91e3ae2704ccd106
Bot id: 1
Format:  
-----------------------
04-11-2025 15:15:13.41716[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
04-11-2025 15:15:13.41717[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
04-11-2025 15:15:13.41719[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_riski`.`conversation_log` WHERE `user_id` = 3 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
04-11-2025 15:15:13.41774[4][4] - Elapsed time: 0.548 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
04-11-2025 15:15:13.41818[2][4] - Elapsed time: 0.445 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
04-11-2025 15:15:13.41821[3][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1; 
-----------------------
04-11-2025 15:15:13.41842[4][4] - Elapsed time: 0.214 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
04-11-2025 15:15:13.41844[0][4] - Elapsed time: 0.025 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
04-11-2025 15:15:13.41846[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
04-11-2025 15:15:13.41847[0][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALO: raw say = halo 
-----------------------
04-11-2025 15:15:13.41848[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
04-11-2025 15:15:13.41849[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [user_say] array 
-----------------------
04-11-2025 15:15:13.41851[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
04-11-2025 15:15:13.41853[0][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halo, RAW say = halo 
-----------------------
04-11-2025 15:15:13.41854[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halo' to the front of the [input] array 
-----------------------
04-11-2025 15:15:13.41855[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
04-11-2025 15:15:13.41857[4][4] - Elapsed time: 0.017 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
04-11-2025 15:15:13.41858[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO' 
-----------------------
04-11-2025 15:15:13.41860[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
04-11-2025 15:15:13.41861[4][4] - Elapsed time: 0.019 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
04-11-2025 15:15:13.41883[4][4] - Elapsed time: 0.212 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
04-11-2025 15:15:13.41885[3][4] - Elapsed time: 0.029 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_riski`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'adf1bf831c7a061d91e3ae2704ccd106'
    AND (
        'HALO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 15:15:13.41926[2][4] - Elapsed time: 0.407 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
04-11-2025 15:15:13.41928[4][4] - Elapsed time: 0.020 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
04-11-2025 15:15:13.41929[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
04-11-2025 15:15:13.41950[4][4] - Elapsed time: 0.209 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
04-11-2025 15:15:13.41953[3][4] - Elapsed time: 0.027 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_riski`.`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 15:15:13.41998[3][4] - Elapsed time: 0.449 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
04-11-2025 15:15:13.42000[2][4] - Elapsed time: 0.021 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
04-11-2025 15:15:13.42023[4][4] - Elapsed time: 0.235 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
04-11-2025 15:15:13.42025[4][4] - Elapsed time: 0.012 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 15:15:13.42034[4][4] - Elapsed time: 0.091 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
04-11-2025 15:15:13.42036[4][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 15:15:13.42059[4][4] - Elapsed time: 0.236 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 644
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [score] => 260
            [current_that] => 
            [aiml_id] => 644
            [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] => 657
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [score] => 252
            [current_that] => 
            [aiml_id] => 657
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
04-11-2025 15:15:13.42062[2][4] - Elapsed time: 0.025 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 644
            [bot_id] => 1
            [pattern] => HALO
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [score] => 260
            [current_that] => 
            [aiml_id] => 644
            [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 15:15:13.42081[4][4] - Elapsed time: 0.198 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 644
    [bot_id] => 1
    [pattern] => HALO
    [thatpattern] => 
    [topic] => 
    [filename] => chat_ai1.aiml
    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
    [score] => 260
    [current_that] => 
    [aiml_id] => 644
    [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 15:15:13.42083[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
04-11-2025 15:15:13.42086[4][4] - Elapsed time: 0.025 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:644 (HALO) 
-----------------------
04-11-2025 15:15:13.42087[3][4] - Elapsed time: 0.014 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
04-11-2025 15:15:13.42088[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'HALO' 
-----------------------
04-11-2025 15:15:13.42089[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 15:15:13.42090[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 15:15:13.42092[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 644
    [category_id] => 644
    [html_template] => 
    [lookingfor] => HALO
    [pattern] => HALO
    [score] => 260
    [stars] => Array
        (
        )

    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => halo
)
 
-----------------------
04-11-2025 15:15:13.42093[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
04-11-2025 15:15:13.42095[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
04-11-2025 15:15:13.42097[4][4] - Elapsed time: 0.023 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Halo juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random></template> 
-----------------------
04-11-2025 15:15:13.42105[2][4] - Elapsed time: 0.081 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 15:15:13.42110[4][4] - Elapsed time: 0.054 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 juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random></template>
 
-----------------------
04-11-2025 15:15:13.42112[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
04-11-2025 15:15:13.42114[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 15:15:13.42116[4][4] - Elapsed time: 0.026 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Halo juga! Siapa namamu?</text></li><li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li><li><text>Heyy! Lagi santai atau sibuk nih?</text></li></random> 
-----------------------
04-11-2025 15:15:13.42118[4][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
04-11-2025 15:15:13.42119[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
04-11-2025 15:15:13.42120[2][4] - Elapsed time: 0.010 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 15:15:13.42127[4][4] - Elapsed time: 0.063 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Halo juga! Siapa namamu?
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Hai, kenalan dulu yuk! Siapa nama kamu?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Heyy! Lagi santai atau sibuk nih?
        )

)
 
-----------------------
04-11-2025 15:15:13.42128[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #1 from random tag.
 
-----------------------
04-11-2025 15:15:13.42129[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 15:15:13.42131[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Hai, kenalan dulu yuk! Siapa nama kamu?</text></li> 
-----------------------
04-11-2025 15:15:13.42132[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
04-11-2025 15:15:13.42133[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 15:15:13.42135[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Hai, kenalan dulu yuk! Siapa nama kamu?</text> 
-----------------------
04-11-2025 15:15:13.42136[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
04-11-2025 15:15:13.42137[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
04-11-2025 15:15:13.42138[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 15:15:13.42139[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the response array. tag name is text 
-----------------------
04-11-2025 15:15:13.42140[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 15:15:13.42141[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
)

 
-----------------------
04-11-2025 15:15:13.42142[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 15:15:13.42143[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai, kenalan dulu yuk! Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42144[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the response array. tag name is li. 
-----------------------
04-11-2025 15:15:13.42146[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 15:15:13.42147[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
)

 
-----------------------
04-11-2025 15:15:13.42148[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 15:15:13.42149[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai, kenalan dulu yuk! Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42150[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Hai, kenalan dulu yuk! Siapa nama kamu?' for output. 
-----------------------
04-11-2025 15:15:13.42151[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the response array. tag name is random 
-----------------------
04-11-2025 15:15:13.42152[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 15:15:13.42153[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
)

 
-----------------------
04-11-2025 15:15:13.42154[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 15:15:13.42155[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai, kenalan dulu yuk! Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42156[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the response array. tag name is template. 
-----------------------
04-11-2025 15:15:13.42158[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 15:15:13.42159[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hai, kenalan dulu yuk! Siapa nama kamu?
)

 
-----------------------
04-11-2025 15:15:13.42160[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 15:15:13.42161[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hai, kenalan dulu yuk! Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42162[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Hai, kenalan dulu yuk! Siapa nama kamu? 
-----------------------
04-11-2025 15:15:13.42164[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
04-11-2025 15:15:13.42165[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
04-11-2025 15:15:13.42166[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the front of the [that_raw] array 
-----------------------
04-11-2025 15:15:13.42167[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
04-11-2025 15:15:13.42171[2][4] - Elapsed time: 0.037 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the front of the [that] array 
-----------------------
04-11-2025 15:15:13.42172[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
04-11-2025 15:15:13.42174[4][4] - Elapsed time: 0.021 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hai, kenalan dulu yuk!' 
-----------------------
04-11-2025 15:15:13.42175[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hai, kenalan dulu yuk!' 
-----------------------
04-11-2025 15:15:13.42177[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HAI KENALAN DULU YUK' 
-----------------------
04-11-2025 15:15:13.42178[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HAI KENALAN DULU YUK' 
-----------------------
04-11-2025 15:15:13.42179[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42180[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Siapa nama kamu?' 
-----------------------
04-11-2025 15:15:13.42181[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SIAPA NAMA KAMU' 
-----------------------
04-11-2025 15:15:13.42182[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SIAPA NAMA KAMU' 
-----------------------
04-11-2025 15:15:13.42184[2][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hai, kenalan dulu yuk! Siapa nama kamu?' to the front of the [parsed_template] array 
-----------------------
04-11-2025 15:15:13.42185[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
04-11-2025 15:15:13.42187[2][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>' to the front of the [template] array 
-----------------------
04-11-2025 15:15:13.42188[4][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
04-11-2025 15:15:13.42191[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
04-11-2025 15:15:13.42192[3][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_riski`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'halo',
      'Hai, kenalan dulu yuk! Siapa nama kamu?',
      3,
      'adf1bf831c7a061d91e3ae2704ccd106',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
04-11-2025 15:15:13.42295[4][4] - Elapsed time: 1.029 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
04-11-2025 15:15:13.42317[3][4] - Elapsed time: 0.212 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_riski`.`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 15:15:13.42343[2][4] - Elapsed time: 0.261 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
04-11-2025 15:15:13.42344[4][4] - Elapsed time: 0.014 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
04-11-2025 15:15:13.42345[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
04-11-2025 15:15:13.42346[4][4] - Elapsed time: 0.015 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"adf1bf831c7a061d91e3ae2704ccd106","usersay":"halo","botsay":"Hai, kenalan dulu yuk! Siapa nama kamu?","botData":{"convo_id":"adf1bf831c7a061d91e3ae2704ccd106","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"3","totallines":1,"user_name":"Seeker","rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"644","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chat_ai1.aiml","template":"<random>\n      <li>Halo juga! Siapa namamu?<\/li>\n      <li>Hai, kenalan dulu yuk! Siapa nama kamu?<\/li>\n      <li>Heyy! Lagi santai atau sibuk nih?<\/li>\n    <\/random>","score":260,"current_that":"","aiml_id":"644","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 15:15:13.42381[2][4] - Elapsed time: 0.345 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
04-11-2025 15:15:13.42383[0][4] - Elapsed time: 0.019 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 12.119 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halo
    [conversation] => Array
        (
            [convo_id] => adf1bf831c7a061d91e3ae2704ccd106
            [bot_name] => Chat.ai
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 3
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => halo
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => apriansyahrizky84@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 644
                    [bot_id] => 1
                    [pattern] => HALO
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chat_ai1.aiml
                    [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
                    [score] => 260
                    [current_that] => 
                    [aiml_id] => 644
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => halo
            [lookingfor] => HALO
            [category_id] => 644
            [pattern] => HALO
            [thatpattern] => 
            [template] => <random>
      <li>Halo juga! Siapa namamu?</li>
      <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li>
      <li>Heyy! Lagi santai atau sibuk nih?</li>
    </random>
            [html_template] => 
            [topic] => 
            [score] => 260
            [aiml_id] => 644
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Hai, kenalan dulu yuk! Siapa nama kamu?
        )

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

    [time_start] => 1762244113.4117
    [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] => Siapa nama kamu?
                    [3] => Hai, kenalan dulu yuk!
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SIAPA NAMA KAMU
                    [2] => HAI KENALAN DULU YUK
                )

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

    [parsed_template] => Array
        (
            [1] => Hai, kenalan dulu yuk! Siapa nama kamu?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <random> <li>Halo juga! Siapa namamu?</li> <li>Hai, kenalan dulu yuk! Siapa nama kamu?</li> <li>Heyy! Lagi santai atau sibuk nih?</li> </random>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"adf1bf831c7a061d91e3ae2704ccd106","usersay":"halo","botsay":"Hai, kenalan dulu yuk! Siapa nama kamu?","botData":{"convo_id":"adf1bf831c7a061d91e3ae2704ccd106","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"3","totallines":1,"user_name":"Seeker","rawSay":"halo","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"644","bot_id":"1","pattern":"HALO","thatpattern":"","topic":"","filename":"chat_ai1.aiml","template":"<random>\n      <li>Halo juga! Siapa namamu?<\/li>\n      <li>Hai, kenalan dulu yuk! Siapa nama kamu?<\/li>\n      <li>Heyy! Lagi santai atau sibuk nih?<\/li>\n    <\/random>","score":260,"current_that":"","aiml_id":"644","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: halo (2 points)"}}}
)

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