hxck commented on a Page, Temperature converter  -  Mar 12, 2014

Bot version:
!tc temp convtemp (i.e !tc 50 F will say 50 C is 122 F)

on $*:TEXT:/^[!]tc\s+(\d+)\s+(c|f)$/Si:#:{
  if ($regml(2) == C) { msg # $regml(1) F is $round($calc((($regml(1) - 32) / 9) * 5), 2) C }
  else { msg # $regml(1) C is $round($calc((($regml(1) * 9) / 5) + 32), 0) F }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.