11-11-2025 15:11:45.58781[0][4] - Elapsed time: 4.650 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 
-----------------------
11-11-2025 15:11:45.58806[4][4] - Elapsed time: 0.256 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
11-11-2025 15:11:45.58825[4][4] - Elapsed time: 0.185 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
11-11-2025 15:11:45.58835[4][4] - Elapsed time: 0.102 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
11-11-2025 15:11:45.58873[4][4] - Elapsed time: 0.376 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
11-11-2025 15:11:45.58874[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
11-11-2025 15:11:45.58888[0][4] - Elapsed time: 0.141 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = a05882403f413f6a1bd5ad08fc6316c3 
-----------------------
11-11-2025 15:11:45.58889[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'aku suka basket'. 
-----------------------
11-11-2025 15:11:45.58891[4][4] - Elapsed time: 0.018 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
11-11-2025 15:11:45.58892[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
11-11-2025 15:11:45.58893[3][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_riski`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
11-11-2025 15:11:45.58917[1][4] - Elapsed time: 0.241 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: a05882403f413f6a1bd5ad08fc6316c3 
-----------------------
11-11-2025 15:11:45.58918[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
11-11-2025 15:11:45.58919[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
11-11-2025 15:11:45.58947[2][4] - Elapsed time: 0.285 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
11-11-2025 15:11:45.58948[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
11-11-2025 15:11:45.58971[2][4] - Elapsed time: 0.227 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
11-11-2025 15:11:45.58997[3][4] - Elapsed time: 0.255 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #11 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'a05882403f413f6a1bd5ad08fc6316c3'   , 1 , '0'        , '202.10.43.135', ''      , 'unknown browser'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
11-11-2025 15:11:45.59013[3][4] - Elapsed time: 0.168 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_riski`.`client_properties` WHERE `user_id` = 11 AND `bot_id` = 1; 
-----------------------
11-11-2025 15:11:45.59033[2][4] - Elapsed time: 0.196 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
11-11-2025 15:11:45.59041[2][4] - Elapsed time: 0.077 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on aku. 
-----------------------
11-11-2025 15:11:45.59042[2][4] - Elapsed time: 0.013 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
11-11-2025 15:11:45.59079[2][4] - Elapsed time: 0.374 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
11-11-2025 15:11:45.59081[2][4] - Elapsed time: 0.017 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on suka. 
-----------------------
11-11-2025 15:11:45.59083[2][4] - Elapsed time: 0.016 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
11-11-2025 15:11:45.59084[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on basket. 
-----------------------
11-11-2025 15:11:45.59085[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'aku suka basket' 
-----------------------
11-11-2025 15:11:45.59099[4][4] - Elapsed time: 0.138 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'AKU SUKA BASKET' 
-----------------------
11-11-2025 15:11:45.59100[2][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: AKU SUKA BASKET
Convo id: a05882403f413f6a1bd5ad08fc6316c3
Bot id: 1
Format:  
-----------------------
11-11-2025 15:11:45.59101[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
11-11-2025 15:11:45.59102[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
11-11-2025 15:11:45.59103[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_riski`.`conversation_log` WHERE `user_id` = 11 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
11-11-2025 15:11:45.59149[4][4] - Elapsed time: 0.467 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
11-11-2025 15:11:45.59193[2][4] - Elapsed time: 0.433 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
11-11-2025 15:11:45.59194[3][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1; 
-----------------------
11-11-2025 15:11:45.59214[4][4] - Elapsed time: 0.202 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
11-11-2025 15:11:45.59215[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
11-11-2025 15:11:45.59216[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
11-11-2025 15:11:45.59216[0][4] - Elapsed time: 0.006 milliseconds 
[conversation_start.php][Called outside of function][235]
Say = AKU SUKA BASKET: raw say = aku suka basket 
-----------------------
11-11-2025 15:11:45.59217[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
11-11-2025 15:11:45.59218[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'AKU SUKA BASKET' to the front of the [user_say] array 
-----------------------
11-11-2025 15:11:45.59221[4][4] - Elapsed time: 0.029 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
11-11-2025 15:11:45.59222[0][4] - Elapsed time: 0.015 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = aku suka basket, RAW say = aku suka basket 
-----------------------
11-11-2025 15:11:45.59223[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'aku suka basket' to the front of the [input] array 
-----------------------
11-11-2025 15:11:45.59224[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
11-11-2025 15:11:45.59225[4][4] - Elapsed time: 0.009 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
11-11-2025 15:11:45.59225[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'AKU SUKA BASKET' 
-----------------------
11-11-2025 15:11:45.59226[4][4] - Elapsed time: 0.010 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'AKU SUKA BASKET' 
-----------------------
11-11-2025 15:11:45.59227[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 
-----------------------
11-11-2025 15:11:45.59247[4][4] - Elapsed time: 0.209 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
11-11-2025 15:11:45.59249[3][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_riski`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'a05882403f413f6a1bd5ad08fc6316c3'
    AND (
        'AKU SUKA BASKET' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:11:45.59271[2][4] - Elapsed time: 0.215 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
11-11-2025 15:11:45.59272[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
11-11-2025 15:11:45.59272[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
11-11-2025 15:11:45.59291[4][4] - Elapsed time: 0.185 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
11-11-2025 15:11:45.59292[3][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_riski`.`aiml` WHERE
    bot_id = 1 AND (
        'AKU SUKA BASKET' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:11:45.59317[3][4] - Elapsed time: 0.250 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
11-11-2025 15:11:45.59318[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (3) potential AIML matches 
-----------------------
11-11-2025 15:11:45.59340[4][4] - Elapsed time: 0.223 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 3 rows to unset bad matches 
-----------------------
11-11-2025 15:11:45.59341[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'AKU SUKA BASKET' 
-----------------------
11-11-2025 15:11:45.59355[4][4] - Elapsed time: 0.141 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
11-11-2025 15:11:45.59356[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 15:11:45.59382[4][4] - Elapsed time: 0.251 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 649
            [bot_id] => 1
            [pattern] => AKU *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <srai><star/></srai>
            [score] => 254
            [current_that] => 
            [aiml_id] => 649
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: aku (2 points), star word match (1 points)
        )

    [1] => Array
        (
            [id] => 657
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [score] => 252
            [current_that] => 
            [aiml_id] => 657
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

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

Array
(
    [0] => Array
        (
            [id] => 649
            [bot_id] => 1
            [pattern] => AKU *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => <srai><star/></srai>
            [score] => 254
            [current_that] => 
            [aiml_id] => 649
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: aku (2 points), star word match (1 points)
        )

)

 
-----------------------
11-11-2025 15:11:45.59414[4][4] - Elapsed time: 0.308 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 649
    [bot_id] => 1
    [pattern] => AKU *
    [thatpattern] => 
    [topic] => 
    [filename] => chat_ai1.aiml
    [template] => <srai><star/></srai>
    [score] => 254
    [current_that] => 
    [aiml_id] => 649
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: aku (2 points), star word match (1 points)
)
 
-----------------------
11-11-2025 15:11:45.59415[2][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 15:11:45.59417[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:649 (AKU *) 
-----------------------
11-11-2025 15:11:45.59418[3][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
11-11-2025 15:11:45.59418[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'AKU *' 
-----------------------
11-11-2025 15:11:45.59419[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
11-11-2025 15:11:45.59419[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~AKU (.+)$~siuU: Searching aku suka basket for a match. 
-----------------------
11-11-2025 15:11:45.59423[2][4] - Elapsed time: 0.035 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => aku suka basket
        )

    [1] => Array
        (
            [0] => suka basket
        )

)
 
-----------------------
11-11-2025 15:11:45.59424[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'suka basket' to the stars stack. 
-----------------------
11-11-2025 15:11:45.59424[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => suka basket
)
 
-----------------------
11-11-2025 15:11:45.59425[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 15:11:45.59426[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 15:11:45.59427[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 649
    [category_id] => 649
    [html_template] => 
    [lookingfor] => AKU SUKA BASKET
    [pattern] => AKU *
    [score] => 254
    [stars] => Array
        (
            [1] => suka basket
        )

    [template] => <srai><star/></srai>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => aku suka basket
)
 
-----------------------
11-11-2025 15:11:45.59427[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
11-11-2025 15:11:45.59428[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... 
-----------------------
11-11-2025 15:11:45.59433[4][4] - Elapsed time: 0.048 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><srai><star/></srai></template> 
-----------------------
11-11-2025 15:11:45.59447[2][4] - Elapsed time: 0.141 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:11:45.59451[4][4] - Elapsed time: 0.040 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><srai><star/></srai></template>
 
-----------------------
11-11-2025 15:11:45.59452[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
11-11-2025 15:11:45.59454[2][4] - Elapsed time: 0.020 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:11:45.59455[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element srai at level 1. element XML = <srai><star/></srai> 
-----------------------
11-11-2025 15:11:45.59456[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_srai_tag does exist. Processing now. 
-----------------------
11-11-2025 15:11:45.59457[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element srai to the parse_srai_tag function 
-----------------------
11-11-2025 15:11:45.59458[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][763]
Parsing an SRAI tag. 
-----------------------
11-11-2025 15:11:45.59459[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the srai tag into text. 
-----------------------
11-11-2025 15:11:45.59459[2][4] - Elapsed time: 0.008 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:11:45.59460[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 2. element XML = <star/> 
-----------------------
11-11-2025 15:11:45.59461[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
11-11-2025 15:11:45.59461[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
11-11-2025 15:11:45.59462[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
11-11-2025 15:11:45.59462[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 2. element = <star/> 
-----------------------
11-11-2025 15:11:45.59463[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => aku suka basket
    [lookingfor] => AKU SUKA BASKET
    [category_id] => 649
    [pattern] => AKU *
    [thatpattern] => 
    [template] => <srai><star/></srai>
    [html_template] => 
    [topic] => 
    [score] => 254
    [aiml_id] => 649
    [stars] => Array
        (
            [1] => suka basket
        )

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

    [topic_stars] => Array
        (
        )

)
 
-----------------------
11-11-2025 15:11:45.59464[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
11-11-2025 15:11:45.59465[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'suka basket' to the response array. 
-----------------------
11-11-2025 15:11:45.59465[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = suka basket 
-----------------------
11-11-2025 15:11:45.59466[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59467[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => suka basket
)

 
-----------------------
11-11-2025 15:11:45.59467[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59468[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'suka basket' 
-----------------------
11-11-2025 15:11:45.59468[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'suka basket' to the response array. tag name is star 
-----------------------
11-11-2025 15:11:45.59469[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59470[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => suka basket
        )

)

 
-----------------------
11-11-2025 15:11:45.59470[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59471[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59471[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => suka basket
)

 
-----------------------
11-11-2025 15:11:45.59472[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59472[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'suka basket' 
-----------------------
11-11-2025 15:11:45.59473[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_srai_tag][767]
SRAI parsed to suka basket. 
-----------------------
11-11-2025 15:11:45.59474[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'AKU *' 
-----------------------
11-11-2025 15:11:45.59474[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
11-11-2025 15:11:45.59475[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~AKU (.+)$~siuU: Searching suka basket for a match. 
-----------------------
11-11-2025 15:11:45.59475[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][324]
Something is not right here. 
-----------------------
11-11-2025 15:11:45.59476[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 15:11:45.59476[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 15:11:45.59477[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 649
    [category_id] => 649
    [html_template] => 
    [lookingfor] => suka basket
    [pattern] => AKU *
    [score] => 254
    [stars] => Array
        (
        )

    [template] => <srai><star/></srai>
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => aku suka basket
)
 
-----------------------
11-11-2025 15:11:45.59478[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][410]
Running SRAI. Pattern = 'suka basket'. 
-----------------------
11-11-2025 15:11:45.59478[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][425]
Checking for entries in the srai_lookup table. 
-----------------------
11-11-2025 15:11:45.59479[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][426]
azimov bot_id = 1 
-----------------------
11-11-2025 15:11:45.59480[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][431]
lookup SQL = select `template_id` from `siew8359_riski`.`srai_lookup` where `pattern` like '%suka basket%' and ( bot_id = 1 ); 
-----------------------
11-11-2025 15:11:45.59552[2][4] - Elapsed time: 0.723 milliseconds
[parse_aiml.php][run_srai][433]
Result = Array
(
)
 
-----------------------
11-11-2025 15:11:45.59553[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][run_srai][464]
No match found in lookup table. 
-----------------------
11-11-2025 15:11:45.59554[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][466]
Nothing found in the SRAI lookup table. Looking for a direct pattern match for 'suka basket'. 
-----------------------
11-11-2025 15:11:45.59554[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][run_srai][473]
lookup SQL = SELECT `id`, `pattern`, `thatpattern`, `topic` FROM `siew8359_riski`.`aiml` where `pattern` like '%suka basket%' and  bot_id = 1  order by `id` asc; 
-----------------------
11-11-2025 15:11:45.59581[2][4] - Elapsed time: 0.265 milliseconds
[parse_aiml.php][run_srai][477]
Found 0 potential responses. 
-----------------------
11-11-2025 15:11:45.59582[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][run_srai][478]
Responses: Array
(
)
 
-----------------------
11-11-2025 15:11:45.59582[1][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][506]
Error: FOUND NO AIML matches in DB 
-----------------------
11-11-2025 15:11:45.59609[4][4] - Elapsed time: 0.270 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
11-11-2025 15:11:45.59610[1][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][56]
Returning error as no results where found 
-----------------------
11-11-2025 15:11:45.59611[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 15:11:45.59635[1][4] - Elapsed time: 0.243 milliseconds
[find_aiml.php][score_matches][329]
Found an error trying to identify the chatbot. 
-----------------------
11-11-2025 15:11:45.59636[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
)
 
-----------------------
11-11-2025 15:11:45.59637[2][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
)

 
-----------------------
11-11-2025 15:11:45.59647[4][4] - Elapsed time: 0.102 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => -1
    [aiml_id] => -1
    [bot_id] => 1
    [pattern] => no results
    [thatpattern] => 
    [topic] => 
    [template] => Wah pertanyaanmu unik banget, aku pelajari dulu ya !!
    [score] => 0
    [track_score] => No Match Found!
)
 
-----------------------
11-11-2025 15:11:45.59648[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 15:11:45.59649[3][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][run_srai][581]
Running SRAI 1 on suka basket 
-----------------------
11-11-2025 15:11:45.59650[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][582]
 
-----------------------
11-11-2025 15:11:45.59650[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][run_srai][586]
Incrementing srai iterations to 2 
-----------------------
11-11-2025 15:11:45.59651[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_stack][85]
Loading blank stack 
-----------------------
11-11-2025 15:11:45.59652[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
11-11-2025 15:11:45.59678[4][4] - Elapsed time: 0.261 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
11-11-2025 15:11:45.59680[3][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_riski`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'a05882403f413f6a1bd5ad08fc6316c3'
    AND (
        'SUKA BASKET' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:11:45.59705[2][4] - Elapsed time: 0.255 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
11-11-2025 15:11:45.59706[4][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
11-11-2025 15:11:45.59706[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
11-11-2025 15:11:45.59731[4][4] - Elapsed time: 0.249 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
11-11-2025 15:11:45.59733[3][4] - Elapsed time: 0.014 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_riski`.`aiml` WHERE
    bot_id = 1 AND (
        'SUKA BASKET' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
11-11-2025 15:11:45.59759[3][4] - Elapsed time: 0.264 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
11-11-2025 15:11:45.59760[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (1) potential AIML matches 
-----------------------
11-11-2025 15:11:45.59790[4][4] - Elapsed time: 0.298 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
11-11-2025 15:11:45.59791[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 'suka basket' 
-----------------------
11-11-2025 15:11:45.59792[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
11-11-2025 15:11:45.59793[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
11-11-2025 15:11:45.59820[4][4] - Elapsed time: 0.272 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 657
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [score] => 252
            [current_that] => 
            [aiml_id] => 657
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

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

Array
(
    [0] => Array
        (
            [id] => 657
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chat_ai1.aiml
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [score] => 252
            [current_that] => 
            [aiml_id] => 657
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)

 
-----------------------
11-11-2025 15:11:45.59831[4][4] - Elapsed time: 0.096 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 657
    [bot_id] => 1
    [pattern] => *
    [thatpattern] => 
    [topic] => 
    [filename] => chat_ai1.aiml
    [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
    [score] => 252
    [current_that] => 
    [aiml_id] => 657
    [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
)
 
-----------------------
11-11-2025 15:11:45.59832[2][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
11-11-2025 15:11:45.59833[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
11-11-2025 15:11:45.59835[4][4] - Elapsed time: 0.018 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
11-11-2025 15:11:45.59869[2][4] - Elapsed time: 0.342 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
11-11-2025 15:11:45.59870[1][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'suka basket' to the unknown_inputs table. 
-----------------------
11-11-2025 15:11:45.59871[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:657 (*) 
-----------------------
11-11-2025 15:11:45.59871[3][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in srai mode (normal or srai) 
-----------------------
11-11-2025 15:11:45.59872[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
11-11-2025 15:11:45.59872[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
11-11-2025 15:11:45.59873[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'suka basket' 
-----------------------
11-11-2025 15:11:45.59874[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'suka basket' 
-----------------------
11-11-2025 15:11:45.59874[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching suka basket for a match. 
-----------------------
11-11-2025 15:11:45.59878[2][4] - Elapsed time: 0.039 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => suka basket
        )

    [1] => Array
        (
            [0] => suka basket
        )

)
 
-----------------------
11-11-2025 15:11:45.59879[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'suka basket' to the stars stack. 
-----------------------
11-11-2025 15:11:45.59880[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => suka basket
)
 
-----------------------
11-11-2025 15:11:45.59880[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
11-11-2025 15:11:45.59881[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
11-11-2025 15:11:45.59882[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 657
    [category_id] => 657
    [html_template] => 
    [lookingfor] => suka basket
    [parsed_template] => 
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => suka basket
        )

    [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

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

    [user_raw] => suka basket
)
 
-----------------------
11-11-2025 15:11:45.59882[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
11-11-2025 15:11:45.59883[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
11-11-2025 15:11:45.59884[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><text>Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????</text></template> 
-----------------------
11-11-2025 15:11:45.59887[2][4] - Elapsed time: 0.030 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:11:45.59889[4][4] - Elapsed time: 0.019 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><text>Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????</text></template>
 
-----------------------
11-11-2025 15:11:45.59890[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
11-11-2025 15:11:45.59890[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
11-11-2025 15:11:45.59892[4][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????</text> 
-----------------------
11-11-2025 15:11:45.59893[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
11-11-2025 15:11:45.59893[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
11-11-2025 15:11:45.59894[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
11-11-2025 15:11:45.59894[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????' to the response array. tag name is text 
-----------------------
11-11-2025 15:11:45.59895[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59895[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
)

 
-----------------------
11-11-2025 15:11:45.59896[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59897[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????' 
-----------------------
11-11-2025 15:11:45.59897[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????' to the response array. tag name is template. 
-----------------------
11-11-2025 15:11:45.59898[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59898[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
)

 
-----------------------
11-11-2025 15:11:45.59899[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59899[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????' 
-----------------------
11-11-2025 15:11:45.59900[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? 
-----------------------
11-11-2025 15:11:45.59901[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][parse_matched_aiml][232]
srai - Not saving for next turn 
-----------------------
11-11-2025 15:11:45.59902[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][621]
SRAI Found. Returning 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????' 
-----------------------
11-11-2025 15:11:45.59903[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][run_srai][625]
Decrementing srai iterations to 1 
-----------------------
11-11-2025 15:11:45.59903[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][parse_srai_tag][771]
Finished parsing SRAI tag 
-----------------------
11-11-2025 15:11:45.59904[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59904[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? 
 
-----------------------
11-11-2025 15:11:45.59905[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? ' to the response array. tag name is srai 
-----------------------
11-11-2025 15:11:45.59905[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59906[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? 
)

 
-----------------------
11-11-2025 15:11:45.59906[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59907[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? ' 
-----------------------
11-11-2025 15:11:45.59907[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? ' to the response array. tag name is template. 
-----------------------
11-11-2025 15:11:45.59908[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
11-11-2025 15:11:45.59908[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? 
)

 
-----------------------
11-11-2025 15:11:45.59909[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
11-11-2025 15:11:45.59910[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? ' 
-----------------------
11-11-2025 15:11:45.59910[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: Hmm, bisa ulangi lagi gak? Kadang aku suka bingung???? 
-----------------------
11-11-2025 15:11:45.59911[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
11-11-2025 15:11:45.59911[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
11-11-2025 15:11:45.59912[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????' to the front of the [that_raw] array 
-----------------------
11-11-2025 15:11:45.59913[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
11-11-2025 15:11:45.59921[2][4] - Elapsed time: 0.078 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????' to the front of the [that] array 
-----------------------
11-11-2025 15:11:45.59922[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
11-11-2025 15:11:45.59923[4][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hmm, bisa ulangi lagi gak?' 
-----------------------
11-11-2025 15:11:45.59923[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hmm, bisa ulangi lagi gak?' 
-----------------------
11-11-2025 15:11:45.59925[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HMM BISA ULANGI LAGI GAK' 
-----------------------
11-11-2025 15:11:45.59925[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HMM BISA ULANGI LAGI GAK' 
-----------------------
11-11-2025 15:11:45.59926[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Kadang aku suka bingung????' 
-----------------------
11-11-2025 15:11:45.59926[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Kadang aku suka bingung????' 
-----------------------
11-11-2025 15:11:45.59927[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'KADANG AKU SUKA BINGUNG' 
-----------------------
11-11-2025 15:11:45.59927[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'KADANG AKU SUKA BINGUNG' 
-----------------------
11-11-2025 15:11:45.59928[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????' to the front of the [parsed_template] array 
-----------------------
11-11-2025 15:11:45.59929[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
11-11-2025 15:11:45.59930[2][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<srai><star/></srai>' to the front of the [template] array 
-----------------------
11-11-2025 15:11:45.59930[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
11-11-2025 15:11:45.59931[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
11-11-2025 15:11:45.59933[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_riski`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'aku suka basket',
      'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????',
      11,
      'a05882403f413f6a1bd5ad08fc6316c3',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
11-11-2025 15:11:45.60062[4][4] - Elapsed time: 1.298 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
11-11-2025 15:11:45.60086[3][4] - Elapsed time: 0.231 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_riski`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
11-11-2025 15:11:45.60117[2][4] - Elapsed time: 0.316 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
11-11-2025 15:11:45.60118[4][4] - Elapsed time: 0.010 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
11-11-2025 15:11:45.60119[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
11-11-2025 15:11:45.60121[4][4] - Elapsed time: 0.028 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"a05882403f413f6a1bd5ad08fc6316c3","usersay":"aku suka basket","botsay":"Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????","botData":{"convo_id":"a05882403f413f6a1bd5ad08fc6316c3","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"11","totallines":1,"user_name":"Seeker","rawSay":"aku suka basket","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":-1,"aiml_id":-1,"bot_id":"1","pattern":"no results","thatpattern":"","topic":"","template":"Wah pertanyaanmu unik banget, aku pelajari dulu ya !!","score":0,"track_score":"No Match Found!"}}} 
-----------------------
11-11-2025 15:11:45.60158[2][4] - Elapsed time: 0.362 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
11-11-2025 15:11:45.60161[0][4] - Elapsed time: 0.038 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 18.428 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => aku suka basket
    [conversation] => Array
        (
            [convo_id] => a05882403f413f6a1bd5ad08fc6316c3
            [bot_name] => Chat.ai
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 11
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => aku suka basket
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => apriansyahrizky84@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => -1
                    [aiml_id] => -1
                    [bot_id] => 1
                    [pattern] => no results
                    [thatpattern] => 
                    [topic] => 
                    [template] => Wah pertanyaanmu unik banget, aku pelajari dulu ya !!
                    [score] => 0
                    [track_score] => No Match Found!
                )

        )

    [aiml] => Array
        (
            [user_raw] => aku suka basket
            [lookingfor] => AKU SUKA BASKET
            [category_id] => 649
            [pattern] => AKU *
            [thatpattern] => 
            [template] => <srai><star/></srai>
            [html_template] => 
            [topic] => 
            [score] => 254
            [aiml_id] => 649
            [stars] => Array
                (
                    [1] => suka basket
                )

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

            [topic_stars] => Array
                (
                )

            [parsed_template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????
        )

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

    [time_start] => 1762848705.5832
    [user_say] => Array
        (
            [1] => AKU SUKA BASKET
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

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

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Kadang aku suka bingung????
                    [3] => Hmm, bisa ulangi lagi gak?
                )

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

    [that] => Array
        (
            [1] => Array
                (
                    [1] => KADANG AKU SUKA BINGUNG
                    [2] => HMM BISA ULANGI LAGI GAK
                )

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

    [parsed_template] => Array
        (
            [1] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <srai><star/></srai>
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"a05882403f413f6a1bd5ad08fc6316c3","usersay":"aku suka basket","botsay":"Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????","botData":{"convo_id":"a05882403f413f6a1bd5ad08fc6316c3","bot_name":"Chat.ai","bot_id":"1","format":"json","unknown_user":"Seeker","user_id":"11","totallines":1,"user_name":"Seeker","rawSay":"aku suka basket","conversation_lines":"1","remember_up_to":"10","debugemail":"apriansyahrizky84@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":-1,"aiml_id":-1,"bot_id":"1","pattern":"no results","thatpattern":"","topic":"","template":"Wah pertanyaanmu unik banget, aku pelajari dulu ya !!","score":0,"track_score":"No Match Found!"}}}
)

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