| View previous topic :: View next topic |
| Author |
Message |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Aug 15, 2009 1:52 am Post subject: Sir can u add this to your fzcommands.tcl |
|
|
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 |
|
 |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Fri Jan 14, 2011 2:07 pm Post subject: |
|
|
bumping in hope someone does this  |
|
| Back to top |
|
 |
doggo Halfop
Joined: 05 Jan 2010 Posts: 97
|
Posted: Fri Jan 14, 2011 9:03 pm Post subject: |
|
|
| 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 |
|
 |
.pt Halfop
Joined: 16 Nov 2005 Posts: 71
|
Posted: Sat Jan 15, 2011 10:10 am Post subject: |
|
|
| ty u but i want fzcommands with that, can u prolly modify it to work with it? |
|
| Back to top |
|
 |
|