×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Eggdrop: Difference between revisions

    Content added Content deleted
    imported>mutante
    mNo edit summary
    imported>MildBill
     
    (28 intermediate revisions by 6 users not shown)
    Line 1: Line 1:
    *Eggdrop is the world's most popular [[OpenSource|open source]] [[IRC]] [[Bot]].
    *Eggdrop is the world's most popular [[OpenSource|open source]] [[IRC]] [[Bot]].


    "..designed for flexibility and ease of use, and is freely distributable under the [[GNU]] [[GeneralPublicLicense|General Public License]] (GPL).
    Eggdrop 1.6.16 Release Candidate 1 Released! ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/RC/'

    "..designed for flexibility and ease of use, and is freely distributable under the [[GnU|GNU]] [[GeneralPublicLicense|General Public License]] (GPL).


    Eggdrop was originally developed by [[Robey Pointer]]; however, he no longer works on Eggdrop
    Eggdrop was originally developed by [[Robey Pointer]]; however, he no longer works on Eggdrop
    so please do not contact him for help solving a problem or bug.
    so please do not contact him for help solving a problem or bug.


    Some features of Eggdrop:
    == Some features of Eggdrop ==


    - Designed to run on [[Linux]], [[BSD|*BSD]], [[SunOs]], [[Windows]], [[MacOS]] X, etc ...
    *Designed to run on [[Linux]], [[BSD|*BSD]], [[SunOs]], [[Windows]], [[MacOS]] X, etc ...


    - Extendable with [[TCLScripts|tcl scripts]] and/or C modules
    *Extendable with [[TCLScripts|tcl scripts]] and/or [[C]] modules


    - Support for the big five [[IRC]] [[Network]]s ([[UnderNet]], [[DalNet]], [[EfNet]], [[IrcNet]], and [[QuakeNet]])
    *Support for the big five [[IRC]] [[Network]]s ([[UnderNet]], [[DALnet]], [[EfNet]], [[IrcNet]], and [[QuakeNet]])


    - The ability to form botnets and share [[partyline]s and userfiles between bots
    *The ability to form [[botnet]]s and share [[partyline]]s and userfiles between bots


    Some benefits of Eggdrop:
    == Some benefits of Eggdrop ==


    - The oldest [[BotS|IRC bot]] still in active development (Eggdrop was created in 1993)
    *The oldest [[IRC]] [[Bots|bot]] still in active development (Eggdrop was created in 1993)


    - Established [[EggDrops#IrcChannels|IRC help channels]] and [http://egghelp.org/links.htm web sites] dedicated to Eggdrop
    *Established [[Eggdrop#IRC_support|IRC help channels]] and [http://egghelp.org/links.htm web sites] dedicated to Eggdrop


    - Thousands of premade [[TCLScripts|tcl scripts]] and C modules
    *Thousands of premade [[TCL scripts|tcl scripts]] and C modules


    - Best of all ... It's [[FreeSoftware|FREE]]!
    *Best of all ... It's [[Free Software|FREE]]!


    == How to install an Eggdrop ==
    *http://www.eggheads.org/

    *http://www.egghelp.org/

    *ftp://ftp.eggheads.org/pub/eggdrop/

    *To get support via [[IRC]]: join #bots , #egghelp , #eggtcl on EfNet

    ----------


    How to install an Eggdrop


    The Short Short & Updated Version
    The Short Short & Updated Version
    Line 46: Line 33:
    * [[ssh]] to the [[shell]].
    * [[ssh]] to the [[shell]].


    * [[wget]] or [[ftp]] the source from [[ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/RC/eggdrop1.6.16rc1.tar.gz eggdrop1.6.16rc1]]
    * [[wget]] or [[ftp]] the source from [[ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/eggdrop1.6.17.tar.gz]]


    * [[UnPack]] it ( tar zxvf eggdrop1.6.16rc1.tar.gz )
    * [[UnPack]] it ( tar zxvf eggdrop1.6.17.tar.gz )


    * Switch to the directory ( cd eggdrop1.6.16rc1 )
    * Switch to the directory ( cd eggdrop1.6.17 )


    * Start the config script ( ./configure )
    * Start the config script ( ./configure )
    Line 58: Line 45:
    * Compile the bot ( make )
    * Compile the bot ( make )


    * Install it to a directory of your choice ( make install DEST=/home/name/botdir ).
    * Create botdir ( mkdir /home/name/botdir )

    * Install it to a directory of your choice ( make install DEST=/home/name/botdir or try make eggdrop install DEST=/home/name/botdir ).


    * Switch to the botdir and edit the sample config file eggdrop.conf, then rename it to something appropriate (e.g. botnick.conf).
    * Switch to the botdir and edit the sample config file eggdrop.conf, then rename it to something appropriate (e.g. botnick.conf).
    Line 64: Line 53:
    * Start the bot up in user-creation mode (only the first time) ( ./eggdrop -m <config file> ).
    * Start the bot up in user-creation mode (only the first time) ( ./eggdrop -m <config file> ).


    * [TelNet Telnet] to the port you chose in the config file and type "NEW" as user. Setup your real user name and password.
    * [[Telnet]] to the port you chose in the config file and type "NEW" as user. Setup your real user name and password.


    * Now you are owner of the bot , and from now on you start it without the -m option , just (./eggdrop <config file>).
    * Now you are owner of the bot , and from now on you start it without the -m option , just (./eggdrop <config file>).


    * If you dont see it appearing on IRC right away, TelNet to the PartyLine and try .jump irc.someserver.com
    * If you dont see it appearing on [[IRC]] right away, [[Telnet]] to the [[Partyline]] and try .jump irc.someserver.com


    * You should have setup your channels in the config, but if you activated dynamic channels you can now use .+chan #channel on the partyline to make your bot join additional channels.
    * You should have setup your channels in the config, but if you activated dynamic channels you can now use .+chan #channel on the partyline to make your bot join additional channels.


    * Now learn the [PartylineCommands partyline commands] to setup users and give them the flags you want. (.+user , .adduser , .chattr) and generally .help . All [PartylineCommands partyline commands] beging with a "." Enjoy.
    * Now learn the [[partyline commands]] to setup users and give them the flags you want. (.+user , .adduser , .chattr) and generally .help . All [[partyline commands]] beging with a "." Enjoy.


    NOTE: you might want to "export LD_LIBRARY_PATH=/usr/local/lib" or where ever your lib is...


    Note: Eggdrop requires [[http://www.tcl.tk/software/tcltk/8.3.html Tcl]] to compile. If the server does not have [[http://www.tcl.tk/software/tcltk/8.3.html Tcl]] installed, you will need to download and [[http://www.baschny.de/eggdrop/faq/faq-b.html install]] it.
    '''Note:''' Eggdrop requires [[tcl]] to compile. If the server does not have [[tcl]] installed, you will need to download and [[http://www.baschny.de/eggdrop/faq/faq-b.html install]] it.



    ----
    '''Hint:''' You might want to set your $LD_LIBRARY_PATH enviromental varible i.e.
    <code>"export LD_LIBRARY_PATH; LD_LIBRARY_PATH=/usr/local/lib"</code> or where ever your libary is. If you get a error like this...

    <code>./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory</code>


    ===Settinng Up botchk===
    botchk is a nice little cron script that will start your bot for you if its not running.
    e.g if the bot die's or the is box restarted.
    be carefull though, as it will just keep starting up the bot no matter why it dies, make shore you box admin alows the use of botchk.

    in the eggdrop/scripts dir run this command

    <code>./autobotchk <config> -dir /home/botdir -noemail </code>

    where <code><config></code> is the name of your bots config file and /home/botdir is the dir of you bot
    .

    == channel settings ==

    A complete list of all available channel settings:

    === enforcebans ===
    When a ban is set, kick people who are on the channel and match the ban?

    === dynamicbans ===
    Only activate bans on the channel when necessary? This keeps the channel's ban list from getting excessively long. The bot still remembers every ban, but it only activates a ban on the channel when it sees someone join who matches that ban.

    === userbans ===
    Allow bans to be made by users directly? If turned off, the bot will require all bans to be made through the bot's console.

    === dynamicexempts ===
    Only activate exempts on the channel when necessary? This keeps the channel's exempt list from getting excessively long. The bot still remembers every exempt, but it only activates a exempt on the channel when it sees a ban set that matches the exempt. The exempt remains active on the channel for as long as the ban is still active.

    === userexempts ===
    Allow exempts to be made by users directly? If turned off, the bot will require all exempts to be made through the bot's console.

    === dynamicinvites ===
    Only activate invites on the channel when necessary? This keeps the channel's invite list from getting excessively long. The bot still remembers every invite, but the invites are only activated when the channel is set to invite only and a user joins after requesting an invite. Once set, the invite remains until the channel goes to -i.

    === userinvites ===
    Allow invites to be made by users directly? If turned off, the bot will require all invites to be made through the bot's console.

    === autoop ===
    Op users with the +o flag as soon as they join the channel? This is highly insecure and not at all recommended.

    === autohalfop ===
    Halfop users with the +l flag as soon as they join the channel?
    This is also insecure and not recommended.

    === bitch ===
    Only let users with +o| flag be opped on the channel?

    === greet ===
    Say a user's info line when they join the channel?

    === protectops ===
    Re-op a user with the +o flag if they get deopped?

    === protecthalfops ===
    Re-halfop a user with the +l flag if they get dehalfopped?

    === protectfriends ===
    Re-op a user with the +f flag if they get deopped?

    === statuslog ===
    Log the channel status line every 5 minutes? This shows the bot's status on the channel (op, voice, etc.), the channel's modes, and the number of +m/+o/+v/+n/+b/+e/+I users on the channel. A sample
    status line follows:

    [01:40] @#lamest (+istn) : [m/1 o/1 v/4 n/7 b/1 e/5 I/7]

    === revenge ===
    Remember people who [[deop]]/[[kick]]/[[ban]] the bot, valid [[op]]s, or friends and punish them? Users with the +f flag are exempt from revenge.

    === revengebot ===
    This is similar to to the 'revenge' option, but it only triggers if a bot gets deopped, kicked or banned.

    === autovoice ===
    Voice users with the +v flag when they join the channel?

    === secret ===
    Prevent this channel from being listed on the botnet?

    === shared ===
    Share channel-related user info for this channel?

    === cycle ===
    Cycle the channel when it has no ops?

    === dontkickops ===
    Do you want the bot not to be able to kick users who have the +o flag, letting them kick-flood for instance to protect the channel against clone attacks.

    === inactive ===
    This prevents the bot from joining the channel (or makes it leave the channel if it is already there). It can be useful to make the bot leave a channel without losing its settings, channel-specific user flags, channel bans, and without affecting sharing.

    === seen ===
    Respond to [[seen]] requests in the channel? The seen module must be loaded for this to work.

    === nodesynch ===
    Allow non-ops to perform channel modes? This can stop the bot from fighting with services such as [[chanserv]], or from kicking [[IRCop]]s when setting channel modes without having ops.

    == User Flags ==

    n (owner) - user has absolute control. Only give this flag to people you trust completely.

    m (master) - user has access to almost every feature of the bot.

    t (botnet-master) - user has access to all features dealing with the botnet.

    a (auto-op) - user is opped automatically upon joining a channel.

    o (op) - user has op access to all of the bot's channels.

    y (auto-halfop) - user is halfopped automatically upon joining a channel.

    l (halfop) - user has halfop access to all of the bot's channels.

    g (auto-voice) - user is voiced automatically upon joining a channel.

    v (voice) - user gets +v automatically on +autovoice channels.

    f (friend) - user is not punished for flooding, etc.

    p (party) - user has access to the partyline.

    q (quiet) - user does not get voice on +autovoice channels.

    r (dehalfop) - user cannot gain halfops on any of the bot's channels.

    d (deop) - user cannot gain ops on any of the bot's channels.

    k (auto-kick) - user is kicked and banned automatically.

    x (xfer) -user has access to the file transfer area of the bot (if it exists) and can send and receive files to/from the bot.

    j (janitor) - user can perform maintenance in the file area of the bot (if it exists) -- like a "master" of the file area. Janitors have complete access to the filesystem.

    c (common) - this marks a user who is connecting from a public site from which any number of people can use IRC. The user will now be recognized by NICKNAME.

    b (bot) - user is a bot.

    w (wasop-test) - user needs wasop test for +stopnethack procedure.

    z (washalfop-test) - user needs washalfop test for +stopnethack procedure.

    e (nethack-exempt) - user is exempted from stopnethack protection.

    u (unshared) - user record is not sent to other bots.

    h (highlight) - use bold text in help/text files.

    == Extensions / Scripts ==


    Eggdrops can be heavily extended using [[TCLScripts|tcl scripts]].
    Eggdrops can be heavily extended using [[TCLScripts|tcl scripts]].
    Line 84: Line 224:
    *[[http://olympus.het.brown.edu/doc/eggdrop/tricks Eggdrop Tricks]]
    *[[http://olympus.het.brown.edu/doc/eggdrop/tricks Eggdrop Tricks]]


    == Question / Answer ==
    Need to know how to make your eggdrop auth to Q on QuakeNet ? Check [[Eggdrop/QuakeAuth]]

    ----
    === QuakeNet Auth ===

    Need to know how to make your eggdrop auth to [[Q]] on [[QuakeNet]]?

    Check [[Eggdrop/QuakeAuth]]


    === Unleaflike Behaviour ===

    Get botnet disconnects because of "unleaflike behavior" ? It happens when you link 1.6.17 eggdrops to older versions. [http://forum.egghelp.org/viewtopic.php?t=8177 Read here why and how].

    Upgrade all bots to 1.6.17, OR :

    <pre>
    chattr all your bots -o and -l
    do a .save
    set private-globals "l" in your config (that's l as in L, not a one)
    give your bots +o for the channel's they need it on
    </pre>

    == Misc / News ==

    [ 23 Aug 2004 ]: [http://www.eggheads.org/redirect.php?url=http://www.eggheads.org/news/2004/08/23/31 Eggdrop 1.6.17 released]


    == Links ==

    * http://www.eggheads.org/

    * http://www.egghelp.org/

    * ftp://ftp.eggheads.org/pub/eggdrop/

    * http://www.egghelp.org/files.htm

    * http://www.baschny.de/eggdrop/faq/faq-b.html


    * [http://www.kungfo0.org/data/funny/tao-eggdrop.html The Tao of Eggdrop]
    *Topic is 'Eggdrop 1.6.16 Release Candidate 1 Released! ftp://ftp.eggheads.org/pub/eggdrop/source/1.6/RC/


    == [[IRC]] support ==
    *http://www.egghelp.org/files.htm


    * To get support via [[IRC]]: join [irc://efnet/egghelp #egghelp] (eggdrop questions), [irc://efnet/eggtcl #eggtcl] (scripting questions), [irc://efnet/bots #bots] (test channel where you can let your bot join) on [[EfNet]].
    *http://www.baschny.de/eggdrop/faq/faq-b.html


    [[Category:Bots]]
    [[Category:Bots]]

    Latest revision as of 22:06, 6 February 2012

    "..designed for flexibility and ease of use, and is freely distributable under the GNU General Public License (GPL).

    Eggdrop was originally developed by Robey Pointer; however, he no longer works on Eggdrop so please do not contact him for help solving a problem or bug.

    Some features of Eggdrop[edit]

    Some benefits of Eggdrop[edit]

    • The oldest IRC bot still in active development (Eggdrop was created in 1993)
    • Best of all ... It's FREE!

    How to install an Eggdrop[edit]

    The Short Short & Updated Version


    • UnPack it ( tar zxvf eggdrop1.6.17.tar.gz )
    • Switch to the directory ( cd eggdrop1.6.17 )
    • Start the config script ( ./configure )
    • Compile the modules ,either all ( make config ) or select some of them ( make iconfig ).
    • Compile the bot ( make )
    • Create botdir ( mkdir /home/name/botdir )
    • Install it to a directory of your choice ( make install DEST=/home/name/botdir or try make eggdrop install DEST=/home/name/botdir ).
    • Switch to the botdir and edit the sample config file eggdrop.conf, then rename it to something appropriate (e.g. botnick.conf).
    • Start the bot up in user-creation mode (only the first time) ( ./eggdrop -m <config file> ).
    • Telnet to the port you chose in the config file and type "NEW" as user. Setup your real user name and password.
    • Now you are owner of the bot , and from now on you start it without the -m option , just (./eggdrop <config file>).
    • If you dont see it appearing on IRC right away, Telnet to the Partyline and try .jump irc.someserver.com
    • You should have setup your channels in the config, but if you activated dynamic channels you can now use .+chan #channel on the partyline to make your bot join additional channels.
    • Now learn the partyline commands to setup users and give them the flags you want. (.+user , .adduser , .chattr) and generally .help . All partyline commands beging with a "." Enjoy.


    Note: Eggdrop requires tcl to compile. If the server does not have tcl installed, you will need to download and [install] it.


    Hint: You might want to set your $LD_LIBRARY_PATH enviromental varible i.e. "export LD_LIBRARY_PATH; LD_LIBRARY_PATH=/usr/local/lib" or where ever your libary is. If you get a error like this...

    ./eggdrop: error while loading shared libraries: libtcl8.4.so: cannot open shared object file: No such file or directory


    Settinng Up botchk[edit]

    botchk is a nice little cron script that will start your bot for you if its not running. e.g if the bot die's or the is box restarted. be carefull though, as it will just keep starting up the bot no matter why it dies, make shore you box admin alows the use of botchk.

    in the eggdrop/scripts dir run this command

    ./autobotchk <config> -dir /home/botdir -noemail

    where <config> is the name of your bots config file and /home/botdir is the dir of you bot .

    channel settings[edit]

    A complete list of all available channel settings:

    enforcebans[edit]

    When a ban is set, kick people who are on the channel and match the ban?

    dynamicbans[edit]

    Only activate bans on the channel when necessary? This keeps the channel's ban list from getting excessively long. The bot still remembers every ban, but it only activates a ban on the channel when it sees someone join who matches that ban.

    userbans[edit]

    Allow bans to be made by users directly? If turned off, the bot will require all bans to be made through the bot's console.

    dynamicexempts[edit]

    Only activate exempts on the channel when necessary? This keeps the channel's exempt list from getting excessively long. The bot still remembers every exempt, but it only activates a exempt on the channel when it sees a ban set that matches the exempt. The exempt remains active on the channel for as long as the ban is still active.

    userexempts[edit]

    Allow exempts to be made by users directly? If turned off, the bot will require all exempts to be made through the bot's console.

    dynamicinvites[edit]

    Only activate invites on the channel when necessary? This keeps the channel's invite list from getting excessively long. The bot still remembers every invite, but the invites are only activated when the channel is set to invite only and a user joins after requesting an invite. Once set, the invite remains until the channel goes to -i.

    userinvites[edit]

    Allow invites to be made by users directly? If turned off, the bot will require all invites to be made through the bot's console.

    autoop[edit]

    Op users with the +o flag as soon as they join the channel? This is highly insecure and not at all recommended.

    autohalfop[edit]

    Halfop users with the +l flag as soon as they join the channel? This is also insecure and not recommended.

    bitch[edit]

    Only let users with +o| flag be opped on the channel?

    greet[edit]

    Say a user's info line when they join the channel?

    protectops[edit]

    Re-op a user with the +o flag if they get deopped?

    protecthalfops[edit]

    Re-halfop a user with the +l flag if they get dehalfopped?

    protectfriends[edit]

    Re-op a user with the +f flag if they get deopped?

    statuslog[edit]

    Log the channel status line every 5 minutes? This shows the bot's status on the channel (op, voice, etc.), the channel's modes, and the number of +m/+o/+v/+n/+b/+e/+I users on the channel. A sample status line follows:

    [01:40] @#lamest (+istn) : [m/1 o/1 v/4 n/7 b/1 e/5 I/7]
    

    revenge[edit]

    Remember people who deop/kick/ban the bot, valid ops, or friends and punish them? Users with the +f flag are exempt from revenge.

    revengebot[edit]

    This is similar to to the 'revenge' option, but it only triggers if a bot gets deopped, kicked or banned.

    autovoice[edit]

    Voice users with the +v flag when they join the channel?

    secret[edit]

    Prevent this channel from being listed on the botnet?

    shared[edit]

    Share channel-related user info for this channel?

    cycle[edit]

    Cycle the channel when it has no ops?

    dontkickops[edit]

    Do you want the bot not to be able to kick users who have the +o flag, letting them kick-flood for instance to protect the channel against clone attacks.

    inactive[edit]

    This prevents the bot from joining the channel (or makes it leave the channel if it is already there). It can be useful to make the bot leave a channel without losing its settings, channel-specific user flags, channel bans, and without affecting sharing.

    seen[edit]

    Respond to seen requests in the channel? The seen module must be loaded for this to work.

    nodesynch[edit]

    Allow non-ops to perform channel modes? This can stop the bot from fighting with services such as chanserv, or from kicking IRCops when setting channel modes without having ops.

    User Flags[edit]

    n (owner) - user has absolute control. Only give this flag to people you trust completely.

    m (master) - user has access to almost every feature of the bot.

    t (botnet-master) - user has access to all features dealing with the botnet.

    a (auto-op) - user is opped automatically upon joining a channel.

    o (op) - user has op access to all of the bot's channels.

    y (auto-halfop) - user is halfopped automatically upon joining a channel.

    l (halfop) - user has halfop access to all of the bot's channels.

    g (auto-voice) - user is voiced automatically upon joining a channel.

    v (voice) - user gets +v automatically on +autovoice channels.

    f (friend) - user is not punished for flooding, etc.

    p (party) - user has access to the partyline.

    q (quiet) - user does not get voice on +autovoice channels.

    r (dehalfop) - user cannot gain halfops on any of the bot's channels.

    d (deop) - user cannot gain ops on any of the bot's channels.

    k (auto-kick) - user is kicked and banned automatically.

    x (xfer) -user has access to the file transfer area of the bot (if it exists) and can send and receive files to/from the bot.

    j (janitor) - user can perform maintenance in the file area of the bot (if it exists) -- like a "master" of the file area. Janitors have complete access to the filesystem.

    c (common) - this marks a user who is connecting from a public site from which any number of people can use IRC. The user will now be recognized by NICKNAME.

    b (bot) - user is a bot.

    w (wasop-test) - user needs wasop test for +stopnethack procedure.

    z (washalfop-test) - user needs washalfop test for +stopnethack procedure.

    e (nethack-exempt) - user is exempted from stopnethack protection.

    u (unshared) - user record is not sent to other bots.

    h (highlight) - use bold text in help/text files.

    Extensions / Scripts[edit]

    Eggdrops can be heavily extended using tcl scripts.

    Question / Answer[edit]

    QuakeNet Auth[edit]

    Need to know how to make your eggdrop auth to Q on QuakeNet?

    Check Eggdrop/QuakeAuth


    Unleaflike Behaviour[edit]

    Get botnet disconnects because of "unleaflike behavior" ? It happens when you link 1.6.17 eggdrops to older versions. Read here why and how.

    Upgrade all bots to 1.6.17, OR :

    chattr all your bots -o and -l
    do a .save
    set private-globals "l" in your config (that's l as in L, not a one)
    give your bots +o for the channel's they need it on 
    

    Misc / News[edit]

    [ 23 Aug 2004 ]: Eggdrop 1.6.17 released


    Links[edit]

    IRC support[edit]

    • To get support via IRC: join #egghelp (eggdrop questions), #eggtcl (scripting questions), #bots (test channel where you can let your bot join) on EfNet.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.