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.
Old posts that have not been replied to for several years.
matt2kjones
Voice
Posts: 24 Joined: Fri Feb 07, 2003 11:16 am
Post
by matt2kjones » Fri Feb 07, 2003 11:19 am
Just a question
But can you have the bot say a random message every hour or so???
if so, how??
if you cant, is there a script u can have the bot load to do this?
Thanx
Darmoth
Master
Posts: 210 Joined: Sun Oct 07, 2001 8:00 pm
Location: old europe
Post
by Darmoth » Fri Feb 07, 2003 11:36 am
The eggdrop itself won't do that but it should be possible to write a script that will perform these tasks.
I haven't ever used such a script or even just searched for one, but if I'm not completely wrong, I have seen scripts like that before.
Have a look in the scripts archive here of try this url:
http://mars.age.psu.edu/ .
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Fri Feb 07, 2003 11:45 am
set rand(chan) "#channel"
set rand(msges) {
"this is a random msg"
"still a random msg"
"another random msg"
}
bind time - "00 * * * *" rand:msges
proc rand:msges {min hour day month year} {
global rand
putserv "PRIVMSG $rand(chan) :[lindex $rand(msges) [rand [llength $rand(msges)]]]"
}
This is only for 1 channel..
Once the game is over, the king and the pawn go back in the same box.
matt2kjones
Voice
Posts: 24 Joined: Fri Feb 07, 2003 11:16 am
Post
by matt2kjones » Fri Feb 07, 2003 12:53 pm
cheers, but where do i put that
do i put it in a seperate file and then have that file loaded in the bots config file???
Thanx
spock
Master
Posts: 319 Joined: Thu Dec 12, 2002 8:40 pm
Post
by spock » Fri Feb 07, 2003 5:14 pm
yes, cut&paste it in to for example timedmsg.tcl which you put in your main eggdrop directory, then in your bots config file you put
"source timedmsg.tcl"
without the quotes.
then to finish off the job do a .rehash in telnet/dcc
photon?
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Fri Feb 07, 2003 10:25 pm
Other options include using the many anti-idle script available.
matt2kjones
Voice
Posts: 24 Joined: Fri Feb 07, 2003 11:16 am
Post
by matt2kjones » Sat Feb 08, 2003 6:47 pm
ok this will go to everyone in the channel yea? not just registered users of the bot
set rand(chan) "#thedigitaldream"
set rand(msges) {
"This is a message"
}
bind time - "30 * * * *" rand:msges
proc rand:msges {min hour day month year} {
global rand
putserv "PRIVMSG $rand(chan) :[lindex $rand(msges) [rand [llength $rand(msges)]]]"
}
is that correct???
the channel is #thedigitaldream and i want it to show a message every 30 mins
caesar
Mint Rubber
Posts: 3778 Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory
Post
by caesar » Sun Feb 09, 2003 3:11 am
yes, but you may probably want to remove the *space* from the 'set rand(msges)'..
Once the game is over, the king and the pawn go back in the same box.