This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Greet script Request

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Greet script Request

Post by Danik »

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
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Check the TCL Archive.
Plenty of greet scripts out there.
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

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.
e
eXtremer
Op
Posts: 138
Joined: Wed May 07, 2008 5:33 am

Post by eXtremer »

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 !
z
ztian299
Halfop
Posts: 59
Joined: Sat Apr 19, 2008 4:57 pm
Location: *.no

Post by ztian299 »

then write your own, or add your needs!
N
Nimos
Halfop
Posts: 80
Joined: Sun Apr 20, 2008 9:58 am

Post by Nimos »

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"
}
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

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"
}

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)
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

something is wrong ... I put the host *!*@Danik.users.undernet.org ... but the script doesnt react when the user joins the channel
User avatar
DarkRaptor
Voice
Posts: 36
Joined: Sat Apr 15, 2006 2:39 am
Location: Trois-Rivières, Qc

Post by DarkRaptor »

you could use this:
### 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
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

it doesn't show any errors .. but
it doesn't work
User avatar
DarkRaptor
Voice
Posts: 36
Joined: Sat Apr 15, 2006 2:39 am
Location: Trois-Rivières, Qc

Post by DarkRaptor »

Can you verify those settings

eggdrop config
# 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: Select all

.chanset #channel +greet
DarkRaptor @ irc.undernet.org
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

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
my eggdrop conf is like this


mode + greet is on but ... no results[/code]
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Check the following settings

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
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

TCL_no_TK wrote:Check the following settings

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 ?
and how do I add msg's to greet
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Try reading?

Code: Select all

.help info
From YOUR bot configuration file (eggdrop.conf):
# 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
Post Reply