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.

Public:botattr

Old posts that have not been replied to for several years.
Locked
V
Vixs
Voice
Posts: 12
Joined: Sat May 15, 2004 1:41 am

Public:botattr

Post by Vixs »

Hi
Since my eggdrop ports are blocked , i cant dcc them, so i do public cmd to add users & bots.

what i wanted was a script that woul add this particular cmd: !botattr <bot> <flags>
any idea? :roll:
:)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well you can make a pub command tcl or even one which triggers on private messages. Now I don't know what botattr specifically does? .+user? or .+host? or something relevant in DCC (partyline). Okay I see.
botattr <handle> [changes [channel]]
Description: similar to chattr except this modifies bot flags rather
than normal user attributes.
Returns: new flags for the bot (if you made no changes, the current
flags are returned). If a channel was specified, the global AND the
channel-specific flags for that channel are returned in the format of
globalflags|channelflags. "*" is returned if the specified bot does
not exist.
Module: core
Well for this it should be like:

Code: Select all

#For channels
bind pub - !botattr pub:botattr

proc pub:botattr {nick uhost hand chan text} {
  botattr [lindex $text 0] [lindex $text 1]
}

#For private messages
bind msg - !botattr msg:botattr

proc msg:botattr {nick uhost hand text} {
  botattr [lindex $text 0] [lindex $text 1]
}

You can also make the bind trigger for masters or owners by defining them in the bind so not everyone uses and abuses it.

#Only for owners
bind pub n !botattr pub:botattr

#Only for masters
bind pub m !botattr pub:botattr

Similarly you can do local (channel specific) and global flags, m|o, nm|f and etc.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
V
Vixs
Voice
Posts: 12
Joined: Sat May 15, 2004 1:41 am

Post by Vixs »

Thanks awyeah :o
It worked :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

My pleasure :lol: :lol:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked