Escaping the $ in a /timer - 25/05/06 12:52 AM
Greetings.
My BlackJack Bot sends lots of messages into the channel, and consequently the messages need to be spaced apart by 2 second delay timers to prevent flooding and auto-ignores from clients.
This works satisfactory.
However, a message the Bot sends indicates how much a Player has won or lost. A typical message might be:
The problem is this is a command for a timer:
As a command, mIRC obviously find this to be some sort of passed value or an identifier. In my case, I need for it to be a literal string.
That's the background. So my question is:
Is there a way to force the timer to see the command as a string literal -or- is there a way to escape the $ sign?
I have tried all sorts of things, evaluation brackets, $eval(), \$, $$, but in the end, the timer command ends up to be the same above.
Your guidance would be honored.
My BlackJack Bot sends lots of messages into the channel, and consequently the messages need to be spaced apart by 2 second delay timers to prevent flooding and auto-ignores from clients.
This works satisfactory.
However, a message the Bot sends indicates how much a Player has won or lost. A typical message might be:
Quote:
Joe wins, and the House grungingly pays out $10.
The problem is this is a command for a timer:
Code:
Timer 1: 1 Delay, 1 seconds until execution of /say Joe wins, and the House grungingly pays out $10. command.
As a command, mIRC obviously find this to be some sort of passed value or an identifier. In my case, I need for it to be a literal string.
That's the background. So my question is:
Is there a way to force the timer to see the command as a string literal -or- is there a way to escape the $ sign?
I have tried all sorts of things, evaluation brackets, $eval(), \$, $$, but in the end, the timer command ends up to be the same above.
Your guidance would be honored.