UWCS / choob

Compsoc's Highly Over-engineered Object-oriented Bot
http://choob.uwcs.co.uk/
GNU Lesser General Public License v2.1
17 stars 6 forks source link

Generalise Time Parsing #338

Open FauxFaux opened 13 years ago

FauxFaux commented 13 years ago

Currently TimedEvents.In appears to only accept integers, it would be preferable if it also accepted floating point values. For example !in 1.5h would equate to `!in 1h30m'. In the case of weird rounding situations, I'd go with the closest, rather than decimally rounding the float value before conversion. Seems easier to implement and more obvious to me.

FauxFaux commented 13 years ago

Ticket imported from Trac: http://trac.uwcs.co.uk/choob/ticket/338