Here it is! If you have your own prompt trigger, you'll want to integrate this with it instead of just adding it, if not just add it in.
Trigger:
CODE
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\d+h(, \d+m)?(, \d+e)?(, \d+w)? [@cexkdb]*(?: Vote)?-"
omit_from_output="y"
regexp="y"
send_to="14"
sequence="25"
>
<send>prompt.data = TriggerStyleRuns
prompt.time = GetLineInfo (GetLinesInBufferCount(), 9)
prompt.time = os.date ("%%I:%%M:%%S", prompt.time)
prompt.ms = GetLineInfo (GetLinesInBufferCount(), 12)
prompt.ms = math.ceil (math.fmod (prompt.ms, 1) * 1000)
prompt.draw ()</send>
</trigger>
</triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\d+h(, \d+m)?(, \d+e)?(, \d+w)? [@cexkdb]*(?: Vote)?-"
omit_from_output="y"
regexp="y"
send_to="14"
sequence="25"
>
<send>prompt.data = TriggerStyleRuns
prompt.time = GetLineInfo (GetLinesInBufferCount(), 9)
prompt.time = os.date ("%%I:%%M:%%S", prompt.time)
prompt.ms = GetLineInfo (GetLinesInBufferCount(), 12)
prompt.ms = math.ceil (math.fmod (prompt.ms, 1) * 1000)
prompt.draw ()</send>
</trigger>
</triggers>
Script file:
CODE
prompt = {
data = false,
draw = function ()
if prompt.data then
for k,v in ipairs (prompt.data) do
ColourTell (RGBColourToName (v.textcolour),
RGBColourToName (v.backcolour),
v.text)
end -- for
end -- if
Note (string.format (" [%s.%03.f]", prompt.time, prompt.ms))
end, -- func
}
data = false,
draw = function ()
if prompt.data then
for k,v in ipairs (prompt.data) do
ColourTell (RGBColourToName (v.textcolour),
RGBColourToName (v.backcolour),
v.text)
end -- for
end -- if
Note (string.format (" [%s.%03.f]", prompt.time, prompt.ms))
end, -- func
}
