diff options
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/constants.py | 10 | ||||
| -rw-r--r-- | bot/seasons/evergreen/bookmark.py | 4 | 
2 files changed, 6 insertions, 8 deletions
| diff --git a/bot/constants.py b/bot/constants.py index c2c76122..acdd006e 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -5,7 +5,6 @@ from os import environ  from typing import NamedTuple  __all__ = ( -    "bookmark_icon_url",      "AdventOfCode", "Branding", "Channels", "Client", "Colours", "Emojis", "Hacktoberfest", "Month", "Roles", "Tokens",      "WHITELISTED_CHANNELS", "STAFF_ROLES", "MODERATION_ROLES",      "POSITIVE_REPLIES", "NEGATIVE_REPLIES", "ERROR_REPLIES", @@ -13,11 +12,6 @@ __all__ = (  log = logging.getLogger(__name__) -bookmark_icon_url = ( -    "https://images-ext-2.discordapp.net/external/zl4oDwcmxUILY7sD9ZWE2fU5R7n6QcxEmPYSE5eddbg/" -    "%3Fv%3D1/https/cdn.discordapp.com/emojis/654080405988966419.png?width=20&height=20" -) -  class AdventOfCode:      leaderboard_cache_age_threshold_seconds = 3600 @@ -111,6 +105,10 @@ class Emojis:  class Icons:      questionmark = "https://cdn.discordapp.com/emojis/512367613339369475.png" +    bookmark = ( +        "https://images-ext-2.discordapp.net/external/zl4oDwcmxUILY7sD9ZWE2fU5R7n6QcxEmPYSE5eddbg/" +        "%3Fv%3D1/https/cdn.discordapp.com/emojis/654080405988966419.png?width=20&height=20" +    )  class Lovefest: diff --git a/bot/seasons/evergreen/bookmark.py b/bot/seasons/evergreen/bookmark.py index bd7d5c11..e703e07b 100644 --- a/bot/seasons/evergreen/bookmark.py +++ b/bot/seasons/evergreen/bookmark.py @@ -4,7 +4,7 @@ import random  import discord  from discord.ext import commands -from bot.constants import Colours, ERROR_REPLIES, Emojis, bookmark_icon_url +from bot.constants import Colours, ERROR_REPLIES, Emojis, Icons  log = logging.getLogger(__name__) @@ -43,7 +43,7 @@ class Bookmark(commands.Cog):          )          embed.add_field(name="Wanna give it a visit?", value=f"[Visit original message]({target_message.jump_url})")          embed.set_author(name=target_message.author, icon_url=target_message.author.avatar_url) -        embed.set_thumbnail(url=bookmark_icon_url) +        embed.set_thumbnail(url=Icons.bookmark)          try:              await ctx.author.send(embed=embed) | 
