From infobot-dev@metronomicon.com  Sun Jan  9 01:30:11 2000
Return-Path: <infobot-dev@metronomicon.com>
Received: (from majordomo@localhost)
	by token.metronomicon.com (8.9.3/8.8.7) id BAA27259
	for infobot-dev-list; Sun, 9 Jan 2000 01:29:22 -0500
Received: from ops_rs6k.harmonic.com (IDENT:0@harmonic.com [206.146.220.1])
	by token.metronomicon.com (8.9.3/8.8.7) with ESMTP id BAA27256
	for <infobot-dev@infobot.org>; Sun, 9 Jan 2000 01:29:21 -0500
Received: from cake.harmonic.com (noc.harmonic.com [206.146.220.44])
	by ops_rs6k.harmonic.com (8.9.0/8.9.1) with ESMTP id AAA08378
	for <infobot-dev@infobot.org>; Sun, 9 Jan 2000 00:30:12 -0600
Received: from noc.harmonic.com (noc.harmonic.com [206.146.220.44])
	by cake.harmonic.com (8.9.2/8.9.1) with ESMTP id AAA28768
	for <infobot-dev@infobot.org>; Sun, 9 Jan 2000 00:33:17 -0600 (CST)
Date: Sun, 9 Jan 2000 00:33:16 -0600 (CST)
From: Jay Jacobs <jay@cake.harmonic.com>
X-Sender: jay@cake.harmonic.com
To: Infobot development list <infobot-dev@infobot.org>
Subject: module idear (Quotes anyone?)
Message-ID: <Pine.GSO.4.21.0001090025270.28690-100000@cake.harmonic.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: infobot-dev@metronomicon.com
Precedence: bulk
Status: O

I was thinking of starting work on a quote module. and here are my
thoughts on it.

usage: quote <nick>

would take the last thing <nick> said and stick it into a dbm or some way
tie it to the nick.  In theory I was thinking that it could be taken from
the seen-dbm, but I haven't looked at it.

There'd be a one-to-many relationship between nick-to-quote.

more usage: (spit out|regurgitate|recite) quote (from) <nick>

that would pick a random quote from <nick> and recite it with:
> teckle says "I like to smell my shoes after a long day"
Or something like that.  One problem I see (as with a lot of infobot
info) is data verification and removal of quotes... but that'll be the
second version of the module I suppose.

This is all in theory and no work has been done yet.  But I figured rather
then start something someone else was working on I'd post here.  That and
possibly get some direction/assistance on it.

Jay
(teckle)

From infobot-dev@metronomicon.com  Sun Jan  9 01:50:42 2000
Return-Path: <infobot-dev@metronomicon.com>
Received: (from majordomo@localhost)
	by token.metronomicon.com (8.9.3/8.8.7) id BAA27365
	for infobot-dev-list; Sun, 9 Jan 2000 01:50:42 -0500
Received: from othersideofthe.earth.li (IDENT:qmailr@othersideofthe.earth.li [210.145.136.209])
	by token.metronomicon.com (8.9.3/8.8.7) with SMTP id BAA27362
	for <infobot-dev@infobot.org>; Sun, 9 Jan 2000 01:50:40 -0500
Received: (qmail 21777 invoked by uid 500); 9 Jan 2000 06:51:29 -0000
Date: Sun, 9 Jan 2000 15:51:29 +0900
From: Simon Cozens <simon@brecon.co.uk>
To: Infobot development list <infobot-dev@infobot.org>
Subject: Re: module idear (Quotes anyone?)
Message-ID: <20000109155129.A21689@othersideofthe.earth.li>
Reply-To: Simon Cozens <simon@brecon.co.uk>
References: <Pine.GSO.4.21.0001090025270.28690-100000@cake.harmonic.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/"
X-Mailer: Mutt 0.95.6i
In-Reply-To: <Pine.GSO.4.21.0001090025270.28690-100000@cake.harmonic.com>; from Jay Jacobs on Sun, Jan 09, 2000 at 12:33:16AM -0600
X-Operating-System: Linux othersideofthe.earth.li 2.2.13
Sender: infobot-dev@metronomicon.com
Precedence: bulk
Status: O


--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii

On Sun, Jan 09, 2000 at 12:33:16AM -0600, Jay Jacobs wrote:
> I was thinking of starting work on a quote module. and here are my
> thoughts on it.

Been there, done that.

-- 
Behind every great computer sits a skinny little geek.

--TB36FDmn/VVEgNH/
Content-Type: application/x-perl
Content-Disposition: attachment; filename="oxquote.pl"

# Template infobot extension


BEGIN {
	eval "use Mail::Send"; $nomm++ if $@;
}

sub oxquote { 
	my ($from, $by, $what) = @_;
	return "Not available at this time." if defined $main::nomm;
	my $msg=Mail::Send->new(Subject=>"OxIRC quote submission",
			To=>"Matthew.Clemson\@keble.oxford.ac.uk");
	
	my $fh=$msg->open or return "Couldn't open the filehandle";
	print $fh "At ".(scalar localtime)."(JAPAN TIME!) on ".channel().":\n";
	print $fh "$by said: $what\n\n";
	print $fh "$from thought this was funny, apparently.\n";
	$fh->close;
	return "OK, told Rap.";
}

1;

__END__

=head1 NAME

Filename.pl - Description

=head1 PREREQUISITES

	Some::Module

=head1 PARAMETERS

switchname

=over 4

=item value1

Description

=item value2

Description

=back

=head1 PUBLIC INTERFACE

Here you put how you call your sub from the bot user's point of view

=head1 DESCRIPTION

What is it?

=head1 AUTHORS

Who are you?

--TB36FDmn/VVEgNH/--


