04-11-2025 13:55:46.72358[0][4] - Elapsed time: 0.750 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 13:55:46.72387[4][4] - Elapsed time: 0.291 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
04-11-2025 13:55:46.72411[4][4] - Elapsed time: 0.235 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
04-11-2025 13:55:46.72424[4][4] - Elapsed time: 0.130 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
04-11-2025 13:55:46.72467[4][4] - Elapsed time: 0.430 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
04-11-2025 13:55:46.72468[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
04-11-2025 13:55:46.72478[0][4] - Elapsed time: 0.096 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 482be22fd509c00010d773438840acc6 
-----------------------
04-11-2025 13:55:46.72479[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'hello/?botid'. 
-----------------------
04-11-2025 13:55:46.72480[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
04-11-2025 13:55:46.72481[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
04-11-2025 13:55:46.72481[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
04-11-2025 13:55:46.72527[1][4] - Elapsed time: 0.459 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 482be22fd509c00010d773438840acc6 
-----------------------
04-11-2025 13:55:46.72529[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
04-11-2025 13:55:46.72529[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
04-11-2025 13:55:46.72568[2][4] - Elapsed time: 0.388 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
04-11-2025 13:55:46.72569[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
04-11-2025 13:55:46.72609[2][4] - Elapsed time: 0.397 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
04-11-2025 13:55:46.72632[3][4] - Elapsed time: 0.233 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #9 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '482be22fd509c00010d773438840acc6'   , 1 , '0'        , '2a09:bac1:3480:38::3c2:1b', ''      , 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
04-11-2025 13:55:46.72672[3][4] - Elapsed time: 0.398 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` = 9 AND `bot_id` = 1; 
-----------------------
04-11-2025 13:55:46.72701[2][4] - Elapsed time: 0.291 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
04-11-2025 13:55:46.72702[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on hello. 
-----------------------
04-11-2025 13:55:46.72704[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
04-11-2025 13:55:46.72757[2][4] - Elapsed time: 0.533 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on /. 
-----------------------
04-11-2025 13:55:46.72759[2][4] - Elapsed time: 0.016 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on ?. 
-----------------------
04-11-2025 13:55:46.72760[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on botid. 
-----------------------
04-11-2025 13:55:46.72762[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'hello/?botid' 
-----------------------
04-11-2025 13:55:46.72763[4][4] - Elapsed time: 0.016 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO BOTID' 
-----------------------
04-11-2025 13:55:46.72764[2][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO BOTID
Convo id: 482be22fd509c00010d773438840acc6
Bot id: 1
Format:  
-----------------------
04-11-2025 13:55:46.72765[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
04-11-2025 13:55:46.72765[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
04-11-2025 13:55:46.72766[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 9 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
04-11-2025 13:55:46.72834[4][4] - Elapsed time: 0.679 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
04-11-2025 13:55:46.72861[2][4] - Elapsed time: 0.265 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
04-11-2025 13:55:46.72862[3][4] - Elapsed time: 0.014 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
04-11-2025 13:55:46.72886[4][4] - Elapsed time: 0.237 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
04-11-2025 13:55:46.72887[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
04-11-2025 13:55:46.72888[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
04-11-2025 13:55:46.72888[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = HELLO BOTID: raw say = hello/?botid 
-----------------------
04-11-2025 13:55:46.72889[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
04-11-2025 13:55:46.72889[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO BOTID' to the front of the [user_say] array 
-----------------------
04-11-2025 13:55:46.72890[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
04-11-2025 13:55:46.72892[0][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = hello/?botid, RAW say = hello/?botid 
-----------------------
04-11-2025 13:55:46.72892[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'hello/?botid' to the front of the [input] array 
-----------------------
04-11-2025 13:55:46.72893[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
04-11-2025 13:55:46.72894[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
04-11-2025 13:55:46.72894[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO BOTID' 
-----------------------
04-11-2025 13:55:46.72896[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO BOTID' 
-----------------------
04-11-2025 13:55:46.72896[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 13:55:46.72920[4][4] - Elapsed time: 0.236 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
04-11-2025 13:55:46.72921[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` = '482be22fd509c00010d773438840acc6'
    AND (
        'HELLO BOTID' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 13:55:46.72958[2][4] - Elapsed time: 0.372 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
04-11-2025 13:55:46.72959[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
04-11-2025 13:55:46.72960[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
04-11-2025 13:55:46.72980[4][4] - Elapsed time: 0.197 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
04-11-2025 13:55:46.72981[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 (
        'HELLO BOTID' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 13:55:46.73040[3][4] - Elapsed time: 0.592 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
04-11-2025 13:55:46.73041[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (4) potential AIML matches 
-----------------------
04-11-2025 13:55:46.73071[4][4] - Elapsed time: 0.300 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 4 rows to unset bad matches 
-----------------------
04-11-2025 13:55:46.73072[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'HELLO BOTID' 
-----------------------
04-11-2025 13:55:46.73086[4][4] - Elapsed time: 0.141 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
04-11-2025 13:55:46.73088[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 13:55:46.73117[4][4] - Elapsed time: 0.300 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => 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 13:55:46.73119[2][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => 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 13:55:46.73132[4][4] - Elapsed time: 0.135 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: 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 13:55:46.73133[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 13:55:46.73135[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
04-11-2025 13:55:46.73136[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
04-11-2025 13:55:46.73174[2][4] - Elapsed time: 0.383 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
04-11-2025 13:55:46.73175[1][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'HELLO BOTID' to the unknown_inputs table. 
-----------------------
04-11-2025 13:55:46.73175[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:366 (*) 
-----------------------
04-11-2025 13:55:46.73177[3][4] - Elapsed time: 0.013 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
04-11-2025 13:55:46.73177[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
04-11-2025 13:55:46.73178[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
04-11-2025 13:55:46.73179[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching hello/?botid for a match. 
-----------------------
04-11-2025 13:55:46.73182[2][4] - Elapsed time: 0.030 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => hello/?botid
        )

    [1] => Array
        (
            [0] => hello/?botid
        )

)
 
-----------------------
04-11-2025 13:55:46.73183[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'hello  botid' to the stars stack. 
-----------------------
04-11-2025 13:55:46.73183[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => hello  botid
)
 
-----------------------
04-11-2025 13:55:46.73184[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 13:55:46.73184[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 13:55:46.73185[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 366
    [category_id] => 366
    [html_template] => 
    [lookingfor] => HELLO BOTID
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => hello  botid
        )

    [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>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => hello/?botid
)
 
-----------------------
04-11-2025 13:55:46.73186[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 13:55:46.73187[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
04-11-2025 13:55:46.73188[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random></template> 
-----------------------
04-11-2025 13:55:46.73194[2][4] - Elapsed time: 0.054 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 13:55:46.73198[4][4] - Elapsed time: 0.041 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random></template>
 
-----------------------
04-11-2025 13:55:46.73199[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
04-11-2025 13:55:46.73200[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 13:55:46.73201[4][4] - Elapsed time: 0.016 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element random at level 1. element XML = <random><li><text>Maaf, </text><get name="namaku"/><text>, aku nggak ngerti maksud kamu.</text></li><li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li><li><text>Aku masih belajar nih. Coba tanya yang lain.</text></li><li><text>Kalau soal itu aku kurang paham.</text></li></random> 
-----------------------
04-11-2025 13:55:46.73202[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_random_tag does exist. Processing now. 
-----------------------
04-11-2025 13:55:46.73203[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element random to the parse_random_tag function 
-----------------------
04-11-2025 13:55:46.73204[2][4] - Elapsed time: 0.015 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 13:55:46.73210[4][4] - Elapsed time: 0.052 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][498]
Pick array:
Array
(
    [0] => SimpleXMLElement Object
        (
            [text] => Array
                (
                    [0] => Maaf, 
                    [1] => , aku nggak ngerti maksud kamu.
                )

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

                )

        )

    [1] => SimpleXMLElement Object
        (
            [text] => Hmm, bisa diulangi dengan kalimat lain?
        )

    [2] => SimpleXMLElement Object
        (
            [text] => Aku masih belajar nih. Coba tanya yang lain.
        )

    [3] => SimpleXMLElement Object
        (
            [text] => Kalau soal itu aku kurang paham.
        )

)
 
-----------------------
04-11-2025 13:55:46.73210[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][500]
Picking option #1 from random tag.
 
-----------------------
04-11-2025 13:55:46.73211[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 13:55:46.73212[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element li at level 2. element XML = <li><text>Hmm, bisa diulangi dengan kalimat lain?</text></li> 
-----------------------
04-11-2025 13:55:46.73212[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 13:55:46.73213[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 13:55:46.73214[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 3. element XML = <text>Hmm, bisa diulangi dengan kalimat lain?</text> 
-----------------------
04-11-2025 13:55:46.73214[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 13:55:46.73215[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 13:55:46.73216[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
04-11-2025 13:55:46.73216[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is text 
-----------------------
04-11-2025 13:55:46.73217[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 13:55:46.73217[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
04-11-2025 13:55:46.73218[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 13:55:46.73218[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73219[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is li. 
-----------------------
04-11-2025 13:55:46.73220[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 13:55:46.73220[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
04-11-2025 13:55:46.73221[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 13:55:46.73221[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73222[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_random_tag][503]
Chose Random Response of 'Hmm, bisa diulangi dengan kalimat lain?' for output. 
-----------------------
04-11-2025 13:55:46.73222[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is random 
-----------------------
04-11-2025 13:55:46.73223[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 13:55:46.73223[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
04-11-2025 13:55:46.73224[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 13:55:46.73224[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73225[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa diulangi dengan kalimat lain?' to the response array. tag name is template. 
-----------------------
04-11-2025 13:55:46.73226[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 13:55:46.73226[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa diulangi dengan kalimat lain?
)

 
-----------------------
04-11-2025 13:55:46.73227[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 13:55:46.73228[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73228[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: Hmm, bisa diulangi dengan kalimat lain? 
-----------------------
04-11-2025 13:55:46.73229[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
04-11-2025 13:55:46.73230[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
04-11-2025 13:55:46.73230[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [that_raw] array 
-----------------------
04-11-2025 13:55:46.73231[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
04-11-2025 13:55:46.73233[2][4] - Elapsed time: 0.024 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [that] array 
-----------------------
04-11-2025 13:55:46.73234[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
04-11-2025 13:55:46.73235[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73236[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hmm, bisa diulangi dengan kalimat lain?' 
-----------------------
04-11-2025 13:55:46.73237[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HMM BISA DIULANGI DENGAN KALIMAT LAIN' 
-----------------------
04-11-2025 13:55:46.73237[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HMM BISA DIULANGI DENGAN KALIMAT LAIN' 
-----------------------
04-11-2025 13:55:46.73238[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa diulangi dengan kalimat lain?' to the front of the [parsed_template] array 
-----------------------
04-11-2025 13:55:46.73239[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
04-11-2025 13:55:46.73240[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<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>' to the front of the [template] array 
-----------------------
04-11-2025 13:55:46.73241[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
04-11-2025 13:55:46.73242[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
04-11-2025 13:55:46.73243[3][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'hello/?botid',
      'Hmm, bisa diulangi dengan kalimat lain?',
      9,
      '482be22fd509c00010d773438840acc6',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
04-11-2025 13:55:46.73345[4][4] - Elapsed time: 1.022 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
04-11-2025 13:55:46.73366[3][4] - Elapsed time: 0.213 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 13:55:46.73394[2][4] - Elapsed time: 0.275 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
04-11-2025 13:55:46.73395[4][4] - Elapsed time: 0.009 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
04-11-2025 13:55:46.73395[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
04-11-2025 13:55:46.73397[4][4] - Elapsed time: 0.016 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"482be22fd509c00010d773438840acc6","usersay":"hello\/?botid","botsay":"Hmm, bisa diulangi dengan kalimat lain?","botData":{"convo_id":"482be22fd509c00010d773438840acc6","bot_name":"Pedro Salto","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"9","totallines":1,"user_name":"Seeker","rawSay":"hello\/?botid","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":"366","bot_id":"1","pattern":"*","thatpattern":"","topic":"","filename":"bot.aiml","template":"<random>\n            <li>Maaf, <get name=\"namaku\"\/>, aku nggak ngerti maksud kamu.<\/li>\n            <li>Hmm, bisa diulangi dengan kalimat lain?<\/li>\n            <li>Aku masih belajar nih. Coba tanya yang lain.<\/li>\n            <li>Kalau soal itu aku kurang paham.<\/li>\n        <\/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 13:55:46.73441[2][4] - Elapsed time: 0.442 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
04-11-2025 13:55:46.73443[0][4] - Elapsed time: 0.019 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 11.588 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => hello/?botid
    [conversation] => Array
        (
            [convo_id] => 482be22fd509c00010d773438840acc6
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 9
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => hello/?botid
            [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] => 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)
                )

        )

    [aiml] => Array
        (
            [user_raw] => hello/?botid
            [lookingfor] => HELLO BOTID
            [category_id] => 366
            [pattern] => *
            [thatpattern] => 
            [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>
            [html_template] => 
            [topic] => 
            [score] => 252
            [aiml_id] => 366
            [stars] => Array
                (
                    [1] => hello  botid
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Hmm, bisa diulangi dengan kalimat lain?
        )

    [client_properties] => Array
        (
            [ip_address] => 2a09:bac1:3480:38::3c2:1b
            [name] => Seeker
        )

    [time_start] => 1762239346.7228
    [user_say] => Array
        (
            [1] => HELLO BOTID
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [input] => Array
        (
            [1] => hello/?botid
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Hmm, bisa diulangi dengan kalimat lain?
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => HMM BISA DIULANGI DENGAN KALIMAT LAIN
                )

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

    [parsed_template] => Array
        (
            [1] => Hmm, bisa diulangi dengan kalimat lain?
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <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>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"482be22fd509c00010d773438840acc6","usersay":"hello\/?botid","botsay":"Hmm, bisa diulangi dengan kalimat lain?","botData":{"convo_id":"482be22fd509c00010d773438840acc6","bot_name":"Pedro Salto","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"9","totallines":1,"user_name":"Seeker","rawSay":"hello\/?botid","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":"366","bot_id":"1","pattern":"*","thatpattern":"","topic":"","filename":"bot.aiml","template":"<random>\n            <li>Maaf, <get name=\"namaku\"\/>, aku nggak ngerti maksud kamu.<\/li>\n            <li>Hmm, bisa diulangi dengan kalimat lain?<\/li>\n            <li>Aku masih belajar nih. Coba tanya yang lain.<\/li>\n            <li>Kalau soal itu aku kurang paham.<\/li>\n        <\/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)"}}}
)

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