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.

eggdrop introduce himself?

Old posts that have not been replied to for several years.
Locked
d
difoo
Voice
Posts: 33
Joined: Sat Jul 03, 2004 9:56 am

eggdrop introduce himself?

Post by difoo »

Hello, how can you let the eggdrop introduce himself when he joins a channel? Like this:

[1:32] *** Join <bot> - #mycastle
[1:32] <bot> Hello all, my Name is bot and guard your channel!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Here, something simple as this should do it:

Code: Select all

#Set the channel you want this script active on
set greetchan "#mychannel"

#Set the message here with which you want the bot to greet on join
set greetmsg "Hello all! I am an eggdrop bot and I am here guard your channel!"


bind join - "*" bot:greeting

proc bot:greeting {nick uhost hand chan} {
 global botnick greetchan greetmsg
  if {([isbotnick $nick]) && ([string equal -nocase $chan $greetchan])} {
   putquick "PRIVMSG $chan :$greetmsg"
   return 0
   }
}

Good luck! :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
d
difoo
Voice
Posts: 33
Joined: Sat Jul 03, 2004 9:56 am

Post by difoo »

Cool :-)

Thanks awyeah!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Don't mention it :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked