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.
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.