[ABD] Forum AI v0.2.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
mr.luc
Registered User
Posts: 213
Joined: Mon Feb 24, 2003 4:09 pm
Contact:

Post by mr.luc » Mon Jun 09, 2003 2:09 pm

njivy wrote: The users of your forum know the bot isn't an authority, right? I mean, anyone could try to give advice to users, but the users should know who to listen to. (And hopefully that's not your bot. :P)


well.... not quite true...
my bot gets lots of emails... as she is always online.. users ask her for advice. Try to make dates with her. and ... stop posting when she tells them to shut up *grin*
as i put a delay of 10 to 20 minutes to the private messages.. i realized a user trying to date her (he is also from atlanta :P ) spent 48 hours sending and receiving private messages... *lol*
i read through the conversation log...
here are some of that arent to bad:
user:
Probably a couple of hours in photoshop, or................................a couple of seconds in real life.............. but I think you would ever dare to let it come that far .......................

Sleep well, hold tight :wink:

bot:
Umm. Me? Who else would ever dare to let it come that far ? Yes I sleep all the time.
_______________________

user:
I'm glad I saved your first mail telling me you often didn't make as much sense as you wanted. Now it makes sense to me :)
Please be carefull, after a while I might even understand you!

bot:
Why now? I don't think that's possibe.
___________________

user:
Hi Betty, got your message, so is there a way to cancel my membership here? Is there someone else I could write to in order to help me.

bot:
What is your credit card number?

___________________________

user:
i think it was pot luck me finding this site!
Why dont you join me in the chatrooms? I'm in the lounge atm...

bot:
What made it so pot luck finding it? How did you get in there?
___________________________

user:
hey u online?
thought i saw u a moment ago...
fancy a chat?
;]
bot:
I am always up for chat.


just a few examples...
the thing is the welcome pm from the bot comes in with a 30 min delay..
so people don't really get suspicious..

but sometimes her answers are real trash... but overall she is really fun
thumbs up for zemaj who created this mod... :idea:

njivy
Registered User
Posts: 48
Joined: Mon Aug 27, 2001 6:51 am
Contact:

Post by njivy » Mon Jun 09, 2003 2:41 pm

Dude, that's awesome! I don't get a lot of traffic, and my bot's responses are also delayed. But an ocassional visitor picked up right away on the strange responses. :? My cover was blown; but it's still fun to have a bot on the forum.

:?: I'd like to know how you delayed PMs. Did you use the cron hack, or did you do something else?

mr.luc
Registered User
Posts: 213
Joined: Mon Feb 24, 2003 4:09 pm
Contact:

Post by mr.luc » Mon Jun 09, 2003 3:19 pm

well i modified the cron hack...

first the db

Code: Select all

CREATE TABLE iai_cron_posts (
  post_id int(11) NOT NULL default '0',
  topic_id int(11) NOT NULL default '0',
  forum_id int(11) NOT NULL default '0',
  post_subject text,
  post_text text,
  bbcode_uid varchar(255) default NULL,
  past_post_id int(11) NOT NULL default '0',
  pm_to int(11) NOT NULL default '0',
  update_time int(11) NOT NULL default '0',
  send_mail tinyint(1) NOT NULL default '0'
) TYPE=MyISAM;

the pm_to is 0 or 1 (it is set to 1 if it is a pm)
the sendmail (the option is available in the pm code) is 1 if mail should be sent and 0 if not...

here is the file..

Code: Select all

<?php 
/*************************************************************************** 
*                                iai_cron.php 
*                            ------------------- 
*   copyright            : (C) 2003 James Gay 
*   email                : zemaj@palgn.com 
* 
***************************************************************************/ 
/*************************************************************************** 
* 
*   This *should* check & update IAI posts where needed when called. 
*   To use set this page as a cron jobs to run every minute. 
*
*   Added delay for pm!! (the script will only work if the complete hack for delayed pm is installed!!)
*   ATTENTION: Database must be modified to!!!!
*	Actually i don't know if it will run as a cronjob.
*	I included it with: 
*	include($phpbb_root_path.'iai_cron.php'); 
*	at the very beginning of page_tail.php
* 
***************************************************************************/ 

