egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

bot greet itself?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Fri Apr 25, 2008 2:55 am    Post subject: bot greet itself? Reply with quote

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
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon May 05, 2008 12:43 am    Post subject: Reply with quote

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. Rolling Eyes probably only displays it if there isn't one for the given channel *sigh* Arrow hope it works anyway. Smile
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
strikelight
Owner


Joined: 07 Oct 2002
Posts: 708

PostPosted: Mon May 05, 2008 7:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber