| View previous topic :: View next topic |
| Author |
Message |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Fri Apr 25, 2008 2:55 am Post subject: bot greet itself? |
|
|
| trying to get a greet script of bot greeting itself when it joins room and no one elses joins. I trid $botnick in some but no luck. any one got one? |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Mon May 05, 2008 12:43 am Post subject: |
|
|
| Code: | proc join:greet_self {nick host handle channel} {
if {([isbotnick $nick])} {
set bot_chaninfo [getchaninfo $handle $channel]
set bot_globalinfo [getuser $handle INFO]
if {($bot_globalinfo != "")} {
puthelp "PRIVMSG $channel :\[$nick\] $bot_globalinfo"
return
}
if {($bot_chaninfo != "")} {
puthelp "PRIVMSG $channel :\[$nick\] $bot_chaninfo"
return
}
}
}
bind join - "* *" join:greet_self | Not tested, just add the bot to its own userfile with +bot and then .chinfo <botnick> [greet] for all channels, or for channel specific just do .chinfo <botnick> [#chnanel] [greet]. Not sure if eggdrop's default greet system displays global info lines if one is presant and ignores what everys set for the users greet for the given channel. probably only displays it if there isn't one for the given channel *sigh* hope it works anyway.  _________________ TCL the misunderstood |
|
| Back to top |
|
 |
strikelight Owner

Joined: 07 Oct 2002 Posts: 708
|
Posted: Mon May 05, 2008 7:13 pm Post subject: |
|
|
| I'm not sure that a join bind (or any bind for that matter) will be triggered by the bot itself, even with a user record of the bot added to itself. Think you may need to do a raw binding on something like end of receiving names list (366). |
|
| Back to top |
|
 |
|