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.

Tcl Eggdrop execute msg command about certain time

Old posts that have not been replied to for several years.
Locked
M
Maikel

Tcl Eggdrop execute msg command about certain time

Post by Maikel »

Hi, people
I'm sure it's very easy to create a tcl script wich has a :
Timer that auto execute a command like say to a user hello im an eggdrop bot everey 10 minutes....
I need it for my game servers bots because otherwhise all the players need to say !status 80.61.128.4:27015 for my cs server adres and get information about the players...
Could give me a tcl script that can excecute mulitple commands @ a time after for example 2 minutes?

I would really appriciate it if someone could make one for me also the tcl archive had some timers but i can't adjust them because i have to many expierendce..
Plz post a source code for the tcl

thx

Maikel
User avatar
Dereckson
Voice
Posts: 20
Joined: Thu May 30, 2002 8:00 pm
Location: Belgium
Contact:

Post by Dereckson »

Hi Maikel :)

Code: Select all

proc timer_notification {} {
        puthelp "PRIVMSG #yourchannel :bla bla bla"
        timer 6 timer_notification
}
First, we create a procedure called timer_notification.

This procedure make 2 things :

1. it drops a line bla bla bla on on #yourchannel
2. it asks eggdrop to execute in 6 minutes the procedure timer_notification (so, procedure planify a new execution of itself in 6 minutes).

If you wish work with seconds instead minutes, you can replace the command timer by utimer.
Sébastien Santoro
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Have you used the Search function of this forum? If I'm not wrong, someone asked before for an solution of almost the same thing as you asked..
Once the game is over, the king and the pawn go back in the same box.
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

one weak ago, same question
Locked