| View previous topic :: View next topic |
| Author |
Message |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Wed Jun 11, 2008 11:58 am Post subject: help with script |
|
|
hey
i need some help with this script here
| Code: | 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 _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Wed Jun 11, 2008 3:50 pm Post subject: |
|
|
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..  _________________ speechles' eggdrop tcl archive |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Wed Jun 11, 2008 4:29 pm Post subject: |
|
|
Thanks alot  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
|