BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian modules => Topic started by: kardsen on July 11, 2008, 01:16:39 am

Title: trek , homer, love, movie, random quotes
Post by: kardsen on July 11, 2008, 01:16:39 am
5 files.  each one contains a different set of quote styles..
!trek for a random Star Trek Quote.
!mquote for a random movie quote
!rquote for a random quote
!homer for a homer simpson quotes
!love for some humorous adult themed responces

All of the above updated using Temar's memory friendly code example given on the !trek.phps below

Thanks Temar, Vrykalas, Creation (ragebot), Chaly (ragebot)..  and anyone else I may have forgotten.
The only original by me is the trek.phps  and that list was stolen from a quotes site  :)

TO INSTALL
download modules you want to add.
rename them from .phps  to .php
Install them to  ./customer/modules/    folder
Title: Re: trek quotes
Post by: glintz on July 12, 2008, 10:56:51 pm
This made my day thank you sir.

Glintz
Title: Re: trek quotes
Post by: kardsen on July 12, 2008, 11:23:28 pm
glad you like it :)
Title: Re: trek quotes
Post by: Temar on July 13, 2008, 07:06:23 am
I have Improved the Coding of this, this is more memory Friendly as you have all the quotes inside a function and cache
mine has it inside a function only
Title: Re: trek , homer, love, movie, random quotes
Post by: glintz on July 13, 2008, 03:23:13 pm
Thanks guys I am using all of these.  For some reason just with homer quotes the bot displays squares where there is punctuation using this char ’ .  If you search and replace them all with ' it goes away though.  This may just be on my bot but I have only seen it with the Homer.php.  It was the same when I modified the ragebot homer to run on bebot using the !chuck module as a model.

Thanks for all your hard work on this my guild and I love them.

Glintz
Title: Re: trek , homer, love, movie, random quotes
Post by: Temar on July 13, 2008, 03:35:34 pm
yer the issue was prob because like with alot of these module its all just copied from webpages :p
Title: Re: trek , homer, love, movie, random quotes
Post by: glintz on July 13, 2008, 03:46:10 pm
Here is the one i modified from chuck if you want to copy the txt i think its the same quotes.

Glintz
Title: Re: trek , homer, love, movie, random quotes
Post by: kardsen on July 13, 2008, 10:50:48 pm
hmm, my homer works fine.

Strange.
Title: Re: trek , homer, love, movie, random quotes
Post by: Vrykolas on July 13, 2008, 11:29:16 pm
I've had the same bug come up in files - a solution I use is to replace single quotes in the text with ' (note: only do this with text that is supposed to display a single quote mark eg: <a href='text://xxxx'>It's good day</a>
Title: Re: trek , homer, love, movie, random quotes
Post by: eliro2000 on July 14, 2008, 08:21:37 am
i know im a noob but please tell me anyone in what folder do the *.phps files go. thanks in avance
Title: Re: trek , homer, love, movie, random quotes
Post by: Nytridr on July 14, 2008, 08:50:39 am
rename it to *.php and put it in the proper folder.. phps is just for the web server will not think it needs to run it basically.. phps = PHP Source
Title: Re: trek , homer, love, movie, random quotes
Post by: kardsen on July 15, 2008, 04:46:15 pm
Found the problem in homer.phps.

’  was used    should have been '

Changed in current Homer.phps file.
SimplePortal 2.3.7 © 2008-2024, SimplePortal