09-12-2025 01:36:09.41813[0][4] - Elapsed time: 2.949 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 
-----------------------
09-12-2025 01:36:09.42713[4][4] - Elapsed time: 9.003 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
09-12-2025 01:36:09.43020[4][4] - Elapsed time: 3.068 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
09-12-2025 01:36:09.43072[4][4] - Elapsed time: 0.516 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
09-12-2025 01:36:09.43313[4][4] - Elapsed time: 2.409 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
09-12-2025 01:36:09.43314[4][4] - Elapsed time: 0.018 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
09-12-2025 01:36:09.43326[0][4] - Elapsed time: 0.115 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = a0fa4cf541fb004505895d1b3c936af9 
-----------------------
09-12-2025 01:36:09.43327[4][4] - Elapsed time: 0.010 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'hello'. 
-----------------------
09-12-2025 01:36:09.43328[4][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
09-12-2025 01:36:09.43329[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
09-12-2025 01:36:09.43330[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_riski`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
09-12-2025 01:36:09.43375[1][4] - Elapsed time: 0.456 milliseconds
[intialise_conversation.php][check_set_convo_id][653]
Cannot find CONVO ID. Using default: a0fa4cf541fb004505895d1b3c936af9 
-----------------------
09-12-2025 01:36:09.43376[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
09-12-2025 01:36:09.43377[3][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
09-12-2025 01:36:09.43419[2][4] - Elapsed time: 0.416 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
09-12-2025 01:36:09.43420[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
09-12-2025 01:36:09.43469[2][4] - Elapsed time: 0.489 milliseconds
[handle_user.php][intisaliseUser][82]
Initializing user. 
-----------------------
09-12-2025 01:36:09.43505[3][4] - Elapsed time: 0.362 milliseconds
[handle_user.php][intisaliseUser][128]
intisaliseUser #18 SQL: INSERT INTO `users`
        (`id`, `user_name`, `session_id`, `bot_id`, `chatlines`,`ip`, `referer`, `browser`, `date_logged_on` , `last_update`    , `state`)
 VALUES (NULL, 'Seeker'  , 'a0fa4cf541fb004505895d1b3c936af9'   , 1 , '0'        , '74.7.241.29', ''      , 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; GPTBot/1.3; +https://openai.com/gptbot)'      , CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, ''     ); 
-----------------------
09-12-2025 01:36:09.43543[3][4] - Elapsed time: 0.384 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` = 18 AND `bot_id` = 1; 
-----------------------
09-12-2025 01:36:09.43586[2][4] - Elapsed time: 0.423 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
09-12-2025 01:36:09.43588[2][4] - Elapsed time: 0.027 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on hello. 
-----------------------
09-12-2025 01:36:09.43590[2][4] - Elapsed time: 0.020 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
09-12-2025 01:36:09.43662[4][4] - Elapsed time: 0.714 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'hello' 
-----------------------
09-12-2025 01:36:09.43665[4][4] - Elapsed time: 0.029 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
09-12-2025 01:36:09.43666[2][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: HELLO
Convo id: a0fa4cf541fb004505895d1b3c936af9
Bot id: 1
Format:  
-----------------------
09-12-2025 01:36:09.43667[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
09-12-2025 01:36:09.43668[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
09-12-2025 01:36:09.43670[3][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_riski`.`conversation_log` WHERE `user_id` = 18 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
09-12-2025 01:36:09.43776[4][4] - Elapsed time: 1.060 milliseconds
[intialise_conversation.php][load_that][856]
Couldn't find any previous inputs or responses. 
-----------------------
09-12-2025 01:36:09.43808[2][4] - Elapsed time: 0.316 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
09-12-2025 01:36:09.43810[3][4] - Elapsed time: 0.023 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_riski`.`bots` WHERE bot_id = 1; 
-----------------------
09-12-2025 01:36:09.43834[4][4] - Elapsed time: 0.238 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
09-12-2025 01:36:09.43835[0][4] - Elapsed time: 0.016 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
09-12-2025 01:36:09.43836[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
09-12-2025 01:36:09.43836[0][4] - Elapsed time: 0.006 milliseconds 
[conversation_start.php][Called outside of function][235]
Say = HELLO: raw say = hello 
-----------------------
09-12-2025 01:36:09.43837[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
09-12-2025 01:36:09.43838[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [user_say] array 
-----------------------
09-12-2025 01:36:09.43839[4][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
09-12-2025 01:36:09.43840[0][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = hello, RAW say = hello 
-----------------------
09-12-2025 01:36:09.43842[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'hello' to the front of the [input] array 
-----------------------
09-12-2025 01:36:09.43843[4][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
09-12-2025 01:36:09.43845[4][4] - Elapsed time: 0.018 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
09-12-2025 01:36:09.43846[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
09-12-2025 01:36:09.43847[4][4] - Elapsed time: 0.015 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
09-12-2025 01:36:09.43848[4][4] - Elapsed time: 0.013 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
09-12-2025 01:36:09.43873[4][4] - Elapsed time: 0.249 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
09-12-2025 01:36:09.43876[3][4] - Elapsed time: 0.029 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_riski`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'a0fa4cf541fb004505895d1b3c936af9'
    AND (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
09-12-2025 01:36:09.43919[2][4] - Elapsed time: 0.425 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
09-12-2025 01:36:09.43920[4][4] - Elapsed time: 0.016 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
09-12-2025 01:36:09.43921[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
09-12-2025 01:36:09.43947[4][4] - Elapsed time: 0.260 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
09-12-2025 01:36:09.43949[3][4] - Elapsed time: 0.017 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 (
        'HELLO' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
09-12-2025 01:36:09.43990[3][4] - Elapsed time: 0.414 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
09-12-2025 01:36:09.43991[2][4] - Elapsed time: 0.010 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (1) potential AIML matches 
-----------------------
09-12-2025 01:36:09.44028[4][4] - Elapsed time: 0.366 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 1 rows to unset bad matches 
-----------------------
09-12-2025 01:36:09.44028[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 'HELLO' 
-----------------------
09-12-2025 01:36:09.44031[4][4] - Elapsed time: 0.024 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 1 relevant rows 
-----------------------
09-12-2025 01:36:09.44032[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
09-12-2025 01:36:09.44052[4][4] - Elapsed time: 0.203 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)
        )

)
 
-----------------------
09-12-2025 01:36:09.44054[2][4] - Elapsed time: 0.016 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)
        )

)

 
-----------------------
09-12-2025 01:36:09.44067[4][4] - Elapsed time: 0.138 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)
)
 
-----------------------
09-12-2025 01:36:09.44068[2][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
09-12-2025 01:36:09.44070[4][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][get_convo_var][727]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] 
-----------------------
09-12-2025 01:36:09.44071[4][4] - Elapsed time: 0.008 milliseconds
[find_aiml.php][get_convo_var][757]
Get from ConvoArr [conversation][default_aiml_pattern][1][1] FOUND: ConvoArr Value = 'RANDOM PICKUP LINE' 
-----------------------
09-12-2025 01:36:09.44106[2][4] - Elapsed time: 0.352 milliseconds
[misc_functions.php][addUnknownInput][232]
Entry successfully added! 
-----------------------
09-12-2025 01:36:09.44107[1][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][get_aiml_to_parse][944]
Added input 'HELLO' to the unknown_inputs table. 
-----------------------
09-12-2025 01:36:09.44107[4][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:657 (*) 
-----------------------
09-12-2025 01:36:09.44108[3][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
09-12-2025 01:36:09.44109[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = '*' 
-----------------------
09-12-2025 01:36:09.44109[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
09-12-2025 01:36:09.44110[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][set_wildcards][310]
RegEx string = ~(.+)$~siuU: Searching hello for a match. 
-----------------------
09-12-2025 01:36:09.44114[2][4] - Elapsed time: 0.037 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => hello
        )

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

)
 
-----------------------
09-12-2025 01:36:09.44116[2][4] - Elapsed time: 0.021 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'hello' to the stars stack. 
-----------------------
09-12-2025 01:36:09.44117[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => hello
)
 
-----------------------
09-12-2025 01:36:09.44117[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
09-12-2025 01:36:09.44118[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
09-12-2025 01:36:09.44119[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 657
    [category_id] => 657
    [html_template] => 
    [lookingfor] => HELLO
    [pattern] => *
    [score] => 252
    [stars] => Array
        (
            [1] => hello
        )

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

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

    [user_raw] => hello
)
 
-----------------------
09-12-2025 01:36:09.44120[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
09-12-2025 01:36:09.44121[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
09-12-2025 01:36:09.44122[4][4] - Elapsed time: 0.010 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> 
-----------------------
09-12-2025 01:36:09.44126[2][4] - Elapsed time: 0.043 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
09-12-2025 01:36:09.44128[4][4] - Elapsed time: 0.025 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>
 
-----------------------
09-12-2025 01:36:09.44129[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. 
-----------------------
09-12-2025 01:36:09.44130[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
09-12-2025 01:36:09.44131[4][4] - Elapsed time: 0.011 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> 
-----------------------
09-12-2025 01:36:09.44132[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
09-12-2025 01:36:09.44132[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
09-12-2025 01:36:09.44133[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
09-12-2025 01:36:09.44134[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 
-----------------------
09-12-2025 01:36:09.44134[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
09-12-2025 01:36:09.44135[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
)

 
-----------------------
09-12-2025 01:36:09.44135[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
09-12-2025 01:36:09.44136[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 ????' 
-----------------------
09-12-2025 01:36:09.44137[4][4] - Elapsed time: 0.006 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. 
-----------------------
09-12-2025 01:36:09.44138[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
09-12-2025 01:36:09.44138[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 ????
)

 
-----------------------
09-12-2025 01:36:09.44139[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
09-12-2025 01:36:09.44139[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 ????' 
-----------------------
09-12-2025 01:36:09.44140[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???? 
-----------------------
09-12-2025 01:36:09.44141[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
09-12-2025 01:36:09.44141[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
09-12-2025 01:36:09.44142[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 
-----------------------
09-12-2025 01:36:09.44143[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
09-12-2025 01:36:09.44145[2][4] - Elapsed time: 0.024 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 
-----------------------
09-12-2025 01:36:09.44146[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
09-12-2025 01:36:09.44147[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Hmm, bisa ulangi lagi gak?' 
-----------------------
09-12-2025 01:36:09.44148[4][4] - Elapsed time: 0.007 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Hmm, bisa ulangi lagi gak?' 
-----------------------
09-12-2025 01:36:09.44149[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HMM BISA ULANGI LAGI GAK' 
-----------------------
09-12-2025 01:36:09.44149[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HMM BISA ULANGI LAGI GAK' 
-----------------------
09-12-2025 01:36:09.44150[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Kadang aku suka bingung????' 
-----------------------
09-12-2025 01:36:09.44150[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Kadang aku suka bingung????' 
-----------------------
09-12-2025 01:36:09.44151[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'KADANG AKU SUKA BINGUNG' 
-----------------------
09-12-2025 01:36:09.44151[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'KADANG AKU SUKA BINGUNG' 
-----------------------
09-12-2025 01:36:09.44152[2][4] - Elapsed time: 0.009 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 
-----------------------
09-12-2025 01:36:09.44154[4][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
09-12-2025 01:36:09.44155[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????' to the front of the [template] array 
-----------------------
09-12-2025 01:36:09.44155[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
09-12-2025 01:36:09.44156[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
09-12-2025 01:36:09.44157[3][4] - Elapsed time: 0.012 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 ,
      'hello',
      'Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????',
      18,
      'a0fa4cf541fb004505895d1b3c936af9',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
09-12-2025 01:36:09.44258[4][4] - Elapsed time: 1.007 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
09-12-2025 01:36:09.44275[3][4] - Elapsed time: 0.169 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 
-----------------------
09-12-2025 01:36:09.44297[2][4] - Elapsed time: 0.217 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
09-12-2025 01:36:09.44298[4][4] - Elapsed time: 0.010 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
09-12-2025 01:36:09.44298[2][4] - Elapsed time: 0.006 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
09-12-2025 01:36:09.44300[4][4] - Elapsed time: 0.013 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"a0fa4cf541fb004505895d1b3c936af9","usersay":"hello","botsay":"Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????","botData":{"convo_id":"a0fa4cf541fb004505895d1b3c936af9","bot_name":"Chat.ai","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"18","totallines":1,"user_name":"Seeker","rawSay":"hello","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":"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)"}}} 
-----------------------
09-12-2025 01:36:09.44334[2][4] - Elapsed time: 0.347 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
09-12-2025 01:36:09.44337[0][4] - Elapsed time: 0.022 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 28.172 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => hello
    [conversation] => Array
        (
            [convo_id] => a0fa4cf541fb004505895d1b3c936af9
            [bot_name] => Chat.ai
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_id] => 18
            [totallines] => 1
            [user_name] => Seeker
            [rawSay] => hello
            [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] => 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)
                )

        )

    [aiml] => Array
        (
            [user_raw] => hello
            [lookingfor] => HELLO
            [category_id] => 657
            [pattern] => *
            [thatpattern] => 
            [template] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [html_template] => 
            [topic] => 
            [score] => 252
            [aiml_id] => 657
            [stars] => Array
                (
                    [1] => hello
                )

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

            [topic_stars] => Array
                (
                )

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

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

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

    [input] => Array
        (
            [1] => hello
            [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] => Hmm, bisa ulangi lagi gak? Kadang aku suka bingung ????
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"a0fa4cf541fb004505895d1b3c936af9","usersay":"hello","botsay":"Hmm, bisa ulangi lagi gak? Kadang aku suka bingung????","botData":{"convo_id":"a0fa4cf541fb004505895d1b3c936af9","bot_name":"Chat.ai","bot_id":1,"format":"json","unknown_user":"Seeker","user_id":"18","totallines":1,"user_name":"Seeker","rawSay":"hello","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":"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)"}}}
)

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