I have a little problem that I can't seem to solve on my own unfortunately.

I would like to play a specific 'topic' in a text file by using the date identifier $asctime() but it's not working the way I thought it would.

Here's the total line I want executed:
Code:
/play -t$asctime(yyyy-mm) $chan "C:\Program Files\mIRC\bot_op-classes.txt" 2000


As you can see, I want to have a topic section of the text file marked as the year and month played into a channel where the command is being executed.

This is the output I currently get when trying this:
Quote:

* /play: topic '$asctime(yyyy-mm)' not found in 'bot_op-classes.txt'


I was hoping to have the $asctime(yyyy-mm) section ending up becoming 2010-08 in the command.

Could anyone please help me resolve this problem?

Just a FYI, the text file with the data I want displayed is correctly formatted with the topic brackets. I have done similar stuff in the past with other commands. The command works fine when I substitute "$asctime(yyyy-mm)" with "2010-08" (or any other dates I have in the file).

Last edited by Lloyd_B; 29/08/10 12:25 AM.

Lloyd