Chovin / Dumb-Cogs

Cogs for Red-DiscordBot
GNU General Public License v3.0
2 stars 7 forks source link

[HammerTime] add ability to auto-convert "ago" times #18

Open Chovin opened 1 month ago

Chovin commented 1 month ago

currently it only auto-converts times like "in 5 minutes" and "Saturday at 9pm". It shouldn't be too hard to add the "5 minutes ago" format though.

Kuzay3t commented 1 month ago

how do i help with this?

Chovin commented 1 month ago

currently the on_message function exits early if the message doesn't have "at" or "in" in the message. You'd need to alter the regex to include "ago" and then test to make sure that it converts strings like "5 minutes ago" correctly