From afa2054323e6ce47483ab870bc0af7ac0bb3e5c7 Mon Sep 17 00:00:00 2001 From: Abigail Date: Mon, 16 Dec 2019 00:02:21 -0500 Subject: [PATCH] reorder changelog, add links, fix changelog parser --- CHANGELOG.md | 24 ++++++++++++++---------- exts/base.py | 3 ++- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 010e05b..d4a4995 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,29 +3,33 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -## [Unreleased](https://github.com/classabbyamp/discord-qrm2/compare/v2.0.0...HEAD) -## [v2.0.0](https://github.com/classabbyamp/discord-qrm2/releases/tag/v2.0.0) - 2019-12-16 +## [Unreleased] + +## [v2.0.0] - 2019-12-16 ### Added -- Global info, secrets, and options are now stored in their own files, based on [0x5c/quick-bot-no-pain](https://github.com/0x5c/quick-bot-no-pain) - Rich lookup for AE7Q.com (callsigns only, more to come) - Rich lookup for QRZ.com, if a QRZ subscription is present -- Timestamp and requester username and avatar are now shown on embeds - Current and 3-Day forecast for terrestrial weather conditions lookup commands -- Extension control commands - Changelog command - Command to show callsign rules +- Extension control commands +- Timestamp and requester username and avatar are now shown on embeds - Docker support, including an [official docker image](https://hub.docker.com/r/classabbyamp/discord-qrm2) and instructions for running the bot in docker +- Global info, secrets, and options are now stored in their own files, based on [0x5c/quick-bot-no-pain](https://github.com/0x5c/quick-bot-no-pain) ### Changed -- Rewrote code to take advantage of discord.py's cogs and extensions -- Moved most bot responses into embed -- Re-implemented shutdown and restart commands using discord.py checks -- Embed colors now fit with discord's theme -- The contest calendar command no longer relies on `selenium` (more improvements to come) - Improved the help command, taking advantage of discord.py's new features - Improved command and argument names to be more clear +- Embed colors now fit with discord's theme +- Re-implemented shutdown and restart commands using discord.py checks +- The contest calendar command no longer relies on `selenium` (more improvements to come) +- Rewrote code to take advantage of discord.py's cogs and extensions +- Moved most bot responses into embeds ### Removed - CTY.DAT parsing is now its own library ([`ctyparser` available on pypi](https://pypi.org/project/ctyparser/)) - Removed Herobrine ### Fixed - Cleaned up code to comply with the PEP8 Standard - Issue in morse and unmorse commands where spaces were not interpreted correctly + +[Unreleased]: https://github.com/classabbyamp/discord-qrm2/compare/v2.0.0...HEAD +[v2.0.0]: https://github.com/classabbyamp/discord-qrm2/releases/tag/v2.0.0 diff --git a/exts/base.py b/exts/base.py index a237234..0542d37 100644 --- a/exts/base.py +++ b/exts/base.py @@ -183,7 +183,8 @@ def parse_changelog(): heading = line.lstrip('#').strip() changelog[ver][heading] = [] elif ver != '' and heading != '': - changelog[ver][heading].append(line.lstrip('-').strip()) + if line.startswith('-'): + changelog[ver][heading].append(line.lstrip('-').strip()) return changelog