define('IN_PHPBB', true); 

if(!isset($phpbb_root_path)) {
	$phpbb_root_path='./'; 	
}

	include_once($phpbb_root_path.'extension.inc'); 	

	include_once($phpbb_root_path.'common.'.$phpEx); 	

	include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx); 

	include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx);	

// check if we have files in cron table...

$sql = "SELECT COUNT(post_id) as total_bot_postings
			FROM " . IAI_CRON_TABLE  . "
			WHERE  post_id > 0 AND update_time < " . time() . " ";


if ( !($result = $db->sql_query($sql)) ) 
{ 
	message_die(GENERAL_ERROR, 'Could not obtain private message information', '', __LINE__, __FILE__, $sql); 
} 

while ( $ttal_posts = $db->sql_fetchrow($result) ) 
{ 
	$total_bot_posts = $ttal_posts['total_bot_postings']; 
} 
$db->sql_freeresult($result);




$sql = "SELECT COUNT(post_id) as total_bot_pms
			FROM " . IAI_CRON_TABLE  . "
			WHERE pm_to > 0 AND update_time < " . time() . "  ";

if ( !($result = $db->sql_query($sql)) ) 
{ 
	message_die(GENERAL_ERROR, 'Could not obtain private message information', '', __LINE__, __FILE__, $sql); 
} 

while ( $total_pms = $db->sql_fetchrow($result) ) 
{ 
	$total_bot_pms = $total_pms['total_bot_pms']; 
} 
$db->sql_freeresult($result);


// if yes we do the posts first

// then we do the pms

