mIRC Home    About    Download    Register    News    Help

Print Thread
#111432 15/02/05 07:26 PM
N
Nizzle
Nizzle
N
Hi guys, another noob thread from... ME!!


I googled for this and tried help but I cant seem to figure out how to do this.

How do you let your bot say a mssg once every.. lets say... 15 minutes?

So its not something he does on command but with a timer I guess?
confused

#111433 15/02/05 07:32 PM
Joined: Sep 2004
Posts: 237
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
You mean like this /timer1 0 1800 /say blah ?

#111434 15/02/05 08:23 PM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,412
1 minutes is 60 .. 2 minutes is 120 and so on, you just have to calc the amount of seconds.. //echo -a -->> Time in minutes $calc(60 * 2) will give you the answer: 120 , and 60 * 3 will give you the answer 180 ..

#111435 15/02/05 08:46 PM
Joined: Sep 2004
Posts: 237
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Sep 2004
Posts: 237
hehe,..... yeah sorry bout that, 1800 is 30 mins... 900 is 15 mins.

#111436 15/02/05 08:51 PM
N
Nizzle
Nizzle
N
/timer1 0 3 /msg test

I'm an idiot I know shocked

#111437 15/02/05 10:54 PM
R
ricky_knuckles
ricky_knuckles
R
Code:
on *:connect:{ 
  //.timer 0 1800 msg #channel $!read(textfilename.txt,n) 
}

to read a random line froma txt every 30 minutes
Code:
on *:connect:{ 
  //.timer 0 1800 msg #channel <message i want to say> 
}

to just msg something you specify every 30 minutes
this is if your looking for a remote if u want the manual command im sure you can derive it from the above

#111438 15/02/05 11:04 PM
I
Iori
Iori
I
That will error if you part from or are kicked from "#channel" for whatever reason and don't rejoin.

Code:
on *:connect:{ 
  .timer 0 1800 if ($me ison #channel) msg $!v2 $!read(textfilename.txt,n) 
}

#111439 16/02/05 01:14 AM
R
ricky_knuckles
ricky_knuckles
R
that will error if there are any blank lines in the file while we are catching everything

#111440 16/02/05 03:38 AM
D
DaveC
DaveC
D
$$!read(textfilename.txt,n)

#111441 16/02/05 04:03 AM
R
ricky_knuckles
ricky_knuckles
R
good call

#111442 17/02/05 12:37 AM
C
Crosz
Crosz
C
nice

Last edited by Crosz; 17/02/05 12:57 AM.
#111443 17/02/05 09:47 AM
N
Nizzle
Nizzle
N
on *:connect:{ //.timer 0 1800 msg #channel <message i want to say> }

ok works, but I want the bot to say it on all channels where he is. Can this be done by $chan? of #.... confused

#111444 17/02/05 10:04 AM
N
Nizzle
Nizzle
N
nvm got it

used amsg insteed of msg


Link Copied to Clipboard