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.

way to delay onjoin message by bot

Old posts that have not been replied to for several years.
Locked
User avatar
DrTongue
Op
Posts: 115
Joined: Sat Jan 26, 2002 8:00 pm
Location: Orlando, Florida
Contact:

way to delay onjoin message by bot

Post by DrTongue »

Hello....I use an onjoin message .tcl by 'banned' What I am looking to do is delay the message briefly (10 seconds or so) when a person enters the channel instead of it being instantanious when they join. Is there a way that this can be done? Even by simply adding something to the .tcl?

Thank you
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

Code: Select all

bind join - * join:chan

set joinmsg "My msg i wana show"

proc join:chan {nick uhost hand chan} {
  global joinmsg
  utimer 10 list putserv "PRIVMSG $chan :$joinmsg"
}
not tested it but that should do
XplaiN but think of me as stupid
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

utimer 10 list putserv "PRIVMSG $chan :$joinmsg"
this should be

Code: Select all

utimer 10 [list putserv "PRIVMSG $chan :$joinmsg"]
User avatar
DrTongue
Op
Posts: 115
Joined: Sat Jan 26, 2002 8:00 pm
Location: Orlando, Florida
Contact:

Post by DrTongue »

Thank you both for responding. I am REALLY trying to learn all this myself. I had tried different variables of what you have suggested but just kept getting little things wrong. Usually ending up in "wrong args" error messages from the bot :) Thanks again.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

tnx Sir_Fz for correction seems i forgot to add em ..
XplaiN but think of me as stupid
Locked