Originally Posted By: Wims
There is no difference in the trigger you used and in your first post, probably a typo.
Although it's probably obvious you want it to start with it, you only stated you didn't want it to appear anywhere in the text.
The matchtext !res* would trigger for any message starting with !res, while this is better than anywhere in the message, it still would match on !responsabilities for example, where $2 doesn't even exist.
To make sure it only trigger with the first word = !res and that you want a second word, use "!res &". The & indicate a full word


Thanks, that made it work smile

Just one more question before this thread can be locked.
Code:
alias todate {
  var %month = 09
  var %day = 14
  var %year = 2015

  var %todate = $calc($ctime($+(%day,-,%month,-,%year) 14:0:0) - $ctime)
  if (%todate < 0) {
    inc %year
    %todate = $calc($ctime($+(%day,-,%month,-,%year) 14:0:0) - $ctime)
  }
  return %todate
}
on 1:TEXT:!test:#artiiz:{
  msg $chan @ $+ $nick live in about $duration($todate($2,$3),2)) $+
}


On this picture below,

Is there a way in the script (in the Code above), to make it show 16h 53m instead of "hrs" and "mins"?

Last edited by Artiiz; 13/09/15 07:09 PM.