diff --git a/CHANGELOG.md b/CHANGELOG.md index efc4d93..7612f1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ - 🐛 Fixed bug - ❌ Removed feature +## Version 2.0.1 (2019-01-24) +- 🔧 Added `heart of destruction` as an alias for `World Devourer` in boss timers. +- 🐛 Fixed database migration importing some numeric values as strings (`announce_channel` and `announce_level`) +- 🐛 Fixed error when using `/watchlist adduser` on a user that doesn't exist. +- 🐛 Fixed bug in `/watchlist showcount` not accepting any answers. +- 🐛 Fixed incorrect hint on `/boss set` + ## Version 2.0.0 (2019-01-23) - ✔ Migrated user database from SQLite to PostgreSQL (Database migration available) - ✔ Users can now be ignored, so the bot doesn't respond to them. diff --git a/cogs/timers.py b/cogs/timers.py index ca1f8f2..9a93c87 100644 --- a/cogs/timers.py +++ b/cogs/timers.py @@ -59,6 +59,7 @@ "eradicator": "Eradicator", "outburst": "Outburst", "world devourer": "World Devourer", + "heart of destruction": "World Devourer", "ravennous hunger": "ravennous hunger", "the souldespoiler": "The Souldespoiler", "souldespoiler": "The Souldespoiler", @@ -630,7 +631,7 @@ async def boss_set(self, ctx: NabCtx, *, params): cooldown = BOSS_COOLDOWNS[name] else: return await ctx.error(f"There's no boss with that name.\nFor a list of supported bosses, " - f"try: `{ctx.clean_prefix}{ctx.invoked_with} bosslist`") + f"try: `{ctx.clean_prefix}boss bosslist`") db_char = await DbChar.get_by_name(ctx.pool, char) if db_char is None: diff --git a/cogs/tracking.py b/cogs/tracking.py index 9508754..05f5070 100644 --- a/cogs/tracking.py +++ b/cogs/tracking.py @@ -1143,7 +1143,7 @@ async def watchlist_adduser(self, ctx: NabCtx, channel: discord.TextChannel, *, user = ctx.bot.get_member(name, ctx.guild) if user is None: - return await ctx.error("I don't see any users with that name.") + return await ctx.error("I don't see any users with that name or id.") characters = await DbChar.get_chars_by_user(ctx.pool, user.id, worlds=ctx.world) if not characters: await ctx.error(f"This user doesn't have any registered characters in {ctx.world}.") @@ -1368,10 +1368,10 @@ async def watchlist_showcount(self, ctx: NabCtx, channel: discord.TextChannel, y watchlist = await Watchlist.get_by_channel_id(ctx.pool, channel.id) if not watchlist: return await ctx.error(f"{channel.mention} is not a watchlist.") - if yes_no.lower().strip() == ["yes", "true"]: + if yes_no.lower().strip() in ["yes", "true"]: await watchlist.update_show_count(ctx.pool, True) await ctx.success("Showing online count is now enabled. The name will be updated on the next cycle.") - elif yes_no.lower().strip() == ["no", "false"]: + elif yes_no.lower().strip() in ["no", "false"]: await watchlist.update_show_count(ctx.pool, False) await ctx.success("Showing online count is now disabled. The name will be updated on the next cycle.") else: diff --git a/nabbot.py b/nabbot.py index e160f97..32c8f9d 100644 --- a/nabbot.py +++ b/nabbot.py @@ -64,7 +64,7 @@ def __init__(self): # A list version is created from the dictionary self.tracked_worlds = {} self.tracked_worlds_list = [] - self.__version__ = "2.0.0" + self.__version__ = "2.0.1" self.__min_discord__ = 1580 async def on_ready(self):