diff options
author | 2021-05-10 20:52:13 +0100 | |
---|---|---|
committer | 2021-05-10 20:52:13 +0100 | |
commit | 8c9298495a86da7c7b67b0a5d7557819ce0057e7 (patch) | |
tree | df953fb08f059c8af871c4d5297da2185e59007b | |
parent | Use bot.bot.Bot for type hint, over commands.Bot (diff) |
Remove redundant comments in bookmark cog
-rw-r--r-- | bot/exts/evergreen/bookmark.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/evergreen/bookmark.py index 5f550a4a..7a97a40d 100644 --- a/bot/exts/evergreen/bookmark.py +++ b/bot/exts/evergreen/bookmark.py @@ -24,7 +24,7 @@ class Bookmark(commands.Cog): @staticmethod def build_bookmark_dm(target_message: discord.Message, title: str) -> discord.Embed: - """Builds the embed to DM the bookmark requester.""" + """Build the embed to DM the bookmark requester.""" embed = discord.Embed( title=title, description=target_message.content, @@ -131,13 +131,11 @@ class Bookmark(commands.Cog): _, user = await self.bot.wait_for("reaction_add", timeout=TIMEOUT, check=event_check) except asyncio.TimeoutError: log.debug("Timed out waiting for a reaction") - # No reactions for the last `TIMEOUT` seconds break log.trace(f"{user} has successfully bookmarked from a reaction, attempting to DM them.") await self.action_bookmark(ctx.channel, user, target_message, title) bookmarked_users.append(user.id) - # Delete the message now that the bot isn't listening to it to save screen space await reaction_message.delete() |