if($total_bot_posts > 0) {
	// Grab all our data 
	$sql = "SELECT c.*, pt.post_text AS past_message, pt.bbcode_uid AS past_bbcode_uid, p.post_username, p.poster_id, t.topic_last_post_id 
	FROM " . IAI_CRON_TABLE . " c, " . POSTS_TEXT_TABLE . " pt, " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t 
    WHERE c.update_time < " . time() . " 
    AND pt.post_id = c.past_post_id 
    AND p.post_id = c.past_post_id 
    AND t.topic_id = p.topic_id"; 
	if ( !($result = $db->sql_query($sql)) ) 
	{ 
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); 
	} 

	$posts = $db->sql_fetchrowset($result); 

	if($total_posts = count($posts))  // if there is a message... there is one we checked before
	{ 
		for( $i = 0; $i < $total_posts; $i++ )  // get each message
        { 
			// Int vars 
			$iai_post_id = $posts[$i]['post_id']; 
			$topic_id = $posts[$i]['topic_id']; 
			$forum_id = $posts[$i]['forum_id']; 
			$iai_subject = $posts[$i]['post_subject']; 
			$bbcode_uid = $posts[$i]['bbcode_uid'];
			$iai_message = $posts[$i]['post_text'];  
			$current_time = time(); 
			$quote_poster = $posts[$i]['poster_id'];
			if($posts[$i]['topic_last_post_id'] != $posts[$i]['past_post_id']) 
			{ 
				// New posts in thread since this reply was set... 
				// Now we have to add old text in a quote. Fun. 
				// clean_up
				$posts[$i]['past_message'] = trim($posts[$i]['past_message']);
				$iai_message = trim($iai_message);

				// we get rid of old bbcode_uid
				$past_message = preg_replace('/\:(([a-z0-9]:)?)' . $posts[$i]['past_bbcode_uid'] . '/s', '', $posts[$i]['past_message']); 

                 $iai_message = preg_replace('/\:(([a-z0-9]:)?)' . $bbcode_uid . '/s', '', $iai_message); 

				// we get the username

				if($posts[$i]['poster_id'] > 1) 
				{
					/* getting the registered username. the post_username gets only the name of anonymous users. tried to include this query in the one above.. but i failed. so i put it here */
							
					$sql2 = "SELECT username FROM ". USERS_TABLE ."
					WHERE user_id = $quote_poster";

					if ( !($result2 = $db->sql_query($sql2)) ) 
					{ 
						message_die(GENERAL_ERROR, 'Error in posting1', '', __LINE__, __FILE__, $sql2); 
					} 
					$posterinfo = $db->sql_fetchrow($result2);							
								
					// now we put the username into the quotes [quote="Username"]
								
					$iai_message = "[quote=\"" . $posterinfo['username'] . "\"]" . $past_message . "[/quote]" . $iai_message;
				}
				else 
				{
					if($posts[$i]['post_username'] != "" ) 
					{
						/* an anonymous user posted... but he entered a username */
						$iai_message = "[quote=\"" . $posts[$i]['post_username'] . "\"]" . $past_message . "[/quote]" . $iai_message;
					}
					else
					{
						/* an anonymous user posted... but he did not enter a username */
						$iai_message = "[quote=\"Anonymous\"]" . $past_message . "[/quote]" . $iai_message;
					}
				}   
						

				// now we parse with new bbcode 
                $bbcode_uid = make_bbcode_uid(); 
				$iai_message = addslashes($iai_message);
				$iai_message = bbencode_first_pass($iai_message, $bbcode_uid);
				$iai_message = stripslashes($iai_message);
                /* somehow this needs an add AND strip slashes!!! i don't know why :-0 but it won't work without... at least on my system !!! */
						
			} 

			$sql = "UPDATE " . POSTS_TABLE . " 
			SET topic_id = $topic_id, forum_id = $forum_id, post_time = $current_time 
			WHERE post_id = $iai_post_id"; 
			if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) 
			{ 
				message_die(GENERAL_ERROR, 'Error in posting1', '', __LINE__, __FILE__, $sql); 
			} 


			$iai_message = str_replace("'", "''", $iai_message);
			$iai_subject = str_replace("'", "''", $iai_subject);

			$sql = "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, bbcode_uid, post_subject, post_text) VALUES ($iai_post_id, '$bbcode_uid', '" . str_replace("\'", "''", $iai_subject) . "',  '" . str_replace("\'", "''", $iai_message) . "')"; 
            
			if ( !($result = $db->sql_query($sql)) ) 
			{ 
				message_die(GENERAL_ERROR, 'Error in posting2', '', __LINE__, __FILE__, $sql); 
			} 

				
			/* we don't include the add_search_words function... because we don't want to upset users if they do a serious search and they would get 100 stupid posts of the bot. If you want to include it you would have to uncomment the 2 following lines! - But i don't know how much load it adds to system and how big dbase gets... if the bot posts alot */
			if($board_config['iai_search_include'] == 1) {
				include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx);  
				add_search_words($iai_post_id, stripslashes($iai_message), stripslashes($iai_subject)); 
			}

			/* you can comment out following line if you dont want the bot count to rise with each post */
			if($board_config['iai_posts_update'] == 1) {
				iai_update_post_stats($forum_id, $topic_id, $iai_post_id, $board_config['iai_userid']); 
			}
			// Updating complete! Remove this from cron table! 
			$sql = "DELETE FROM " . IAI_CRON_TABLE . " 
				WHERE post_id = $iai_post_id"; 
			if ( !($result = $db->sql_query($sql)) ) 
			{ 
				message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); 
			} 
		} // end for...
	
	} // end if $total_posts

} // end if $total_bot_posts 
// print($total_bot_pms);

