04-11-2025 14:47:45.12582[0][4] - Elapsed time: 4.841 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
04-11-2025 14:47:45.12610[4][4] - Elapsed time: 0.285 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
04-11-2025 14:47:45.12630[4][4] - Elapsed time: 0.194 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
04-11-2025 14:47:45.12639[4][4] - Elapsed time: 0.099 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
04-11-2025 14:47:45.12678[4][4] - Elapsed time: 0.383 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
04-11-2025 14:47:45.12679[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
04-11-2025 14:47:45.12693[0][4] - Elapsed time: 0.145 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 4fc7920e67ea7e338411ba0085a13948 
-----------------------
04-11-2025 14:47:45.12694[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'ganti topik'. 
-----------------------
04-11-2025 14:47:45.12696[4][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
04-11-2025 14:47:45.12697[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
04-11-2025 14:47:45.12698[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 14:47:45.12737[1][4] - Elapsed time: 0.390 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: 4fc7920e67ea7e338411ba0085a13948 
-----------------------
04-11-2025 14:47:45.12738[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
04-11-2025 14:47:45.12739[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
04-11-2025 14:47:45.12773[2][4] - Elapsed time: 0.344 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
04-11-2025 14:47:45.12774[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
04-11-2025 14:47:45.12806[2][4] - Elapsed time: 0.312 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
04-11-2025 14:47:45.12830[3][4] - Elapsed time: 0.244 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #25 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , '4fc7920e67ea7e338411ba0085a13948'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
04-11-2025 14:47:45.12855[3][4] - Elapsed time: 0.252 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` = 25 AND `bot_id` = 1; 
-----------------------
04-11-2025 14:47:45.12875[2][4] - Elapsed time: 0.194 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
04-11-2025 14:47:45.12882[2][4] - Elapsed time: 0.074 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on ganti. 
-----------------------
04-11-2025 14:47:45.12883[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
04-11-2025 14:47:45.12929[2][4] - Elapsed time: 0.453 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
04-11-2025 14:47:45.12930[2][4] - Elapsed time: 0.018 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on topik. 
-----------------------
04-11-2025 14:47:45.12932[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'ganti topik' 
-----------------------
04-11-2025 14:47:45.12946[4][4] - Elapsed time: 0.142 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'GANTI TOPIK' 
-----------------------
04-11-2025 14:47:45.12947[2][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: GANTI TOPIK
Convo id: 4fc7920e67ea7e338411ba0085a13948
Bot id: 1
Format:  
-----------------------
04-11-2025 14:47:45.12948[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
04-11-2025 14:47:45.12949[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
04-11-2025 14:47:45.12950[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` = 25 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
04-11-2025 14:47:45.13009[4][4] - Elapsed time: 0.590 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
04-11-2025 14:47:45.13053[2][4] - Elapsed time: 0.442 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
04-11-2025 14:47:45.13054[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
04-11-2025 14:47:45.13072[4][4] - Elapsed time: 0.183 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
04-11-2025 14:47:45.13074[0][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
04-11-2025 14:47:45.13074[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
04-11-2025 14:47:45.13075[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = GANTI TOPIK: raw say = ganti topik 
-----------------------
04-11-2025 14:47:45.13075[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
04-11-2025 14:47:45.13076[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'GANTI TOPIK' to the front of the [user_say] array 
-----------------------
04-11-2025 14:47:45.13079[4][4] - Elapsed time: 0.029 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
04-11-2025 14:47:45.13081[0][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = ganti topik, RAW say = ganti topik 
-----------------------
04-11-2025 14:47:45.13081[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'ganti topik' to the front of the [input] array 
-----------------------
04-11-2025 14:47:45.13082[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
04-11-2025 14:47:45.13083[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
04-11-2025 14:47:45.13083[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'GANTI TOPIK' 
-----------------------
04-11-2025 14:47:45.13084[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'GANTI TOPIK' 
-----------------------
04-11-2025 14:47:45.13085[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
04-11-2025 14:47:45.13105[4][4] - Elapsed time: 0.197 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
04-11-2025 14:47:45.13106[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` = '4fc7920e67ea7e338411ba0085a13948'
    AND (
        'GANTI TOPIK' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:47:45.13137[2][4] - Elapsed time: 0.306 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
04-11-2025 14:47:45.13138[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
04-11-2025 14:47:45.13138[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
04-11-2025 14:47:45.13156[4][4] - Elapsed time: 0.182 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
04-11-2025 14:47:45.13158[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 (
        'GANTI TOPIK' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
04-11-2025 14:47:45.13198[3][4] - Elapsed time: 0.399 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
04-11-2025 14:47:45.13199[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (7) potential AIML matches 
-----------------------
04-11-2025 14:47:45.13219[4][4] - Elapsed time: 0.206 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 7 rows to unset bad matches 
-----------------------
04-11-2025 14:47:45.13220[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 'GANTI TOPIK' 
-----------------------
04-11-2025 14:47:45.13238[4][4] - Elapsed time: 0.177 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
04-11-2025 14:47:45.13239[4][4] - Elapsed time: 0.012 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
04-11-2025 14:47:45.13260[4][4] - Elapsed time: 0.209 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 362
            [bot_id] => 1
            [pattern] => GANTI TOPIK
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
            [score] => 262
            [current_that] => 
            [aiml_id] => 362
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)
        )

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

)
 
-----------------------
04-11-2025 14:47:45.13262[2][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 362
            [bot_id] => 1
            [pattern] => GANTI TOPIK
            [thatpattern] => 
            [topic] => 
            [filename] => bot.aiml
            [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
            [score] => 262
            [current_that] => 
            [aiml_id] => 362
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)
        )

)

 
-----------------------
04-11-2025 14:47:45.13292[4][4] - Elapsed time: 0.306 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 362
    [bot_id] => 1
    [pattern] => GANTI TOPIK
    [thatpattern] => 
    [topic] => 
    [filename] => bot.aiml
    [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
    [score] => 262
    [current_that] => 
    [aiml_id] => 362
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)
)
 
-----------------------
04-11-2025 14:47:45.13293[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
04-11-2025 14:47:45.13294[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:362 (GANTI TOPIK) 
-----------------------
04-11-2025 14:47:45.13296[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 14:47:45.13297[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'GANTI TOPIK' 
-----------------------
04-11-2025 14:47:45.13297[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
04-11-2025 14:47:45.13298[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
04-11-2025 14:47:45.13299[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 362
    [category_id] => 362
    [html_template] => 
    [lookingfor] => GANTI TOPIK
    [pattern] => GANTI TOPIK
    [score] => 262
    [stars] => Array
        (
        )

    [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => ganti topik
)
 
-----------------------
04-11-2025 14:47:45.13300[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
04-11-2025 14:47:45.13300[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 14:47:45.13308[4][4] - Elapsed time: 0.074 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><condition name="topic" value=""><li><text>Kita bahkan belum mulai topik hehe. Mau bahas apa?</text></li></condition><condition><think><set name="topic"/></think><text>            Oke, kita ganti topik. Mau bicara soal apa sekarang?        </text></condition></template> 
-----------------------
04-11-2025 14:47:45.13321[2][4] - Elapsed time: 0.132 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:45.13326[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><condition name="topic" value=""><li><text>Kita bahkan belum mulai topik hehe. Mau bahas apa?</text></li></condition><condition><think><set name="topic"/></think><text>            Oke, kita ganti topik. Mau bicara soal apa sekarang?        </text></condition></template>
 
-----------------------
04-11-2025 14:47:45.13327[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 14:47:45.13329[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:45.13331[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element condition at level 1. element XML = <condition name="topic" value=""><li><text>Kita bahkan belum mulai topik hehe. Mau bahas apa?</text></li></condition> 
-----------------------
04-11-2025 14:47:45.13332[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_condition_tag does exist. Processing now. 
-----------------------
04-11-2025 14:47:45.13333[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element condition to the parse_condition_tag function 
-----------------------
04-11-2025 14:47:45.13333[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][809]
Parsing a CONDITION tag. 
-----------------------
04-11-2025 14:47:45.13334[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][818]
Element attributes:Array
(
    [name] => topic
    [value] => 
)
 
-----------------------
04-11-2025 14:47:45.13335[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][820]
Element attribute count = 2 
-----------------------
04-11-2025 14:47:45.13336[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][898]
Parsing a CONDITION tag with 2 attributes. 
-----------------------
04-11-2025 14:47:45.13337[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = '' 
-----------------------
04-11-2025 14:47:45.13338[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = '' 
-----------------------
04-11-2025 14:47:45.13338[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'undefined' 
-----------------------
04-11-2025 14:47:45.13339[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'UNDEFINED' 
-----------------------
04-11-2025 14:47:45.13339[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:45.13340[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
)

 
-----------------------
04-11-2025 14:47:45.13341[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:45.13341[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '' 
-----------------------
04-11-2025 14:47:45.13342[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '' to the response array. tag name is condition 
-----------------------
04-11-2025 14:47:45.13343[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:45.13343[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
)

 
-----------------------
04-11-2025 14:47:45.13344[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:45.13344[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '' 
-----------------------
04-11-2025 14:47:45.13345[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '' to the response array. tag name is template. 
-----------------------
04-11-2025 14:47:45.13345[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
04-11-2025 14:47:45.13347[4][4] - Elapsed time: 0.013 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element condition at level 1. element XML = <condition><think><set name="topic"/></think><text>            Oke, kita ganti topik. Mau bicara soal apa sekarang?        </text></condition> 
-----------------------
04-11-2025 14:47:45.13347[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_condition_tag does exist. Processing now. 
-----------------------
04-11-2025 14:47:45.13348[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element condition to the parse_condition_tag function 
-----------------------
04-11-2025 14:47:45.13348[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][809]
Parsing a CONDITION tag. 
-----------------------
04-11-2025 14:47:45.13349[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][818]
Element attributes:Array
(
)
 
-----------------------
04-11-2025 14:47:45.13350[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][820]
Element attribute count = 0 
-----------------------
04-11-2025 14:47:45.13359[4][4] - Elapsed time: 0.096 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][826]
Parsing a CONDITION tag with no attributes. XML = <?xml version="1.0"?>
<condition>
  <think>
    <set name="topic"/>
  </think>
  <text>            Oke, kita ganti topik. Mau bicara soal apa sekarang?        </text>
</condition>
 
-----------------------
04-11-2025 14:47:45.13364[2][4] - Elapsed time: 0.053 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][835]
choices = Array
(
)
 
-----------------------
04-11-2025 14:47:45.13365[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_condition_tag][890]
Bare condition tag: pick =  
-----------------------
04-11-2025 14:47:45.13366[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:45.13366[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
)

 
-----------------------
04-11-2025 14:47:45.13367[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:45.13367[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '' 
-----------------------
04-11-2025 14:47:45.13368[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '' to the response array. tag name is condition 
-----------------------
04-11-2025 14:47:45.13369[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
04-11-2025 14:47:45.13369[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
)

 
-----------------------
04-11-2025 14:47:45.13369[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:45.13370[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '' 
-----------------------
04-11-2025 14:47:45.13370[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '' to the response array. tag name is template. 
-----------------------
04-11-2025 14:47:45.13372[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 14:47:45.13372[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => 
    [1] => 
)

 
-----------------------
04-11-2025 14:47:45.13373[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
04-11-2025 14:47:45.13373[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning ' ' 
-----------------------
04-11-2025 14:47:45.13374[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:  
-----------------------
04-11-2025 14:47:45.13374[4][4] - Elapsed time: 0.007 milliseconds 
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
04-11-2025 14:47:45.13375[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
04-11-2025 14:47:45.13376[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '' to the front of the [that_raw] array 
-----------------------
04-11-2025 14:47:45.13376[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
04-11-2025 14:47:45.13384[2][4] - Elapsed time: 0.076 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '' to the front of the [that] array 
-----------------------
04-11-2025 14:47:45.13385[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
04-11-2025 14:47:45.13386[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: '' 
-----------------------
04-11-2025 14:47:45.13387[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = '' 
-----------------------
04-11-2025 14:47:45.13387[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = '' 
-----------------------
04-11-2025 14:47:45.13388[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = '' 
-----------------------
04-11-2025 14:47:45.13389[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '' to the front of the [parsed_template] array 
-----------------------
04-11-2025 14:47:45.13389[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
04-11-2025 14:47:45.13390[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>' to the front of the [template] array 
-----------------------
04-11-2025 14:47:45.13392[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
04-11-2025 14:47:45.13393[2][4] - Elapsed time: 0.017 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
04-11-2025 14:47:45.13395[3][4] - Elapsed time: 0.020 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 ,
      'ganti topik',
      '',
      25,
      '4fc7920e67ea7e338411ba0085a13948',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
04-11-2025 14:47:45.13508[4][4] - Elapsed time: 1.131 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
04-11-2025 14:47:45.13527[3][4] - Elapsed time: 0.183 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
04-11-2025 14:47:45.13549[2][4] - Elapsed time: 0.226 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
04-11-2025 14:47:45.13550[4][4] - Elapsed time: 0.012 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
04-11-2025 14:47:45.13551[2][4] - Elapsed time: 0.007 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
04-11-2025 14:47:45.13554[4][4] - Elapsed time: 0.031 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"4fc7920e67ea7e338411ba0085a13948","usersay":"ganti topik","botsay":"","botData":{"convo_id":"4fc7920e67ea7e338411ba0085a13948","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"25","totallines":1,"user_name":"Seeker","rawSay":"ganti topik","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":"362","bot_id":"1","pattern":"GANTI TOPIK","thatpattern":"","topic":"","filename":"bot.aiml","template":"<condition name=\"topic\" value=\"\">\n            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?<\/li>\n        <\/condition>\n        <condition>\n            <think><set name=\"topic\"\/><\/think>\n            Oke, kita ganti topik. Mau bicara soal apa sekarang?\n        <\/condition>","score":262,"current_that":"","aiml_id":"362","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)"}}} 
-----------------------
04-11-2025 14:47:45.13588[2][4] - Elapsed time: 0.336 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
04-11-2025 14:47:45.13592[0][4] - Elapsed time: 0.041 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 14.914 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => ganti topik
    [conversation] => Array
        (
            [convo_id] => 4fc7920e67ea7e338411ba0085a13948
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 25
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => ganti topik
            [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] => 362
                    [bot_id] => 1
                    [pattern] => GANTI TOPIK
                    [thatpattern] => 
                    [topic] => 
                    [filename] => bot.aiml
                    [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
                    [score] => 262
                    [current_that] => 
                    [aiml_id] => 362
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => ganti topik
            [lookingfor] => GANTI TOPIK
            [category_id] => 362
            [pattern] => GANTI TOPIK
            [thatpattern] => 
            [template] => <condition name="topic" value="">
            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li>
        </condition>
        <condition>
            <think><set name="topic"/></think>
            Oke, kita ganti topik. Mau bicara soal apa sekarang?
        </condition>
            [html_template] => 
            [topic] => 
            [score] => 262
            [aiml_id] => 362
            [stars] => Array
                (
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => 
        )

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

    [time_start] => 1762242465.121
    [user_say] => Array
        (
            [1] => GANTI TOPIK
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

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

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

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

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

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

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

    [template] => Array
        (
            [1] => <condition name="topic" value=""> <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?</li> </condition> <condition> <think><set name="topic"/></think> Oke, kita ganti topik. Mau bicara soal apa sekarang? </condition>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"4fc7920e67ea7e338411ba0085a13948","usersay":"ganti topik","botsay":"","botData":{"convo_id":"4fc7920e67ea7e338411ba0085a13948","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"25","totallines":1,"user_name":"Seeker","rawSay":"ganti topik","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":"362","bot_id":"1","pattern":"GANTI TOPIK","thatpattern":"","topic":"","filename":"bot.aiml","template":"<condition name=\"topic\" value=\"\">\n            <li>Kita bahkan belum mulai topik hehe. Mau bahas apa?<\/li>\n        <\/condition>\n        <condition>\n            <think><set name=\"topic\"\/><\/think>\n            Oke, kita ganti topik. Mau bicara soal apa sekarang?\n        <\/condition>","score":262,"current_that":"","aiml_id":"362","track_score":"current bot (250 points), no thatpattern to match (1 point), direct pattern match (7 points), direct word match: ganti (2 points), direct word match: topik (2 points)"}}}
)

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