egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Filter out dupe msg's

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Fri Sep 05, 2008 4:00 am    Post subject: Filter out dupe msg's Reply with quote

Hi everbody Smile

I've the following script from this forum Smile

Code:

set chan1 "#chan1"
set chan2 "#chan2"

bind pubm - * my:echo

proc my:echo {n u h c t} {
        global chan1 chan2
        set chan1 [string tolower $chan1]
        set c [string tolower $c]
   set t [stripcodes abcgru $t]
        if {$c == $chan1} {
                putfast "PRIVMSG $chan2 $t"
        }
}


Lot of Information is collected in chan1 and my bot is echoing everything
to chan2. Many text is dupe.

Whant i need now:

Can someone help me to filter out dupe-text - preferable only within ~ 5 Minutes; so that everything that has been echoed in this time, will not be echo'd twice or more times ? Smile

Hopefully somenone can help. Thx in advance!
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Fri Oct 10, 2008 3:41 pm    Post subject: Reply with quote

I had a simlar problem to this in the past. You might be able to adapt it to help your script as well http://forum.egghelp.org/viewtopic.php?t=15691&highlight= Smile
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber