Code: Select all
set myhost "PUT YOUR HOSTNAME HERE"
bind join * onjoin:greet
proc onjoin:greet {nick host hand chan} {
global myhost
if {$host == $myhost} {
set greet "$nick I love you!"
} else {
set greet "Hello $nick! How are you?"
}
puthelp "PRIVMSG $chan :$greet"
}
Nimos wrote:Code: Select all
set myhost "PUT YOUR HOSTNAME HERE" bind join * onjoin:greet proc onjoin:greet {nick host hand chan} { global myhost if {$host == $myhost} { set greet "$nick I love you!" } else { set greet "Hello $nick! How are you?" } puthelp "PRIVMSG $chan :$greet" }
### info [channel] [info-line]
Sets your info line. This line is shown via the /msg commands 'who' and
'whois'. If you have set greet on, it is also shown when you joins the
channel. If the info line begins with an '@', then it is "locked", and you
may no longer change it.
See also: chinfo
("0" is my setting. I don't remember what is the default.)# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 0
Code: Select all
.chanset #channel +greet
Code: Select all
# установка путей (не трогать)
set mod-path "modules/"
set help-path "help/"
set text-path "text/"
set temp-path "tmp/"
# загрузка модулей (не трогать)
loadmodule dns
loadmodule channels
loadmodule server
loadmodule ctcp
loadmodule irc
loadmodule notes
loadmodule console
loadmodule blowfish
loadmodule transfer
# установка ников бота - отредактировать
set nick "bot"
set altnick "bota"
set realname "eggdrop Service"
set username "bot"
# Здесь все нормально
set net-type 0
listen 7510 all
set userfile "bot.user"
set chanfile "bot.chan"
set notefile "bot.notes"
logfile msbxco * "logs/eggdrop.log"
set console "mkcobxs"
# тут все тоже хорошо
set max-notes 50
set note-life 60
set allow-fwd 0
set notify-users 1
set console-autosave 1
# здесь надо прописать Ваш сервер
set servers {
Diemen.NL.EU.Undernet.Org
eu.undernet.org
bucharest.ro.eu.undernet.org
}
# ваше Ident
# можно не заполнять строку
set owner "Owner"
# тут можно вообще даже не смотреть ни на что
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
}
# необходимо для управления ботом. не менять ничего.
set protect-telnet 0
set open-telnets 0
# оптимальные настроки для флуд защиты
set global-flood-chan 9:10
set global-flood-deop 2:60
set global-flood-kick 2:60
set global-flood-join 5:60
set global-flood-ctcp 3:60
set global-flood-nick 5: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 3
set global-ban-time 120
set global-exempt-time 60
set global-invite-time 60
set global-flood-join 0:0
set ident-timeout 1
# набор стандартный скриптов egg`а
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/compat.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
# если у бота есть зарегистрированный на NickServ`е ник,
# То его надо прописать сюда вместе с паролем
# если ник не зарегистрирован - заполнять поля не надо,
# оставить в таком виде.
set bot_regged_nick "login"
set bot_regged_pass "pass"
# если предидущие 2 поля заданы, то строку можно раскоментировать
# это заставит работать скрипт идентификации ника на nickserv`е
# предварительно этот скрипт надо бросить в папку c scripts
# source scripts/nickctl.tcl
Code: Select all
# Set this setting to 1 if you want to allow users to store an info line.
set use-info 1
# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 180
# If you are so lame you want the bot to display peoples info lines, even
# when you are too lazy to add their chanrecs to a channel, set this to 1.
# *NOTE* This means *every* user with an info line will have their info
# line displayed on EVERY channel they join (provided they have been gone
# longer than wait-info).
set no-chanrec-info 0
I have to copy this to my eggdrop.conf ?TCL_no_TK wrote:Check the following settingsCode: Select all
# Set this setting to 1 if you want to allow users to store an info line. set use-info 1 # Set here the time (in seconds) that someone must have been off-channel # before re-displaying their info line. set wait-info 180 # If you are so lame you want the bot to display peoples info lines, even # when you are too lazy to add their chanrecs to a channel, set this to 1. # *NOTE* This means *every* user with an info line will have their info # line displayed on EVERY channel they join (provided they have been gone # longer than wait-info). set no-chanrec-info 0
Code: Select all
.help info
# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
....
#
# greet
# Say a user's info line when they join the channel?
#