####################### Por David #########################
### solo reemplaza la palabra o nick Union por el nick de tu bot
## este ejemplo .conf tiene lo mejor para su seguridad editado por David & sedition en UnionChat canal #tcls
## en UnionChat canal #eggdrop mi email david@unionchat.org dudas sugerencias seran bienvenidas

## mi server personal /server irc.unionchat.org # Buscame nick David Canal #UnionChat #

### Ajustes Principales ###
set username "i"
set admin "David <email: david@unionchat.org>"
set network "UnionChat"
set timezone "GMT"
set offset "-4"
#set my-hostname "ca2.shell.xshellz.com" set deshabilitado >> solo para la version 1.6.21
#set my-ip "198.245.62.27" set deshabilitado >> solo para la version 1.6.21

#### MÓDULO DE SERVIDOR ####
set net-type 3
set nick-len 30
set nick "Union"
set altnick "Union"
set password "clavedelbot"
set realname "Inteligencia Artificial v3.17.0"

#### ajustes conexion ssl ####

# If you're using virtual hosting (your machine has more than 1 IP), you
# may want to specify the particular IP to bind to. You can specify either
# by hostname or by IP. Note that this is not used for listening. Use the
# 'listen-addr' variable to specify the listening address.
# para activar una vhost comun o normal que soporte solo ipv4
# nota para activar esta opcion desabilita #set my-hostname "turbous.xshellz.com"
 #set vhost4 "inteligencia.artificial.chiquitina.org"
 set vhost4 "161.132.68.88"

# IPv6 vhost to bind to for outgoing IPv6 connections. You can set it
# to any valid IPv6 address or hostname, resolving to an IPv6 address.
# Note that this is not used for listening. Use the 'listen-addr'
# variable to specify the listening address.
# set vhost6 "my.ipv6.host.com"
# OJO habilite esta opcion cuando use una vhost o tunel ipv6
# PERO se anula o desabilita #set my-hostname "turbous.xshellz.com"
#set vhost6 "2001:470:5:556:6e3e:456e:5e49:3e53"

# IPv4/IPv6 address (or hostname) to bind for listening. If you don't set
# this variable, eggdrop will listen on all available IPv4 or IPv6 interfaces,
# depending on the 'prefer-ipv6' variable (see below).
# Note that eggdrop will accept IPv4 connections with IPv6 sockets too.
# aqui en esta seccion se enlazan todas las vhost ya sean ipv4 o ipv6
 set listen-addr "161.132.68.88"
 #set listen-addr "2001:db8:618:5c0:263::"
 #set listen-addr "virtual.host.com"

# llave privada ssl
  set ssl-privatekey "eggdrop.key"
# ruta certificacion ssl
  set ssl-certificate "eggdrop.crt"
  set ssl-capath "/etc/ssl/"
### Ajustes de Archivos ###
set max-logs 5
set max-logsize 100
set quick-logs 0
logfile mco * "logs/UnionPriv.log"
logfile jpk #VicioCHAT "logs/Union.log"
set log-time 1
set keep-all-logs 0
set logfile-suffix ".%d%b%Y"
set switch-logfiles-at 300
set quiet-save 0

### Ajustes de Consola ###
set console "mkcobxs"

### Archivo & Ajustes de Directorio ###
set userfile "Union.user"
set pidfile "pid.Union"
set sort-users 0
set help-path "help/"
set text-path "text/"
set temp-path "/tmp"
set motd "text/motd"
set telnet-banner "text/banner"
set userfile-perm 0600
set chanfile "Union.chan"
set exempt-time 5
set invite-time 5
set force-expire 0
set share-greet 0
set use-info 1

### Ajustes BotNet/Dcc/Telnet ###
set botnet-nick "Union"
listen 3335 all
set remote-boots 2
set share-unlinks 1
set protect-telnet 0
set dcc-sanitycheck 0
set ident-timeout 5
set require-p 1
set open-telnets 0
set stealth-telnets 0
set use-telnet-banner 0
set connect-timeout 9
set dcc-flood-thr 3
set telnet-flood 4:95
set paranoid-telnet-flood 1
set resolve-timeout 7

### Ajustes Avanzados ###
set ignore-time 2
set hourly-updates 00
set owner "David"
set notify-newusers "$owner"
set whois-fields "url birthday"
set die-on-sighup 0
set die-on-sigterm 1
bind dcc n tcl *dcc:tcl
bind dcc n set *dcc:set
set must-be-owner 2
unbind dcc n simul *dcc:simul
set max-socks 100
set max-dcc 50
set dcc-portrange 1024:65535
set enable-simul 1
set allow-dk-cmds 1
set dupwait-timeout 5
set mod-path "modules/"

