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.

sir_fz, fzcommands any help pls[solved]

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
L
LB_1981
Voice
Posts: 15
Joined: Mon Jun 08, 2009 5:53 am

sir_fz, fzcommands any help pls[solved]

Post by LB_1981 »

Hi im currently using fzcommands on my server and it works wonders but im wondering if it would be possible to add to it the bot it is used on has network admin rights if possible can the following command be added so it will do it via /msg botnick

act kill tempshun sajoin sapart gline
Gline needs to be pre set to 4hours if possible

these will then act as extra privaledges for our senior moderators and some more basic commands for our room moderators

if any is able to help many thanks in advance
Last edited by LB_1981 on Fri Jun 19, 2009 12:09 pm, edited 2 times in total.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

It's not necessary to modify FzCommands for this reason. You can simply load another script for oper commands (I'm not sure if one exists in the Tcl Archive). An example on how to make the bot react on a private command:

Code: Select all

# a message "kill" from a bot owner (flag n)
bind msg n kill msg:kill

proc msg:kill {nick uhost hand arg} {
 # target will be the first word after "kill"
 set target [lindex [split $arg] 0]
 # kill target (the syntax isn't necessary correct)
 putserv "kill $target"
}
Post Reply