Jintaku / Jintaku-Cogs-V3

V3 Cogs made by the Jintaku community
GNU Affero General Public License v3.0
39 stars 40 forks source link

Include the option to get the latest xkcd #60

Open nfitzen opened 3 years ago

nfitzen commented 3 years ago

Everything works as one would expect, but [p]xkcd latest will get the latest xkcd. I also cleaned up a bit of code by abstracting the xkcd query and reusing aiohttp sessions, and I changed the date format to be more universal (year-month-day is pretty widely accepted, even in the U.S.).

Edit: For the record, I license the contributions authored in this pull request under both the terms of the repository per GitHub's ToS, as well as, at your option, AGPL-3.0-or-later, in hopes of an easier transition to an "or later" version for the whole project, should you wish to do so.