* IRC Timer 만들기 (반복 명령어 실행)
/timer[숫자 또는 이름] [반복 횟수] [반복시간(초)] [명령]
위와 같은 형식을 사용하며 예를 들어
타이머 실행 /timer01 5 10 /say 늘보 바보~!
- 이후 매 20초 마다 명령을 기입한 채널에 "늘보 바보~!"라는 메시지를 5회 출력합니다.
첫번째 5는 반복회수(0으로 하면 무안 반복) 두번째 10은 반복 시간을 나타냅니다.
timer01과 같이 숫자를 붙여 이후 각 timer 별로 종료가 가능합니다.
타이머 종료 /timer01 off
- timer01번을 종료합니다.
활성 타이머의 확인
/timer
- 현재 활성화 되어 있는 타이머를 보여줍니다.
와 같은 식으로 많이들 사용합니다.
이 외에 몇가지 추가적인 옵션이 있기는 하지만 간단한 사용법만을 알려드립니다.
자세한 사항은 관련 IRC *도움말 메뉴에서 timer로 검색하시면 친철한 영어(^^)메뉴를 보실 수 있습니다.
/timer[N/name] [-cdeomhipr] [time] <repetitions> <interval> <command>
Activates the specified timer to perform the specified command at a specified interval, and optionally at a specified time.
If you are not connected to a server and you start a timer, it defaults to being an offline timer which means it will continue to run whether you are connected to a server or not.
If you are connected to a server and you start a timer, it defaults to being an online timer, which means that if you disconnect from the server, it will be turned off. You can specify the -o switch to force it to be an offline timer.
/timer1 0 20 /ame is AWAY!
Timer1 will repeat an all channel action every 20 seconds until you stop the timer.
If you specify a delay of 0 seconds, the timer will trigger immediately after the calling script ends.
/timer5 10 60 /msg #games For more info on the latest games do /msg GaMeBoT info
Timer5 will repeat this message to channel #games every sixty seconds and stop after 10 times.
/timer9 14:30 1 1 /say It's now 2:30pm
This will wait until 2:30pm and will then announce the time once and stop.
To see a list of active timers type /timers. To see the setting for timer1 type /timer1. To deactivate timer1 type /timer1 off. To deactivate all timers type /timers off. If you are activating a new timer you do not need to specify the timer number, just use:
/timer 10 20 /ame I'm not here!
And mIRC will allocate the first free timer it finds to this command.
If you specify the -c switch, this makes mIRC "catch up" a timer by executing it more than once during one interval if the real-time interval isn't matching your requested interval.
If you specify the -m or -h switch, this indicates that the interval delay is in milliseconds.
Note: The -h switch creates a high-resolution multimedia timer. This type of timer should only be used in critical timer situations since it uses system resources heavily.
The -d switch ensures that a timer and any subsequent timers using the -d switch are triggered in that order.
If you specify the -e switch, this executes the command associated with the specified timer name, also works if you specify a wildcard name.
The $ltimer identifier returns the number of the timer that was just started by the /timer command.
Instead of using a number you can also specify a name for a timer.
/timershow 0 10 echo -a $nick $server $time
You can force identifiers to be re-evaluated when used in a /timer command by using the format $!me or $!time.
If you wish to turn off a range of timers, you can use a wildcard for the number, for example:
/timer3? off
Will turn off all timers from 30 to 39.
The -pr switches pause and resume a timer respectively.
The -i switch makes a timer dynamically associate with whatever happens to be the active connection. If a server window is closed, the timer is associated with the next available server window.
/timestamp [-fgs|a|e] [on|off|default] [windowname]
Turns timestamping of events on or off. If you specify default, uses the global timestamp setting.
-s = for status window
-a = for active window
-e = for every window
If a windowname is not specified, then the global timstamp switch is turned on or off.
The -f switch allows you to set the event timestamp format, eg. /timestamp -f [HH:nn]
The -g switch allows you to set the logging timestamp format.