This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Wed Jun 11, 2008 11:58 am
hey
i need some help with this script here
Code: Select all
bind pub - !admin help.staff
bind pub - !staff help.staff
proc help.staff {nick host hand chan arg} {
foreach nicks [split [chanlist #Piratezone]] {
if {[isop $nicks]} {
if {[string tolower $nicks]=="bob" || [string tolower $nicks]=="sitebot" || [string tolower $nicks]=="tpz" } {
# [string match -nocase Apache* $nicks] || [string match -nocase Fedtmule* $nicks]
} else {
append o "$nicks "
}
}
}
putserv "privmsg $chan : 04$nick ::: Din admodning er sendt til staff "
putserv "privmsg #piratezone.staff : 04$nick Søger Hjælp Hos En Af Følgende Staff Medlemmer::: $o "
}
how can i put in so when some on use it like this "!staff help with bot setup"
now it's just "!staff" and it return a text in another chan, but will love if i comes to the the staff with tags ~ - & - @
bottom line i need reason into the script but cant se how
speechles
Revered One
Posts: 1398 Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)
Post
by speechles » Wed Jun 11, 2008 3:50 pm
http://forum.egghelp.org/viewtopic.php?t=15535&start=6
This script accomplishes the same thing, but doesn't give users the admin's names. Instead you build a list of your admins, and the bot will message those admins when a user requires assistance.
The script above may just give you the inspiration (code you can steal..erm, borrow..heh) to do it yourself..
Fire-Fox
Master
Posts: 299 Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null
Post
by Fire-Fox » Wed Jun 11, 2008 4:29 pm
Thanks alot