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.

newbie question: where is isbot{}-proc?

Help for those learning Tcl or writing their own scripts.
Post Reply
f
foxterrier
Voice
Posts: 5
Joined: Mon Dec 20, 2010 11:20 am

newbie question: where is isbot{}-proc?

Post by foxterrier »

Is it in some module? I don't use botnet, but one of scripts needs to know if kicker or kicked is bot...
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

check the 'doc/' folder of the eggdrop directory. its called 'tcl-commands.doc' or if you want the html version 'doc/html/' directory. View it online here via: eggheads.org

Code: Select all

 ...
if {[isbotnick $nick]} {return true} else {return false}
f
foxterrier
Voice
Posts: 5
Joined: Mon Dec 20, 2010 11:20 am

Post by foxterrier »

tcl-commands.doc contains proc isbotnick (in module server) and is useless.
it founds MY bot as bot but other bots as human

still looking around...
I need function to see if object is human or bot
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

I'd suggest something along these lines:
First get the user/bot's handle using nick2hand. Then use matchattr to check whether the handle has the "b" flag or not (indicating whether it's a registered bot or not).
NML_375
f
foxterrier
Voice
Posts: 5
Joined: Mon Dec 20, 2010 11:20 am

Post by foxterrier »

that was something i thought next to try.

how none written simple function for this? do i have to?
f
foxterrier
Voice
Posts: 5
Joined: Mon Dec 20, 2010 11:20 am

Post by foxterrier »

btw. whats different /w 'registered'?
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Someone who's been added as a user or bot using .+user, .adduser, or .+bot
NML_375
f
foxterrier
Voice
Posts: 5
Joined: Mon Dec 20, 2010 11:20 am

Post by foxterrier »

got that, covers 104% in our chan..
something like: if { [ matchattr [ nick2hand $nick ] "b" ] } {...
Post Reply