17-10-2025 08:04:27.42338[0][4] - Elapsed time: 16.844 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 Thu Sep 4 05:08:52 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
17-10-2025 08:04:27.44393[4][4] - Elapsed time: 20.546 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
17-10-2025 08:04:27.45079[4][4] - Elapsed time: 6.860 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
17-10-2025 08:04:27.45189[4][4] - Elapsed time: 1.102 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
17-10-2025 08:04:27.45700[4][4] - Elapsed time: 5.112 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
17-10-2025 08:04:27.45704[4][4] - Elapsed time: 0.036 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
17-10-2025 08:04:27.45729[0][4] - Elapsed time: 0.251 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 7a0080252b7dedec345c8bad188edb4b 
-----------------------
17-10-2025 08:04:27.45731[4][4] - Elapsed time: 0.026 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'halonull'. 
-----------------------
17-10-2025 08:04:27.45735[4][4] - Elapsed time: 0.033 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
17-10-2025 08:04:27.45736[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
17-10-2025 08:04:27.45738[3][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `si2h6234_dbdavid`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
17-10-2025 08:04:27.45841[1][4] - Elapsed time: 1.028 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 7a0080252b7dedec345c8bad188edb4b 
-----------------------
17-10-2025 08:04:27.45843[2][4] - Elapsed time: 0.025 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
17-10-2025 08:04:27.45845[3][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `si2h6234_dbdavid`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
17-10-2025 08:04:27.45929[2][4] - Elapsed time: 0.837 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
17-10-2025 08:04:27.45931[2][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
17-10-2025 08:04:27.46022[2][4] - Elapsed time: 0.911 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
17-10-2025 08:04:27.46114[3][4] - Elapsed time: 0.916 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #161 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '7a0080252b7dedec345c8bad188edb4b'   , 1 , '0'        , '202.10.43.123', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
17-10-2025 08:04:27.46230[3][4] - Elapsed time: 1.158 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `si2h6234_dbdavid`.`client_properties` WHERE `user_id` = 161 AND `bot_id` = 1; 
-----------------------
17-10-2025 08:04:27.46300[2][4] - Elapsed time: 0.702 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
17-10-2025 08:04:27.46315[2][4] - Elapsed time: 0.152 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on halonull. 
-----------------------
17-10-2025 08:04:27.46318[2][4] - Elapsed time: 0.032 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
17-10-2025 08:04:27.46426[4][4] - Elapsed time: 1.074 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halonull' 
-----------------------
17-10-2025 08:04:27.46457[4][4] - Elapsed time: 0.311 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALONULL' 
-----------------------
17-10-2025 08:04:27.46460[2][4] - Elapsed time: 0.027 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HALONULL
Convo id: 7a0080252b7dedec345c8bad188edb4b
Bot id: 1
Format:  
-----------------------
17-10-2025 08:04:27.46462[4][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
17-10-2025 08:04:27.46463[2][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
17-10-2025 08:04:27.46465[3][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `si2h6234_dbdavid`.`conversation_log` WHERE `user_id` = 161 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
17-10-2025 08:04:27.46656[4][4] - Elapsed time: 1.906 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
17-10-2025 08:04:27.46731[2][4] - Elapsed time: 0.755 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
17-10-2025 08:04:27.46734[3][4] - Elapsed time: 0.029 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `si2h6234_dbdavid`.`bots` WHERE bot_id = 1; 
-----------------------
17-10-2025 08:04:27.46787[4][4] - Elapsed time: 0.529 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
17-10-2025 08:04:27.46791[0][4] - Elapsed time: 0.042 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
17-10-2025 08:04:27.46793[0][4] - Elapsed time: 0.015 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
17-10-2025 08:04:27.46794[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HALONULL: raw say = halonull 
-----------------------
17-10-2025 08:04:27.46796[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
17-10-2025 08:04:27.46797[2][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALONULL' to the front of the [user_say] array 
-----------------------
17-10-2025 08:04:27.46805[4][4] - Elapsed time: 0.080 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
17-10-2025 08:04:27.46808[0][4] - Elapsed time: 0.033 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = halonull, RAW say = halonull 
-----------------------
17-10-2025 08:04:27.46810[2][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'halonull' to the front of the [input] array 
-----------------------
17-10-2025 08:04:27.46811[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
17-10-2025 08:04:27.46813[4][4] - Elapsed time: 0.020 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
17-10-2025 08:04:27.46815[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALONULL' 
-----------------------
17-10-2025 08:04:27.46817[4][4] - Elapsed time: 0.020 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALONULL' 
-----------------------
17-10-2025 08:04:27.46818[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
17-10-2025 08:04:27.46879[4][4] - Elapsed time: 0.603 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
17-10-2025 08:04:27.46884[3][4] - Elapsed time: 0.053 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `si2h6234_dbdavid`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = '7a0080252b7dedec345c8bad188edb4b'
    AND (
        'HALONULL' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
17-10-2025 08:04:27.46970[2][4] - Elapsed time: 0.861 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
17-10-2025 08:04:27.46973[4][4] - Elapsed time: 0.036 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
17-10-2025 08:04:27.46975[4][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
17-10-2025 08:04:27.47026[4][4] - Elapsed time: 0.515 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
17-10-2025 08:04:27.47031[3][4] - Elapsed time: 0.050 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `si2h6234_dbdavid`.`aiml` WHERE
    bot_id = 1 AND (
        'HALONULL' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
17-10-2025 08:04:27.47126[3][4] - Elapsed time: 0.947 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
17-10-2025 08:04:27.47131[2][4] - Elapsed time: 0.052 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
17-10-2025 08:04:27.47192[4][4] - Elapsed time: 0.606 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
17-10-2025 08:04:27.47195[4][4] - Elapsed time: 0.030 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HALONULL' 
-----------------------
17-10-2025 08:04:27.47213[4][4] - Elapsed time: 0.183 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
17-10-2025 08:04:27.47216[4][4] - Elapsed time: 0.023 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
17-10-2025 08:04:27.47292[4][4] - Elapsed time: 0.761 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 409
            [bot_id] => 1
            [pattern] => _
            [thatpattern] => 
            [topic] => 
            [filename] => LoqBot.aiml
            [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
            [score] => 376
            [current_that] => 
            [aiml_id] => 409
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)
        )

    [1] => Array
        (
            [id] => 386
            [bot_id] => 1
            [pattern] => _HALO_
            [thatpattern] => 
            [topic] => 
            [filename] => LoqBot.aiml
            [template] => <random>
        <li>Hai, kenapa bro? Lagi gabut ya? ????</li>
        <li>Halo juga! Lagi ngapain nih?</li>
        <li>Yo halo! Ceritain dong, ada apa nih?</li>
        <li>Eh halo, LoqBot di sini! Ada yang bisa aku bantu?</li>
      </random>
            [score] => 359
            [current_that] => 
            [aiml_id] => 386
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), uncommon word match: _halo_ (8 points)
        )

)
 
-----------------------
17-10-2025 08:04:27.47296[2][4] - Elapsed time: 0.047 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 409
            [bot_id] => 1
            [pattern] => _
            [thatpattern] => 
            [topic] => 
            [filename] => LoqBot.aiml
            [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
            [score] => 376
            [current_that] => 
            [aiml_id] => 409
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)
        )

)

 
-----------------------
17-10-2025 08:04:27.47350[4][4] - Elapsed time: 0.536 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 409
    [bot_id] => 1
    [pattern] => _
    [thatpattern] => 
    [topic] => 
    [filename] => LoqBot.aiml
    [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
    [score] => 376
    [current_that] => 
    [aiml_id] => 409
    [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)
)
 
-----------------------
17-10-2025 08:04:27.47352[2][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
17-10-2025 08:04:27.47355[4][4] - Elapsed time: 0.035 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:409 (_) 
-----------------------
17-10-2025 08:04:27.47357[3][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
17-10-2025 08:04:27.47358[2][4] - Elapsed time: 0.016 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '_' 
-----------------------
17-10-2025 08:04:27.47360[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
17-10-2025 08:04:27.47361[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching halonull for a match. 
-----------------------
17-10-2025 08:04:27.47366[2][4] - Elapsed time: 0.056 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => halonull
        )

    [1] => Array
        (
            [0] => halonull
        )

)
 
-----------------------
17-10-2025 08:04:27.47368[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'halonull' to the stars stack. 
-----------------------
17-10-2025 08:04:27.47370[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => halonull
)
 
-----------------------
17-10-2025 08:04:27.47371[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
17-10-2025 08:04:27.47372[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
17-10-2025 08:04:27.47374[2][4] - Elapsed time: 0.022 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 409
    [category_id] => 409
    [html_template] => 
    [lookingfor] => HALONULL
    [pattern] => _
    [score] => 376
    [stars] => Array
        (
            [1] => halonull
        )

    [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => halonull
)
 
-----------------------
17-10-2025 08:04:27.47376[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
17-10-2025 08:04:27.47378[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
17-10-2025 08:04:27.47387[4][4] - Elapsed time: 0.093 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Hmm, maksud lo gimana tuh bro? ????</text></li><li><text>Boleh ulangin gak? Biar aku ngerti lebih jelas.</text></li><li><text>LoqBot belum nangkep nih, coba jelasin lagi dong.</text></li></random></template> 
-----------------------
17-10-2025 08:04:27.47413[2][4] - Elapsed time: 0.259 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
17-10-2025 08:04:27.47425[4][4] - Elapsed time: 0.119 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Hmm, maksud lo gimana tuh bro? ????</text></li><li><text>Boleh ulangin gak? Biar aku ngerti lebih jelas.</text></li><li><text>LoqBot belum nangkep nih, coba jelasin lagi dong.</text></li></random></template>
 
-----------------------
17-10-2025 08:04:27.47427[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
17-10-2025 08:04:27.47431[2][4] - Elapsed time: 0.041 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
17-10-2025 08:04:27.47434[4][4] - Elapsed time: 0.039 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Hmm, maksud lo gimana tuh bro? ????</text></li><li><text>Boleh ulangin gak? Biar aku ngerti lebih jelas.</text></li><li><text>LoqBot belum nangkep nih, coba jelasin lagi dong.</text></li></random> 
-----------------------
17-10-2025 08:04:27.47436[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
17-10-2025 08:04:27.47437[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
17-10-2025 08:04:27.47439[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][496]
Parsing a RANDOM tag, or doing some stargazing, or fomenting chaos, or... 
-----------------------
17-10-2025 08:04:27.47447[4][4] - Elapsed time: 0.081 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Hmm, maksud lo gimana tuh bro? ????
        )

    [1] => SimpleXMLElement Object
        (
            [text] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
        )

    [2] => SimpleXMLElement Object
        (
            [text] => LoqBot belum nangkep nih, coba jelasin lagi dong.
        )

)
 
-----------------------
17-10-2025 08:04:27.47448[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #1 from random tag.
 
-----------------------
17-10-2025 08:04:27.47449[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
17-10-2025 08:04:27.47452[4][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Boleh ulangin gak? Biar aku ngerti lebih jelas.</text></li> 
-----------------------
17-10-2025 08:04:27.47453[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_li_tag does not exist. Parsing tag as text. 
-----------------------
17-10-2025 08:04:27.47454[2][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
17-10-2025 08:04:27.47456[4][4] - Elapsed time: 0.017 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Boleh ulangin gak? Biar aku ngerti lebih jelas.</text> 
-----------------------
17-10-2025 08:04:27.47457[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
17-10-2025 08:04:27.47459[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
17-10-2025 08:04:27.47460[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
17-10-2025 08:04:27.47461[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the response array. tag name is text 
-----------------------
17-10-2025 08:04:27.47462[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
17-10-2025 08:04:27.47464[2][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
)

 
-----------------------
17-10-2025 08:04:27.47465[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
17-10-2025 08:04:27.47466[4][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47468[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the response array. tag name is li. 
-----------------------
17-10-2025 08:04:27.47469[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
17-10-2025 08:04:27.47471[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
)

 
-----------------------
17-10-2025 08:04:27.47472[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
17-10-2025 08:04:27.47473[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47474[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' for output. 
-----------------------
17-10-2025 08:04:27.47475[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the response array. tag name is random 
-----------------------
17-10-2025 08:04:27.47476[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
17-10-2025 08:04:27.47478[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
)

 
-----------------------
17-10-2025 08:04:27.47479[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
17-10-2025 08:04:27.47480[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47481[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the response array. tag name is template. 
-----------------------
17-10-2025 08:04:27.47483[2][4] - Elapsed time: 0.021 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
17-10-2025 08:04:27.47484[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
)

 
-----------------------
17-10-2025 08:04:27.47485[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
17-10-2025 08:04:27.47486[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47488[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Boleh ulangin gak? Biar aku ngerti lebih jelas. 
-----------------------
17-10-2025 08:04:27.47490[4][4] - Elapsed time: 0.020 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
17-10-2025 08:04:27.47491[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
17-10-2025 08:04:27.47492[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the front of the [that_raw] array 
-----------------------
17-10-2025 08:04:27.47494[4][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
17-10-2025 08:04:27.47510[2][4] - Elapsed time: 0.162 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the front of the [that] array 
-----------------------
17-10-2025 08:04:27.47513[4][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
17-10-2025 08:04:27.47515[4][4] - Elapsed time: 0.026 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Boleh ulangin gak?' 
-----------------------
17-10-2025 08:04:27.47517[4][4] - Elapsed time: 0.014 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Boleh ulangin gak?' 
-----------------------
17-10-2025 08:04:27.47519[4][4] - Elapsed time: 0.022 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BOLEH ULANGIN GAK' 
-----------------------
17-10-2025 08:04:27.47520[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'BOLEH ULANGIN GAK' 
-----------------------
17-10-2025 08:04:27.47521[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47522[4][4] - Elapsed time: 0.012 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Biar aku ngerti lebih jelas.' 
-----------------------
17-10-2025 08:04:27.47524[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'BIAR AKU NGERTI LEBIH JELAS' 
-----------------------
17-10-2025 08:04:27.47525[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'BIAR AKU NGERTI LEBIH JELAS' 
-----------------------
17-10-2025 08:04:27.47528[2][4] - Elapsed time: 0.032 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Boleh ulangin gak? Biar aku ngerti lebih jelas.' to the front of the [parsed_template] array 
-----------------------
17-10-2025 08:04:27.47530[4][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
17-10-2025 08:04:27.47532[2][4] - Elapsed time: 0.020 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>' to the front of the [template] array 
-----------------------
17-10-2025 08:04:27.47533[4][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
17-10-2025 08:04:27.47536[2][4] - Elapsed time: 0.021 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
17-10-2025 08:04:27.47538[3][4] - Elapsed time: 0.026 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `si2h6234_dbdavid`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'halonull',
      'Boleh ulangin gak? Biar aku ngerti lebih jelas.',
      161,
      '7a0080252b7dedec345c8bad188edb4b',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
17-10-2025 08:04:27.47986[4][4] - Elapsed time: 4.476 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
17-10-2025 08:04:27.48033[3][4] - Elapsed time: 0.476 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `si2h6234_dbdavid`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
17-10-2025 08:04:27.48088[2][4] - Elapsed time: 0.541 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
17-10-2025 08:04:27.48091[4][4] - Elapsed time: 0.036 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
17-10-2025 08:04:27.48093[2][4] - Elapsed time: 0.017 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
17-10-2025 08:04:27.48096[4][4] - Elapsed time: 0.032 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"7a0080252b7dedec345c8bad188edb4b","usersay":"halonull","botsay":"Boleh ulangin gak? Biar aku ngerti lebih jelas.","botData":{"convo_id":"7a0080252b7dedec345c8bad188edb4b","bot_name":"Loq Bot","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"161","totallines":1,"user_name":"Seeker","rawSay":"halonull","conversation_lines":"1","remember_up_to":"10","debugemail":"24n10025@student.unika.ac.id","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"409","bot_id":"1","pattern":"_","thatpattern":"","topic":"","filename":"LoqBot.aiml","template":"<random>\n        <li>Hmm, maksud lo gimana tuh bro? ????<\/li>\n        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.<\/li>\n        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.<\/li>\n      <\/random>","score":376,"current_that":"","aiml_id":"409","track_score":"current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)"}}} 
-----------------------
17-10-2025 08:04:27.48183[2][4] - Elapsed time: 0.874 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
17-10-2025 08:04:27.48192[0][4] - Elapsed time: 0.087 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 75.327 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => halonull
    [conversation] => Array
        (
            [convo_id] => 7a0080252b7dedec345c8bad188edb4b
            [bot_name] => Loq Bot
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 161
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => halonull
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => 24n10025@student.unika.ac.id
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 409
                    [bot_id] => 1
                    [pattern] => _
                    [thatpattern] => 
                    [topic] => 
                    [filename] => LoqBot.aiml
                    [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
                    [score] => 376
                    [current_that] => 
                    [aiml_id] => 409
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => halonull
            [lookingfor] => HALONULL
            [category_id] => 409
            [pattern] => _
            [thatpattern] => 
            [template] => <random>
        <li>Hmm, maksud lo gimana tuh bro? ????</li>
        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li>
        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li>
      </random>
            [html_template] => 
            [topic] => 
            [score] => 376
            [aiml_id] => 409
            [stars] => Array
                (
                    [1] => halonull
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
        )

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

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

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Biar aku ngerti lebih jelas.
                    [3] => Boleh ulangin gak?
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => BIAR AKU NGERTI LEBIH JELAS
                    [2] => BOLEH ULANGIN GAK
                )

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

    [parsed_template] => Array
        (
            [1] => Boleh ulangin gak? Biar aku ngerti lebih jelas.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <random> <li>Hmm, maksud lo gimana tuh bro? ????</li> <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.</li> <li>LoqBot belum nangkep nih, coba jelasin lagi dong.</li> </random>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"7a0080252b7dedec345c8bad188edb4b","usersay":"halonull","botsay":"Boleh ulangin gak? Biar aku ngerti lebih jelas.","botData":{"convo_id":"7a0080252b7dedec345c8bad188edb4b","bot_name":"Loq Bot","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"161","totallines":1,"user_name":"Seeker","rawSay":"halonull","conversation_lines":"1","remember_up_to":"10","debugemail":"24n10025@student.unika.ac.id","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"409","bot_id":"1","pattern":"_","thatpattern":"","topic":"","filename":"LoqBot.aiml","template":"<random>\n        <li>Hmm, maksud lo gimana tuh bro? ????<\/li>\n        <li>Boleh ulangin gak? Biar aku ngerti lebih jelas.<\/li>\n        <li>LoqBot belum nangkep nih, coba jelasin lagi dong.<\/li>\n      <\/random>","score":376,"current_that":"","aiml_id":"409","track_score":"current bot (250 points), no thatpattern to match (1 point), pattern match with underscore (100 points), underscore word match (25 points)"}}}
)

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