if($total_bot_pms > 0) 
{  // it is a private message 
	// Grab all our data 
	$sql = "SELECT c.*
	FROM " . IAI_CRON_TABLE . " c
    WHERE c.update_time < " . time() . " 
    AND c.post_id = 0 
    AND c.pm_to > 0 "; 
	if ( !($result = $db->sql_query($sql)) ) 
	{ 
			message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); 
	} 

	$pms = $db->sql_fetchrowset($result); 

	if($total_pms = count($pms))  // if there is a message... there is one we checked before
	{
		for( $i = 0; $i < $total_pms; $i++ )  // get each message
        { 
			// Int vars 
			$user_to_id = $pms[$i]['pm_to'];
			$iai_subject = addslashes($pms[$i]['post_subject']); // with pm this is not allowed to be empty
			$iai_message = addslashes($pms[$i]['post_text']);

			$the_update_time = $pms[$i]['update_time'];
			$send_a_mail = $pms[$i]['send_mail'];
			iai_send_pm($user_to_id, $iai_subject, $iai_message, $send_a_mail);
			// message sent... now delete from cron_table update_time, destination id and subject should be sufficiant to delete .... Attention to the double quotes !!!!!!!
			
			$sql = "DELETE FROM " . IAI_CRON_TABLE . " 
			WHERE pm_to = $user_to_id AND post_subject = '".$iai_subject."' AND update_time = $the_update_time"; 
			if ( !($result = $db->sql_query($sql)) ) 
			{ 
				message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); 
			} 
		}

	} 
} 
?>
i added a few config variables but you can set them manually:
add to top of file:
$board_config['iai_search_include']= 1;
$board_config['iai_posts_update'] = 1;



i cant really find the code for the pms mod, but the basic thing:
if you understand how the delay of the normal messages works.. just adapt it to the pms the same way. ie: instead of going immediately to the pm table.. send them to the cron table. i added a field

