Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
Fixed watchlist and boss timers bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarzaa90 committed Jan 24, 2019
1 parent 29216b6 commit 1d6935a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion cogs/timers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions cogs/tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}.")
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion nabbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1d6935a

Please sign in to comment.