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 

help

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Tue Sep 05, 2006 5:44 am    Post subject: help Reply with quote

bind msgm - * responce:msgm
proc responce:msgm {nick uhost hand text} {
global botnick
set whom $nick
set mask *!*[lindex [join [split $uhost $nick] @] 1]
putserv "PRIVMSG $whom :main ap say nahi bolti ap to mare channel #alam main nahi han mara b channel join karain na type /j alam or double click on #alam"
newignore $mask $whom TempIgnore 60
}


Please see the code & please tell me do it ignore for 60 days, hours, months, minutes , secands , i need it ignore for only 60 secands & let me know how to see Ignore list in DCC of EGgdrop please
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Sep 05, 2006 6:15 am    Post subject: Reply with quote

Try reading the documentation

tcl-commands:
newignore <hostmask> <creator> <comment> [lifetime]
Description: adds an entry to the ignore list; creator is given credit
for the ignore. lifetime is how many minutes until the ignore expires
and is removed. If lifetime is not specified, ignore-time (usually 60)
is used. Setting the lifetime to 0 makes it a permanent ignore.


egghelp.org: eggdrop command reference (core commands)
ignores
m|-
ignores [wildcard]

Lists the hostmasks that the bot is currently discarding msgs, etc from. The ignores are numbered, so they can be easily removed with .-ignore by number.
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Tue Sep 05, 2006 6:20 am    Post subject: Re:Help Reply with quote

Can u make it 60 Secands ? i mean The ignore time & watch all this TCL it give errer of primenick 2


-------------------------------------
set primenick "Sonia^"; #Edit this
set nickpass "*******"; #Edit this
set nickservice "nickserv@services.dal.net"; #Dont Edit
set servicesname "NickServ"; #Dont edit

bind evnt - init-server auto:id
bind notc - "*nick is owned by someone else*" autoid:notc
bind evnt - init-server addwatch

proc auto:id {type} {
global botnick nickservice nickpass primenick
putserv "PRIVMSG $nickservice :identify $primenick $nickpass"
}

proc autoid:notc {nick uhost hand text dest} {
global botnick nickpass primenick nickservice
if {($nickservice == "") || ([lsearch -exact [split [string tolower $nickservice]] [string tolower $nick]] != -1)} {
putserv "PRIVMSG $nickservice :identify $primenick $nickpass"
unbind notc - "*nick is owned by someone else*" autoid:notc
}
}

proc addwatch { type } {
if {![isbotnick $primenick]} {putquick "privmsg $nickservice :GHOST $primenick $nickpass" -next}
putserv "watch +$servicesname"
}

bind pub m .join join:pub
proc join:pub {nick uhost hand chan text} {
global botnick
set text [lindex $text 0]
set temp [eval channel add $text]
putserv "NOTICE $nick :I have added $text to my channel list!"
}

bind pub m .part part:pub
proc part:pub {nick uhost hand chan text} {
global botnick
set text [lindex $text 0]
set temp [eval channel remove $text]
putserv "NOTICE $nick :I have deleted $text from my channel list!"
}

set exemptglobflags "m n o b f"
set exemptchanflags "m n o f"

bind msg - "*" msg:responce
proc msg:responce {nick uhost hand text} {
global botnick
set whom $nick
set mask *!*@[lindex [split [$uhost $whom] @] 1]
foreach globflag $exemptglobflags { if {[matchattr $hand $globflag]} { return 1 } }
foreach chanflag $exemptchanflags { if {[matchattr $hand |$chanflag $chan]} { return 1 } }
putserv "PRIVMSG $whom :main ap say nahi bolti ap to mare channel #alam main nahi han mara b channel join karain na type /j alam or double click on #alam"
newignore $mask $whom TempIgnore 60
}

bind msgm - * responce:msgm
proc responce:msgm {nick uhost hand text} {
global botnick
set whom $nick
set mask *!*[lindex [join [split $uhost $nick] @] 1]
putserv "PRIVMSG $whom :main ap say nahi bolti ap to mare channel #alam main nahi han mara b channel join karain na type /j alam or double click on #alam"
newignore $mask $whom TempIgnore 60
}
putlog "Random Stuff - Loaded"
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Tue Sep 05, 2006 6:23 am    Post subject: Reply with quote

60 seconds equals 1 minute.
Back to top
View user's profile Send private message
Thanhas
Op


Joined: 02 Sep 2006
Posts: 124
Location: Ottawa, Canada

PostPosted: Tue Sep 05, 2006 6:27 am    Post subject: yes Reply with quote

yes 60Secands equl to 1 minute
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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