the basics was easy.. then came the part where i really got trouble:
stripping the slashes... because in some cases you have to strip them.. sometimes it won't work if you do..
it was playing around.. modifiing here and there..
now it works..
so if you have time (i don't) i'll send you the concerned files and you strip out the code.. and post it..

[edit]
i found the part in the privmsg.php part:
i set the vars for delay in $board_config[''] vars..
but you can enter manually

Code: Select all

		//
		// START PM SYSTEM FOR IAI
		//

		// Should IAI respond to this pm?
		if (
			(
				$mode != "edit"
			) 
			&& 
			(
				$to_userdata['user_id'] == $board_config['iai_userid']
			) 
			&&
			( 
				$board_config['iai_active_pm']
			)
		)
		{

			$privmsg_subject = stripslashes($privmsg_subject);
			$privmsg_message = stripslashes($privmsg_message);
	
			$iai_root_path = $phpbb_root_path . "mods/iai/";
			include($iai_root_path . 'includes/iai_functions.'.$phpEx);
				
			// Init IAI specific vars
			$iai_subject = ( ( !preg_match('/^Re:/',  $privmsg_subject) ) ? 'Re: ' : '' ) .  $privmsg_subject;

			//$iai_subject = ( !preg_match('/\.$/',  $iai_subject) ) ? $iai_subject.'. ' : $iai_subject;
			
			//$iai_subject = (!ereg (".$", $string)) ? $iai_subject.'. ' : $iai_subject;


			// Get IAI reply
			$user_id = ($userdata['session_logged_in']) ? $userdata['user_id'] : 0;
			$topic_id = 0; // the null topic
			$sesh_id = $userdata['session_id']; // should NOT be null in any situation
			$numselects = 0;
			// set bot to reply to subject as well as message as long as subject is not a reply (i.e. has Re: out the front)
			$iai_reply_to = ( ( !preg_match('/^Re:/',  $privmsg_subject) ) ? $privmsg_subject . ". " : "" ) . $privmsg_message;
			$iai_reply_to = str_replace("is " . $board_config['iai_username'], "are you", $iai_reply_to);
			$iai_reply_to = str_replace($board_config['iai_username'], "you", $iai_reply_to);
			$iai_reply = reply($iai_reply_to,$user_id,$topic_id,$sesh_id);
			$iai_message = $iai_reply->response;
			
			//
			// START Delete user's message from bot's inbox/user's outbox (it gets too full and wastes space otherwise).
			// Note that this wipes ALL PAST pms in the bot's inbox from the user. This ensures that any backlog of pms
			// sent while bot was inactive are also wiped.
			//
			$sql = "UPDATE " . USERS_TABLE . " 
				SET user_unread_privmsg = user_unread_privmsg - 1 
				WHERE user_id = " . $board_config['iai_userid'];
			if ( !$db->sql_query($sql) )
			{
				message_die(GENERAL_ERROR, 'Could not update private message read status for user', '', __LINE__, __FILE__, $sql);
			}
			$sql = "SELECT privmsgs_id
				FROM " . PRIVMSGS_TABLE . "
				WHERE privmsgs_to_userid = " . $board_config['iai_userid'] . " AND (privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not obtain id list to delete all messages', '', __LINE__, __FILE__, $sql);
			}
			$mark_list = array();
			while ( $row = $db->sql_fetchrow($result) )
			{
				$mark_list[] = $row['privmsgs_id'];
			}
			unset($delete_type);

			if ( count($mark_list) )
			{
				$delete_sql_id = implode(', ', $mark_list);
			}

			$delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . "
						WHERE privmsgs_text_id IN ($delete_sql_id)";
			$delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . "
					WHERE privmsgs_id IN ($delete_sql_id)
					AND privmsgs_to_userid = " . $board_config['iai_userid'] . "
					AND (privmsgs_type = " . PRIVMSGS_READ_MAIL . " OR privmsgs_type = " . PRIVMSGS_NEW_MAIL . " OR privmsgs_type = " . PRIVMSGS_UNREAD_MAIL . " )";

			if ( !$db->sql_query($delete_sql, BEGIN_TRANSACTION) )
			{
				message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql);
			}

			if ( !$db->sql_query($delete_text_sql, END_TRANSACTION) )
			{
				message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql);
			}
			//
			// END delete sent pms
			//

			// run iai pm send function
			$iai_message = str_replace(".", ". ", $iai_message);
			$iai_message = str_replace("!", "! ", $iai_message);
			$iai_message = str_replace("?", "? ", $iai_message);



			//iai_send_pm($userdata['user_id'], $iai_subject, $iai_message, 0);

$minimum_time = $board_config['ia_pm_delay_min']; //in mins 
					  $maximum_time = $board_config['ia_pm_delay_max']; //in mins 
						$timeframe = $maximum_time - $minimum_time;
					  if($timeframe < 1) 
					  {
					  	$update_time = time();
					  }
					  else
					  {
						$add_mins = mt_rand($minimum_time, $maximum_time); 
						$update_time = time() + ($add_mins * 60); 
					  }

					   $send_pm_mail = 1 // set to 0 if you dont want email notification---
					  iai_send_pmtodb($userdata['user_id'], str_replace("\'", "''", $iai_subject), str_replace("\'", "''", $iai_message), $update_time, $send_pm_mail);


		}
		//
		// END PM SYSTEM FOR IAI
		//

and in functions_post.php
you have to add this function:

Code: Select all

function iai_send_pmtodb($dest_id, $iai_subject, $iai_message, $update_time, $send_mail)
{
	
	global $db;

		$iai_subject = addslashes($iai_subject);
		$iai_message = addslashes($iai_message);

        $sql = "INSERT INTO " . IAI_CRON_TABLE . " ( post_subject, post_text, pm_to, update_time, send_mail) VALUES (  '" . str_replace("\'", "''", $iai_subject) . "',  '" . str_replace("\'", "''", $iai_message) . "', $dest_id, $update_time, $send_mail)"; 
        if ( !($result = $db->sql_query($sql, END_TRANSACTION)) ) 
        { 
                message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); 
        } 

        return false; 

}
cant find where i changed the delay for the welcome pm... i'll look tomorow

