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.

Want Eggdrop to Learn New Users

Old posts that have not been replied to for several years.
Locked
s
smash_xtegg

Post by smash_xtegg »

I need to know how to make my eggdrop do these taskes when someone joins
Learn them (add them to the user file)
set a flag
ask them for a password
on every user that joins the channel can it be done?
D
D3SM0DUS

Post by D3SM0DUS »

a solution could be the following:set learn new users and set the right default flags for new users in the eggdrop conf file,
use an advert .tcl to send a on-join message like "/msg botnik hello to register. then /msg botnick pass password".
et voila!
s
smash_xtegg

Post by smash_xtegg »

that would kinda work
but there has gotta be a way to set the bot to learn them automaticly

e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Post by egghead »

Smash_egg, my suggestion is not to automatically have users added to your bot's database.
Any such user would thus get automatically some sort of access to your bot (/msg bot help etc...).
Depending on the flags you hand out by default to those users, some punishments in scripts may stop working.
Your bot may get vulnerable to sorts of flooding/abuse etc...
On 2002-02-10 06:17, smash_xtegg wrote:
that would kinda work but there has gotta be a way to set the bot to learn them automaticly
If eggdrop's *msg:hello is ok with you, a straight forward solution is to bind JOIN to eggdrop default *msg:hello command:

Code: Select all


# "Set learn-users 1" in main config file

bind join - * autolearnusers

proc autolearnusers { nick uhost hand chan } {
   # skip if known nick ...
   if {[string compare $hand "*"] != 0} { return }
   # ... else use eggdrop's default "*msg:hello" to learn a new user
   *msg:hello $nick $uhost $hand hello
}

It may sound a bit paranoid but while running this code, it may be better to unbind all unrelevant MSG bindings, disallow +o for your bot, have sufficient flood protection etc...
s
smash_xtegg

Post by smash_xtegg »

that works thankyou and security is not an issue the defualt flag is a custom one so a message pertaining to a certin channel is sent to them just once
Locked