BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.4.x Custom/Unofficial Modules => Topic started by: Temar on July 23, 2007, 01:55:50 pm

Title: AFK.php
Post by: Temar on July 23, 2007, 01:55:50 pm
This is Improved AFK Module
New Features


Changes

Notes
You can use This AFK Module with out Alias.php, you shouldnt have any problems
Title: Re: AFK.php
Post by: Temar on July 23, 2007, 02:03:09 pm
This is Patch File for AFK.php incase the Bebot team add to SVN

Edit - Updated Patch (11/08/07)
Title: Re: AFK.php
Post by: Alreadythere on July 23, 2007, 02:18:36 pm
Some comments:
Title: Re: AFK.php
Post by: Temar on July 23, 2007, 02:27:16 pm
Quote
You are doing one mysql query each time someone says anything in private group of org chat. That's bad, mysql queries are one of the more cost-intensive commands (cpu wise). Which is why we reduced them as much as possible by caching and optimization for 0.4
Ill Do some Caching later today
Quote
The msg_check() function is pretty excessive for being called everytime any chat happens. Some optimization would be much better, if you need to do some bookkeeping like going over alts do it in the handler for the !afk command itself.
Ill see what i can do :D
Quote
The alias module looks quite a bit like the shortcuts module. Perhaps you can use that instead? It's already in the bot after all.
Never looked at that module its for commands only isnt it , but there maybe improveing that module instead of new module might be better
Title: Re: AFK.php
Post by: Temar on July 23, 2007, 02:35:59 pm
ah i see it a shortcut that can be used with anything

well i cant just use it as i dont want the afk module checking other shortcut just the names of members

what you thing would be the best way to acomplish this alreadythere?
Title: Re: AFK.php
Post by: Temar on July 23, 2007, 02:38:36 pm
1 thing i can do which would be good for large org with alot of members and will prob have alot of alias's
is to get and cache ONLY the the alias's relivant to the users that are AFK
Title: Re: AFK.php
Post by: Temar on July 23, 2007, 02:44:07 pm
And i will also add a If no 1 is AFK dont Check the msg
Title: Re: AFK.php
Post by: Alreadythere on July 24, 2007, 10:47:16 am
ah i see it a shortcut that can be used with anything

well i cant just use it as i dont want the afk module checking other shortcut just the names of members

what you thing would be the best way to acomplish this alreadythere?
I guess I should add class names to the shortcuts, so you can just query character aliases and no other shortcuts.
Title: Re: AFK.php
Post by: Temar on July 27, 2007, 04:00:21 pm
Made Lots of Changes
you also Need an update of Alias.php for the Added Cache
Title: Re: AFK.php
Post by: Temar on July 31, 2007, 05:42:53 pm
Added Option to Turn of Use of Alias
Incase you want this for the Time AFK and not alias :D
Title: Re: AFK.php
Post by: Temar on August 12, 2007, 12:22:36 am
Fixed Bug
Title: Re: AFK.php
Post by: Temar on August 30, 2007, 12:52:46 am
Added message saving so when like some 1 saying ur name a gets user is afk (message)
what ever they said to trigger it is saved
and when u come back if there is any messages they are shown
SimplePortal 2.3.7 © 2008-2024, SimplePortal