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 

Sir can u add this to your fzcommands.tcl

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


Joined: 16 Nov 2005
Posts: 71

PostPosted: Sat Aug 15, 2009 1:52 am    Post subject: Sir can u add this to your fzcommands.tcl Reply with quote

if u can and have the time for it, i would much apreciate

. the option of using also the botnick as a trigger

example:

now we use !op, i would like to use also botnick op

-----

ty in advance
Back to top
View user's profile Send private message
.pt
Halfop


Joined: 16 Nov 2005
Posts: 71

PostPosted: Fri Jan 14, 2011 2:07 pm    Post subject: Reply with quote

bumping in hope someone does this Razz
Back to top
View user's profile Send private message
doggo
Halfop


Joined: 05 Jan 2010
Posts: 97

PostPosted: Fri Jan 14, 2011 9:03 pm    Post subject: Reply with quote

Code:
##############################################
# Rls: botdo.tcl                             #
# Date: 15/01/11                             #
# Coded by: doggo                            #
# Contact: #alt.binaries.inner-sanctum EFNET #
##############################################

# Usage: botnick op <nick>
#        botnick voive <nick>

# Script Starts Here

bind pubm - * botdo

proc botdo {nick host hand chan text} {
    set bot [lindex [split $text] 0]
    set do [lindex [split $text] 1]
    set who [join [lrange [split $text] 2 end]]
    if {![isbotnick $bot]} { return }
    switch -exact -- [string tolower $do] {
        "op" {
            if {![matchattr $hand o|o $chan]} { putserv "PRIVMSG $chan :you dont have the POWER!"; return }
            if {![onchan $who $chan]} { putserv "PRIVMSG $chan :$who ?"; return }
            putserv "MODE $chan +o $who"
        }
        "voice" {
            if {![matchattr $hand o|o $chan]} { putserv "PRIVMSG $chan :you dont have the POWER!"; return }
            if {![onchan $who $chan]} { putserv "PRIVMSG $chan :$who ?"; return }
            putserv "MODE $chan +v $who"
        }
        default {
            putserv "PRIVMSG $chan :hmm $do ?"
        }
    }
}

putlog "botdo.tcl loaded"

_________________
NON geeky!! http://gotcode4u.com/
Back to top
View user's profile Send private message Visit poster's website
.pt
Halfop


Joined: 16 Nov 2005
Posts: 71

PostPosted: Sat Jan 15, 2011 10:10 am    Post subject: Reply with quote

ty u but i want fzcommands with that, can u prolly modify it to work with it?
Back to top
View user's profile Send private message
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