| View previous topic :: View next topic |
| Author |
Message |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Sun Jun 15, 2008 1:06 pm Post subject: Greet script Request |
|
|
Hi All
Can someone help me with a greet script
The scrpit must greet specific hosts / IP's on a specific channel
Exemple: if IP *!*@1234.users.undernet.org
the bot will say : Hello $nick how are you
if IP *!*@gfddf.users.undernet.org
the bot will say $nick I love you |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Mon Jun 16, 2008 4:46 am Post subject: |
|
|
Check the TCL Archive.
Plenty of greet scripts out there. |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Mon Jun 16, 2008 6:19 am Post subject: |
|
|
in the tcl arhive are only simple greet scripts
i need something else
it's not what i want
Last edited by Danik on Mon Jun 16, 2008 7:14 am; edited 1 time in total |
|
| Back to top |
|
 |
eXtremer Op
Joined: 07 May 2008 Posts: 138
|
Posted: Mon Jun 16, 2008 7:11 am Post subject: |
|
|
| metroid wrote: | Check the TCL Archive.
Plenty of greet scripts out there. |
noop
| Danik wrote: | in the tcl arhive a only simple greet scripts
it's not what i want |
true, many greet scripts but none good ! |
|
| Back to top |
|
 |
ztian299 Halfop
Joined: 19 Apr 2008 Posts: 59 Location: *.no
|
Posted: Mon Jun 16, 2008 7:35 am Post subject: |
|
|
| then write your own, or add your needs! |
|
| Back to top |
|
 |
Nimos Halfop
Joined: 20 Apr 2008 Posts: 80
|
Posted: Mon Jun 16, 2008 8:15 am Post subject: |
|
|
| Code: |
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"
}
|
|
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Mon Jun 16, 2008 8:58 am Post subject: |
|
|
| Nimos wrote: | | Code: |
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 Thx very much ... it's almost what i want
but i need to set a few hosts more , not only one....and each host must have its own greet mesage ..... (each host (user) must have his personal greet mesage) |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Mon Jun 16, 2008 12:49 pm Post subject: |
|
|
| something is wrong ... I put the host *!*@Danik.users.undernet.org ... but the script doesnt react when the user joins the channel |
|
| Back to top |
|
 |
DarkRaptor Voice

Joined: 15 Apr 2006 Posts: 36 Location: Trois-Rivières, Qc
|
Posted: Mon Jun 16, 2008 1:06 pm Post subject: |
|
|
you could use this:
| Quote: |
### 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
|
_________________ DarkRaptor @ irc.undernet.org |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Wed Jun 18, 2008 2:45 am Post subject: |
|
|
it doesn't show any errors .. but
it doesn't work |
|
| Back to top |
|
 |
DarkRaptor Voice

Joined: 15 Apr 2006 Posts: 36 Location: Trois-Rivières, Qc
|
Posted: Wed Jun 18, 2008 3:11 am Post subject: |
|
|
Can you verify those settings
eggdrop config | Quote: |
# Set here the time (in seconds) that someone must have been off-channel
# before re-displaying their info line.
set wait-info 0
|
("0" is my setting. I don't remember what is the default.)
and
| Code: |
.chanset #channel +greet
|
_________________ DarkRaptor @ irc.undernet.org |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Wed Jun 18, 2008 3:26 am Post subject: |
|
|
| Code: | # установка путей (не трогать)
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
|
my eggdrop conf is like this
mode + greet is on but ... no results[/code] |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Wed Jun 18, 2008 5:04 am Post subject: |
|
|
Check the following settings | Code: | # 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 |
_________________ TCL the misunderstood |
|
| Back to top |
|
 |
Danik Halfop
Joined: 15 Jun 2008 Posts: 49 Location: Moldova
|
Posted: Fri Jun 27, 2008 4:19 pm Post subject: |
|
|
| TCL_no_TK wrote: | Check the following settings | Code: | # 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 ?
and how do I add msg's to greet |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Jun 27, 2008 9:22 pm Post subject: |
|
|
Try reading?
From YOUR bot configuration file (eggdrop.conf):
| Quote: | # 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?
# |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|