| View previous topic :: View next topic |
| Author |
Message |
pilouuu Halfop
Joined: 26 Dec 2005 Posts: 82
|
Posted: Thu Jan 11, 2007 11:22 am Post subject: !list |
|
|
| Code: | bind pub -|- "\!bots" request:bots
proc request:bots {nickname hostname handle channel arg} {
set requestable {}
foreach user [userlist] {
if {[matchattr $user b] && [matchattr $user B]} {
lappend requestable [hand2nick $user]
}
}
putserv "NOTICE $nickname :Here is a list of my requestable bots:"
putserv "NOTICE $nickname :[join $requestable ", "]"
}
|
Hi
Bot not say list bot whit Global flags +B or +b. Were is problem
Thx
expl:
!bots
<bot> Here is a list of my requestable bots:
... |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Fri Jan 12, 2007 5:25 pm Post subject: |
|
|
This code should work, assuming you wish to list user-entries who have both b and B (use the binding from the initial post). If you rather want a listing of user-entries that have either b or B, replace the & with a |
| Code: | proc request:bots {nick host hand chan txt} {
puthelp "NOTICE $nick :Here is a list of my requestable bots:"
puthelp "NOTICE $nick :[join [userlist bB&] ", "]"
return 1
} |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
|