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_fz, fzcommands any help pls[solved]

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


Joined: 08 Jun 2009
Posts: 15

PostPosted: Mon Jun 08, 2009 6:08 am    Post subject: sir_fz, fzcommands any help pls[solved] Reply with quote

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
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jun 08, 2009 6:22 am    Post subject: Reply with quote

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:
# 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"
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
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