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.

some help with bind pub - $nick:

Old posts that have not been replied to for several years.
Locked
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

some help with bind pub - $nick:

Post by LorT »

hi, i have a script
set trigger "$botnick:"

bind pub - $trigger proc

i like the bot responde when some one write in channel bot: ***
when i run the bot or do .restart the proc dont work, but it i do rehash the proc work.

what are the error?

thks
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

check out doc/tcl-commands.doc

Post by user »

the 'botnick' variable contains the nick your bot is currently using on irc. (it doesn't have a value untill the bot is logged on irc)
Have you ever read "The Manual"?
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

Post by LorT »

thks, can i do some bind as
bind evnt - init-server proc to set the value?
if i can what is the arguments sent to the tcl proc?
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

Post by LorT »

is fix with dumb way

bind evnt - init-server team:event

proc team:event {type} {
rehash
}

:P

thks
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

why rehash ??

i think you could add the bind on botnick well it should work if it will thats an other story ;)
XplaiN but think of me as stupid
User avatar
LorT
Voice
Posts: 15
Joined: Sun Mar 09, 2003 6:11 pm

Post by LorT »

Ofloo wrote:why rehash ??

i think you could add the bind on botnick well it should work if it will thats an other story ;)
ej. of the bind on botnick pls
Locked