i cant remember if i changed something else..
but if you follow the code... ( if there are calls to something else... lemme know)

to everybody:
this is the code i used for my system.
it is not a devellopped mod !!!
it is not meant to run as is on your system!!
The thing it is meant to do.. if you were going to write a delay for pms that works on all systems... you can inspire yourself from this code... and modify it so it will fit your system
only use it if you know what your doing!!!

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Mon Jun 09, 2003 5:23 pm

is there a fix that will alow the bot to reply when you use quick reply with quote?

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Mon Jun 09, 2003 5:38 pm

not to worry fixed it had a wrong setting somewere

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Mon Jun 09, 2003 6:11 pm

i get this error
Warning: Cannot set time limit in safe mode in /usr/local/psa/home/vhosts/danb00.34sp.com/httpdocs/forum/mods/iai/includes/load_functions.php on line 724
Loading file: comp_terms.aiml (happenes with every file)

Then it says

*ALL FILES LOADED SUCCESSFULLY*
Click here to return
[305 AIML categories inserted]

njivy
Registered User
Posts: 48
Joined: Mon Aug 27, 2001 6:51 am
Contact:

Post by njivy » Mon Jun 09, 2003 6:13 pm

mr.luc wrote: well i modified the cron hack...
<snipped>

to everybody:
this is the code i used for my system.
it is not a devellopped mod !!!
it is not meant to run as is on your system!!
The thing it is meant to do.. if you were going to write a delay for pms that works on all systems... you can inspire yourself from this code... and modify it so it will fit your system
only use it if you know what your doing!!!


Thanks, mr.luc. :) You saved me a lot of grunt work. Nice touch at the end, too. Does this mean I can't ask you to install it for me? ::/me ducks:: :P

njivy
Registered User
Posts: 48
Joined: Mon Aug 27, 2001 6:51 am
Contact:

Post by njivy » Mon Jun 09, 2003 6:15 pm

danb00 wrote: i get this error
Warning: Cannot set time limit in safe mode ...


Try using the safe mode option to install AIML files, danb00. ;)

njivy
Registered User
Posts: 48
Joined: Mon Aug 27, 2001 6:51 am
Contact:

Post by njivy » Mon Jun 09, 2003 6:29 pm

parad0x wrote: @mr.luc I have had similar responses as the one you described ""? The strange part is that it almost seems to be a misfire (for lack of a better word). It's not that she doesn't know what to say, as she has canned responses for that. And it's not that she can't pull from your statement and quote it back as a question, because I have seen her do it many times. I can't think of a better way to describe it, other than "misfire". But I'm with you, I would love to know how to remedy this little quirk.


Continuing with my thought on the previous page, there may be a way to prevent blank responses like ""? why?. I haven't checked this out thoroughly, so this is all a guess:

The AIML probably looks like:

Code: Select all

<category>
<pattern>WHY</pattern>
<template>
"<that/>"? Why?
</template>
</category>
To prevent blank bot responses, try adding the following code:

Code: Select all

<category>
<pattern>WHY</pattern>
<that></that>
<template>
What do mean, why?
</template>
</category>
According to the ALICE AIML Primer, patterns are matched in the following order:
ATOMIC with a TOPIC and a THAT
ATOMIC with a TOPIC
DEFAULT with a TOPIC and a THAT
DEFAULT with a TOPIC
ATOMIC with a THAT
ATOMIC
DEFAULT with a THAT
DEFAULT


So a <category> with a matching <that></that> will be returned first, preventing a blank response like ""? Why?. I think. :? :P

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Mon Jun 09, 2003 6:43 pm

how would i add wonderfull words suck as You big f@@@@@@ mother f@@@@@@@@@@@@@@


cos it will be fun :)

njivy
Registered User
Posts: 48
Joined: Mon Aug 27, 2001 6:51 am
Contact:

