#!/path/to/eggdrop
#
# sample bot configuration file for eggdrop 0.9d and above
# This creates the bot "LamestBot", which sits on channel #lamest.
# (Originally I intended this to create the bot "LameBot", but then
# I found out there's already a bot with that name!  AND there's also
# a LamerBot! *laugh*)
#
# THIS CONFIGFILE WILL ONLY WORK IF YOU LINKED WITH TCL
#   If you didn't link with Tcl, you need to use "egg.config.dist" instead.
#

# set up the /whois information
set nick "Lamestbot"
set username "lamest"       ;# does not work if you have ident running!
set realname "/msg LamestBot hello"

# set up channel information
set home-channel "#lamest"
set chanmode "+nt-likm"    ;# what channel modes will be enforced?

# more servers is better, duplicates are allowed
set servers {
  Tampa.FL.US.undernet.org:6667
  Washington.DC.US.undernet.org:6667
  Montreal.QU.CA.undernet.org:6667
  Rochester.MI.US.undernet.org:6667
  Albany.NY.US.undernet.org:6667
  Boston.MA.US.undernet.org:6667
  Norman.OK.US.undernet.org:6667
  Manhattan.KS.US.undernet.org:6667
  Milwaukee.WI.US.undernet.org:6667
  StGeorge.UT.US.undernet.org:6667
  Davis.CA.US.undernet.org:6667
  Austin.TX.US.undernet.org:6667
  SanJose.CA.US.undernet.org:6667
}
set servlimit 10           ;# will change servers if split falls below this

# a bunch of boolean variables and what they mean
set log-time 1       ;# timestamp entries in the log file
set clear-bans 0     ;# clear all channel bans when the bot joins (ie, force
                      #   the channel bans to match the bot's internal list)
set op-on-join 0     ;# +o oplisters when they join the channel (BAD IDEA)
set revenge 1        ;# bot remembers and punishes people who harm it
set greet 1          ;# users who have an info-line set will get greeted when
                      #   they join the channel
set learn-users 1    ;# let users introduce themselves via a "hello" msg
set require-x 0      ;# users who are op'd will still need the x flag to enter
                      #   the file area
set require-p 0      ;# users who are op'd will still need the p flag to join
                      #   the party line
set enforce-bans 1   ;# kick people who match channel bans
set use-info 1       ;# allow users to store & display info about themselves
set share-users 1    ;# share user data with other tandem bots on the channel
                      #   who want to share with you
set passive 1        ;# allow other bots' userfiles to take precedence when
                      #   sharing user data with them
set strict-host 0    ;# leave the leading '~' on usernames in user@host
set isolate 0        ;# don't merge party lines with tandem bots
set keep-all-logs 0  ;# keep logfiles older than 48 hours
set chan-updates 1   ;# show channel status line every five minutes
set perm-bans 1      ;# make sure internal bans are always active on channel
set upload-to-cd 0   ;# send uploads to user's current dir instead of incoming
set bitch 0          ;# only let +o users ever have channel op
set never-give-up 0  ;# even if all the servers are down, cycle forever and
                      #   keep trying to connect
set protect-ops 1    ;# re-op a +o user if they get deopped


# set logfiles up:  (default maximum is 5)
# (m)msgs (k)kicks/bans/modes (j)joins/parts (p)publics (b)bot-links/sharing
#   masters only: (c)commands (o)other-misc-info
logfile "mkco" "eggdrop.log"      ;# msgs, kicks/bans/modes, commands, other
logfile "c" "eggdrop.cmds"        ;# commands only
set console "mkcob"               ;# default console mode for masters

# define this if you want a file transfer section
set dcc-path "/home/mydir/dcc"
# define this if you will allow uploads
set dcc-incoming "/home/mydir/dcc/incoming"
# (future usage: will set limit on disk usage by file area, in k)
set dcc-quota 2000
# set maximum number of simultaneous downloads to allow for each user
set dcc-limit 3

# telnet connections / bot linking
set telnet 3333

# technical stuff: what files to use for various things
set userfile "LamestBot.user"
set notefile "LamestBot.notes"
set motd "LamestBot.motd"
set helpdir "help/"
set tempdir "/tmp"

# things to send the server when various events occur
set gain-ops "PRIVMSG #lamest :somebody op me please... cos i'm LAME!"
set init-server "MODE LamestBot +i"

# who's running this damn bot?
set admin "Lamer <email: lamer@lame.connected.com>"

# use a separate helpbot? define this
# (not really recommended unless your bot sends a lot of info out to irc)
#set helpbot "LameHelp"

# flood protection, etc.
set flood-msg 5
set flood-chan 10
set flood-join 5
set ban-time 60
set ignore-time 10

# send a note to anybody when I learn new users?
set notify-newusers "HQ"

# what flags should new users get as a default?
set default-flags "px"

# define a new command 'yankee' for amusement purposes...
proc cmd_yankee {nick uhost handle args} {
  putserv "privmsg $nick :I'm not a goddamn yankee!!"
  return 1
}
bind msg - yankee cmd_yankee   ;# msg command, no flags needed, called 'yankee'

# load that toolkit of useful scripts
source samples
source botkick