### Ajustes de Módulos ###
loadmodule dns
set dns-servers "8.8.8.8"
checkmodule blowfish
loadmodule uptime
loadmodule notes
loadmodule channels
loadmodule share
loadmodule transfer
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule console
loadmodule compress

### Ajustes de Canal ###
set global-flood-chan 7:30
set global-flood-deop 4:50
set global-flood-kick 3:50
set global-flood-join 6:70
set global-flood-ctcp 3:85
set global-flood-nick 4:10
set global-flood-size 1024:60
set global-aop-delay 5:30
set global-idle-kick 0
set global-chanmode "nt"
set global-stopnethack-mode 0
set global-revenge-mode 0
set global-ban-time 120
set global-invite-time 60

set global-chanset {
-autoop -autovoice
-bitch +cycle
+dontkickops +dynamicbans
+dynamicexempts +dynamicinvites
-enforcebans +greet
-inactive -nodesynch
-protectfriends -protectops
-revenge -revengebot
-secret -seen
+shared +statuslog
+userbans +userexempts
+userinvites -protecthalfops
-autohalfop -static
}

### Edicion especial para Canales
channel add #UnionChat {
chanmode "+nt"
stopnethack-mode 0
revenge-mode 0
ban-time 60
flood-chan 0:0
flood-deop 0:0
flood-kick 0:0
flood-join 0:0
flood-ctcp 0:0
flood-nick 0:0
}

bind evnt - "init-server" evnt:init_server
proc evnt:init_server {type} {
global botnick  password
 if {![isbotnick $::nick]} {
putquick "PRIVMSG NiCK RECOVER $::nick $password" -next
putquick "MODE $botnick +irB-wsT"
putquick "NICK $::nick"
}
}

bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +irB-wsT"
}

bind notc - "*This nick* is*" pConfigNotc
proc pConfigNotc {nick uhost hand text dest} {    
global botnick
putquick "PRIVMSG NiCK IDENTIFY $::nick $::password" -next  
utimer 3 [list putlog "\002Me Identifique\002 correctamente. Clave aceptada por \002$::nick\002."]
}

bind FLUD - * pConfigFlud
proc pConfigFlud {nick uhost hand type chan} {
scan $uhost {%[^@]@%s} user host
if {[string match -nocase "*unionchat.org" $host]} {return 1}
}

## Servidores IRc ##
set default-port 6667
set servers {
irc.unionchat.org:6667:melendez
}

set msg-rate 2
set keep-nick 1
set use-ison 1
set strict-host 0
set quiet-reject 1
set share-compressed 1
set lowercase-ctcp 0
set answer-ctcp 3
set flood-msg 4:80
set flood-ctcp 4:80
set never-give-up 1
set strict-servernames 0
set server-cycle-wait 60
set server-timeout 60
set servlimit 0
set check-stoned 1
set use-console-r 0
set debug-output 0
set serverror-quit 1
set max-queue-msg 370
set trigger-on-ignore 0
set double-mode 0
set double-server 0
set double-help 0
set optimize-kicks 1
set stack-limit 0
set ctcp-mode 0
set bounce-bans 1
set bounce-modes 0
set max-bans 20
set max-modes 30
set kick-fun 0
set ban-fun 0
set learn-users 0
set wait-split 600
set wait-info 180
set mode-buf-length 200
unbind msg - ident *msg:ident
unbind msg - addhost *msg:addhost
bind msg - hello *msg:hello
set no-chanrec-info 0
set bounce-exempts 0
set bounce-invites 0
set max-exempts 20
set max-invites 20
set prevent-mixing 1
set max-dloads 3
set dcc-block 0
set copy-to-tmp 1
set xfer-timeout 30
set files-path "filesys/"
set incoming-path "filesys/incoming/"
set upload-to-pwd 0
set filedb-path ""
set max-file-users 20
set max-filesize 1024
#set notefile "Union.notes"
set allow-fwd 0
set notify-users 1
set force-channel 0
set info-party 0
set max-notes 50
set note-life 60
set notify-onjoin 1
set console-autosave 1
loadhelp userinfo.help

### Scripts Tcl  ###
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/dccwhois.tcl
source scripts/userinfo.tcl
#source scripts/autoidentify.tcl
source scripts/superscript.tcl
source scripts/signos.tcl
source scripts/seen.tcl
#source scripts/horoscopo.tcl

set init-server {
putserv "login Union Melendez1@"
putserv "mode Union +x"
}