Post by njivy » Mon Jun 09, 2003 6:58 pm

As fun as that might be, it's more fun to figure out how to do it yourself. ;)

parad0x
Registered User
Posts: 93
Joined: Fri Apr 18, 2003 12:41 am
Contact:

Post by parad0x » Mon Jun 09, 2003 7:35 pm

L0cke wrote: Hey parad0x, you wouldn't happen to have those AIML files you used, would you? Your bot is most impressive (your bot IS Jessica, right?)!

LOL, yeah, Jessica is the bot ... glad you like her :D The AIML files I used are just the standard ones plus the ones I made, and in this order with no overwrite:

STD (with MOD)
Alice
Anna
J-Alice
and all the ones I made

All of the above should be listed here http://www.phpbb.com/phpBB/viewtopic.ph ... start=1006 Other than that, I really haven't done anything that special with her. Well there was the blood letting on the server but ... j/k :roll:

Also, I think a little bit of how she acts comes from the people that chat with her, as she logs everything. I've actually been thinking about having her kick people from chat if they are too rude, or give an offending user a warning (or report post to moderators) if they post offensively. But this could turn into more of a headache than it's worth ... would be entertaining though 8O Any thoughts on this?

@njivy That makes sense, and I think it would be a good improvement. A canned response is better than an incomplete one. I'll have to look into that when I get some time.

Demah
Registered User
Posts: 108
Joined: Wed Dec 18, 2002 2:33 am

Post by Demah » Mon Jun 09, 2003 8:00 pm

Can someone help me please I installed everything and try to go into my admin panel and get this

Code: Select all

Warning: main(admin_iai_ai.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(): Failed opening 'admin_iai_ai.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(admin_iai_aiml_install.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(): Failed opening 'admin_iai_aiml_install.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(admin_iai_forum.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(): Failed opening 'admin_iai_forum.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(admin_iai_pm.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Warning: main(): Failed opening 'admin_iai_pm.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\index.php on line 63

Demah
Registered User
Posts: 108
Joined: Wed Dec 18, 2002 2:33 am

Post by Demah » Mon Jun 09, 2003 8:53 pm

Ok i tried reinstalling the board and then the AI mod and I get this when I click on the Admin panel and then AIML Files link

Code: Select all

Warning: main(./../mods/iai/includes/constants.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 43

Warning: main(): Failed opening './../mods/iai/includes/constants.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 43

Warning: main(./../mods/iai/includes/load_functions.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 44

Warning: main(): Failed opening './../mods/iai/includes/load_functions.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 44

Warning: opendir(./../mods/iai/aiml/): failed to open dir: Invalid argument in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 243

Warning: readdir(): supplied argument is not a valid Directory resource in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 244

Warning: closedir(): supplied argument is not a valid Directory resource in c:\inetpub\wwwroot\phpBB2\admin\admin_iai_aiml_install.php on line 253
[/size]

And then if I try to post something in the board I get this

Code: Select all

Warning: main(./mods/iai/includes/iai_functions.php): failed to open stream: Permission denied in c:\inetpub\wwwroot\phpBB2\posting.php on line 676

Warning: main(): Failed opening './mods/iai/includes/iai_functions.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\wwwroot\phpBB2\posting.php on line 676

Fatal error: Call to undefined function: reply() in c:\inetpub\wwwroot\phpBB2\posting.php on line 693
[/size]


Can someone help me please?

parad0x
Registered User
Posts: 93
Joined: Fri Apr 18, 2003 12:41 am
Contact:

Post by parad0x » Mon Jun 09, 2003 9:26 pm

Did the board work ok before the MOD (as far as posting goes)? I'm not sure, but it almost looks as if you may have a few wrong paths supplied. It looks like it's actually looking at c:\php4\pear for the includes instead of where it actually is ( mods/iai/includes/ ).

Locked

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 22 guests