#!/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 {
  irc.math.ufl.edu
  poe.acc.virginia.edu
  irc.eskimo.com
  irc.funet.fi
}
set servlimit 30           ;# 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 the joint he 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 periodic-save 0  ;# save the user file only once an hour
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 hostnames
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      ;# don't expire all channel bans after 10 minutes

# set logfiles up:  (default maximum is 5)
logfile "mkco" "eggdrop.log"      ;# msgs, kicks/bans/modes, commands, misc
logfile "c" "eggdrop.cmds"        ;# commands only
set console "mkco"                ;# default console mode for masters = logfile

# 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

# telnet connections / bot linking
set telnet 2222

# 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?
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 'info' for amusement purposes...
proc cmd_info {nick uhost handle args} {
  putserv "privmsg $nick :I'm the lamest bot of all!"
  return 1
}
bind msg - info cmd_info      ;# msg command, no flags needed, called 'info'

# load that toolkit of useful scripts
source scripts
source botkick
