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.

random messages???

Old posts that have not been replied to for several years.
Locked
m
matt2kjones
Voice
Posts: 24
Joined: Fri Feb 07, 2003 11:16 am

random messages???

Post by matt2kjones »

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
http://www.thedigitaldream.co.uk
irc.thedigitaldream.co.uk #thedigitaldream
D
Darmoth
Master
Posts: 210
Joined: Sun Oct 07, 2001 8:00 pm
Location: old europe

Post by Darmoth »

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/ .
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
m
matt2kjones
Voice
Posts: 24
Joined: Fri Feb 07, 2003 11:16 am

Post by matt2kjones »

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
http://www.thedigitaldream.co.uk
irc.thedigitaldream.co.uk #thedigitaldream
s
spock
Master
Posts: 319
Joined: Thu Dec 12, 2002 8:40 pm

Post by spock »

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?
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Other options include using the many anti-idle script available.
m
matt2kjones
Voice
Posts: 24
Joined: Fri Feb 07, 2003 11:16 am

Post by matt2kjones »

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
http://www.thedigitaldream.co.uk
irc.thedigitaldream.co.uk #thedigitaldream
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

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.
Locked