From 205fd466927cc17063c7e87740a9faa70a33984e Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 2 May 2025 14:45:08 -0400 Subject: [PATCH 1/3] Replace all utcnow with just now --- techsupport_bot/bot.py | 6 +++--- techsupport_bot/botlogging/embed.py | 4 ++-- techsupport_bot/commands/config.py | 2 +- techsupport_bot/commands/factoids.py | 4 ++-- techsupport_bot/commands/hangman.py | 2 +- techsupport_bot/commands/listen.py | 2 +- techsupport_bot/commands/members.py | 2 +- techsupport_bot/commands/modmail.py | 20 ++++++++++---------- techsupport_bot/commands/protect.py | 2 +- techsupport_bot/commands/rules.py | 2 +- techsupport_bot/commands/voting.py | 2 +- techsupport_bot/commands/who.py | 2 +- techsupport_bot/core/databases.py | 16 ++++++++-------- techsupport_bot/functions/logger.py | 2 +- 14 files changed, 34 insertions(+), 34 deletions(-) diff --git a/techsupport_bot/bot.py b/techsupport_bot/bot.py index 64b611abc..ff6e63b20 100644 --- a/techsupport_bot/bot.py +++ b/techsupport_bot/bot.py @@ -218,7 +218,7 @@ async def on_ready(self: Self) -> None: """Callback for when the bot is finished starting up. This function may be called more than once and should not have discord interactions in it """ - self.startup_time = datetime.datetime.utcnow() + self.startup_time = datetime.datetime.now() await self.logger.send_log( message="Bot online", level=LogLevel.INFO, console_only=True ) @@ -242,7 +242,7 @@ async def log_DM(self: Self, sent_from: str, source: str, content: str) -> None: embed = auxiliary.generate_basic_embed( f"{source} recieved a PM", f"PM from: {sent_from}\n{content}" ) - embed.timestamp = datetime.datetime.utcnow() + embed.timestamp = datetime.datetime.now() await owner.send(embed=embed) async def on_message(self: Self, message: discord.Message) -> None: @@ -362,7 +362,7 @@ async def write_new_config(self: Self, guild_id: str, config: str) -> None: ).gino.first() if database_config: await database_config.update( - config=str(config), update_time=datetime.datetime.utcnow() + config=str(config), update_time=datetime.datetime.now() ).apply() else: new_database_config = self.models.Config( diff --git a/techsupport_bot/botlogging/embed.py b/techsupport_bot/botlogging/embed.py index c941eb93d..92d32eef2 100644 --- a/techsupport_bot/botlogging/embed.py +++ b/techsupport_bot/botlogging/embed.py @@ -27,7 +27,7 @@ def __init__(self: Self, message: str) -> None: super().__init__( title=self.title.upper(), description=message, color=self.color ) - self.timestamp = datetime.datetime.utcnow() + self.timestamp = datetime.datetime.now() def modify_embed(self: Self, embed: discord.Embed) -> discord.Embed: """This modifies an existing embed to match with the LogEmbed style @@ -41,7 +41,7 @@ def modify_embed(self: Self, embed: discord.Embed) -> discord.Embed: embed.title = self.title embed.color = self.color embed.description = self.description - embed.timestamp = datetime.datetime.utcnow() + embed.timestamp = datetime.datetime.now() return embed diff --git a/techsupport_bot/commands/config.py b/techsupport_bot/commands/config.py index 0da600ffd..949b474da 100644 --- a/techsupport_bot/commands/config.py +++ b/techsupport_bot/commands/config.py @@ -109,7 +109,7 @@ async def patch_config(self: Self, ctx: commands.Context) -> None: json_file = discord.File( io.StringIO(json.dumps(json_config, indent=4)), - filename=f"{ctx.guild.id}-config-{datetime.datetime.utcnow()}.json", + filename=f"{ctx.guild.id}-config-{datetime.datetime.now()}.json", ) await ctx.send(file=json_file) diff --git a/techsupport_bot/commands/factoids.py b/techsupport_bot/commands/factoids.py index 43de8ade4..2217b7a6b 100644 --- a/techsupport_bot/commands/factoids.py +++ b/techsupport_bot/commands/factoids.py @@ -1457,7 +1457,7 @@ async def _json(self: Self, ctx: commands.Context, factoid_name: str) -> None: json_file = discord.File( io.StringIO(formatted), filename=( - f"{aliases_list[0]}-factoid-embed-config-{datetime.datetime.utcnow()}.json" + f"{aliases_list[0]}-factoid-embed-config-{datetime.datetime.now()}.json" ), ) @@ -1892,7 +1892,7 @@ async def send_factoids_as_file( yaml_file = discord.File( io.StringIO(yaml.dump(output_data)), filename=( - f"factoids-for-server-{guild.id}-{datetime.datetime.utcnow()}.yaml" + f"factoids-for-server-{guild.id}-{datetime.datetime.now()}.yaml" ), ) diff --git a/techsupport_bot/commands/hangman.py b/techsupport_bot/commands/hangman.py index fc599db2d..6396f9538 100644 --- a/techsupport_bot/commands/hangman.py +++ b/techsupport_bot/commands/hangman.py @@ -129,7 +129,7 @@ def __init__(self: Self, word: str, max_guesses: int = 6) -> None: self.guesses = set() self.step = 0 self.max_guesses = max_guesses - self.started = datetime.datetime.utcnow() + self.started = datetime.datetime.now() self.id = uuid.uuid4() def draw_word_state(self: Self) -> str: diff --git a/techsupport_bot/commands/listen.py b/techsupport_bot/commands/listen.py index 30b218ac0..d91ad4e41 100644 --- a/techsupport_bot/commands/listen.py +++ b/techsupport_bot/commands/listen.py @@ -60,7 +60,7 @@ def format_message_in_embed(self: Self, message: discord.Message) -> discord.Emb """ embed = auxiliary.generate_basic_embed(description=message.clean_content) - embed.timestamp = datetime.datetime.utcnow() + embed.timestamp = datetime.datetime.now() embed.set_author( name=message.author.name, icon_url=message.author.display_avatar.url ) diff --git a/techsupport_bot/commands/members.py b/techsupport_bot/commands/members.py index 182b1ecb4..dcf60f45d 100644 --- a/techsupport_bot/commands/members.py +++ b/techsupport_bot/commands/members.py @@ -91,7 +91,7 @@ async def get_members_with_role( yaml_file = discord.File( io.StringIO(yaml.dump(yaml_output_data)), filename=f"members-with-{role.name}-in" - + f"-{ctx.guild.id}-{datetime.datetime.utcnow()}.yaml", + + f"-{ctx.guild.id}-{datetime.datetime.now()}.yaml", ) await ctx.send(file=yaml_file) diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index fbb11cf70..af18a7522 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -165,7 +165,7 @@ async def on_message_edit( title="Message edit", description=f"Message ID: {before.id}", ) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() # This is here to save space if this listener is triggered by something other than # a content modification, i.e. a message being pinned @@ -318,7 +318,7 @@ async def handle_dm(message: discord.Message) -> None: embed = discord.Embed(color=discord.Color.blue(), description=message.content) embed.set_footer(text=f"Message ID: {message.id}") - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() if message.author.avatar: embed.set_author(name=message.author, icon_url=message.author.avatar.url) else: @@ -495,7 +495,7 @@ async def create_thread( # has to be done like this because of member handling embed.description = description embed.set_author(name=user, icon_url=url) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() embed.set_footer(text=f"User ID: {user.id}") # Handling for roles to ping, not performed if the func was invoked by the contact command @@ -523,7 +523,7 @@ async def create_thread( embed = discord.Embed(color=discord.Color.blue(), description=message.content) embed.set_author(name=user, icon_url=url) embed.set_footer(text=f"Message ID: {message.id}") - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() attachments = None if message.attachments: @@ -541,7 +541,7 @@ async def create_thread( ) embed.set_author(name="Thread Created") embed.set_footer(text="Your message has been sent.") - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() await message.author.send(embed=embed) @@ -634,7 +634,7 @@ async def reply_to_thread( # No need to reconfirm user_attachments = await build_attachments(thread=thread, message=message) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() embed.set_footer(text="Response") if automatic: @@ -701,7 +701,7 @@ async def close_thread( embed.set_footer( text="Closing will be cancelled if a message is sent, or if the command is run again." ) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() await thread.send(embed=embed) @@ -766,7 +766,7 @@ async def close_thread( description="Please wait 24 hours before creating a new one.", ) embed.set_author(name="Thread Closed") - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() await user.send(embed=embed) @@ -813,7 +813,7 @@ async def log_closure( icon_url=closed_by.avatar.url, text=f"Thread closed by {closed_by.name}", ) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() await log_channel.send(embed=embed) @@ -1347,7 +1347,7 @@ async def modmail_commands(self: Self, ctx: commands.Context) -> None: description=f"*You can use these by typing `{prefix}` in a modmail thread*", title="Modmail commands", ) - embed.timestamp = datetime.utcnow() + embed.timestamp = datetime.now() # First three are reply commands for command in list_of_modmail_commands[:3]: diff --git a/techsupport_bot/commands/protect.py b/techsupport_bot/commands/protect.py index 2a4953927..23c80ad48 100644 --- a/techsupport_bot/commands/protect.py +++ b/techsupport_bot/commands/protect.py @@ -1251,7 +1251,7 @@ async def purge_duration( ) return - timestamp = datetime.datetime.utcnow() - datetime.timedelta( + timestamp = datetime.datetime.now() - datetime.timedelta( minutes=duration_minutes ) diff --git a/techsupport_bot/commands/rules.py b/techsupport_bot/commands/rules.py index 246644faa..93a60e444 100644 --- a/techsupport_bot/commands/rules.py +++ b/techsupport_bot/commands/rules.py @@ -127,7 +127,7 @@ async def edit_rules(self: Self, ctx: commands.Context) -> None: json_file = discord.File( io.StringIO(json.dumps(rules_data, indent=4)), - filename=f"{ctx.guild.id}-rules-{datetime.datetime.utcnow()}.json", + filename=f"{ctx.guild.id}-rules-{datetime.datetime.now()}.json", ) await ctx.send(content="Re-upload this file to apply new rules", file=json_file) diff --git a/techsupport_bot/commands/voting.py b/techsupport_bot/commands/voting.py index ce64e6fbb..21c80a0d4 100644 --- a/techsupport_bot/commands/voting.py +++ b/techsupport_bot/commands/voting.py @@ -422,7 +422,7 @@ async def execute(self: Self, config: munch.Munch, guild: discord.Guild) -> None ) for vote in active_votes: end_time = int((vote.start_time + timedelta(hours=72)).timestamp()) - if end_time <= int(datetime.datetime.utcnow().timestamp()): + if end_time <= int(datetime.datetime.now().timestamp()): await self.end_vote(vote, guild) async def end_vote(self: Self, vote: munch.Munch, guild: discord.Guild) -> None: diff --git a/techsupport_bot/commands/who.py b/techsupport_bot/commands/who.py index 36a7a14d8..3c406d903 100644 --- a/techsupport_bot/commands/who.py +++ b/techsupport_bot/commands/who.py @@ -423,7 +423,7 @@ async def all_notes( yaml_file = discord.File( io.StringIO(yaml.dump({"notes": note_output_data})), - filename=f"notes-for-{user.id}-{datetime.datetime.utcnow()}.yaml", + filename=f"notes-for-{user.id}-{datetime.datetime.now()}.yaml", ) await interaction.response.send_message(file=yaml_file, ephemeral=True) diff --git a/techsupport_bot/core/databases.py b/techsupport_bot/core/databases.py index 9caf9564f..88023219a 100644 --- a/techsupport_bot/core/databases.py +++ b/techsupport_bot/core/databases.py @@ -44,7 +44,7 @@ class Applications(bot.db.Model): background: str = bot.db.Column(bot.db.String) reason: str = bot.db.Column(bot.db.String) application_time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) class ApplicationBans(bot.db.Model): @@ -85,7 +85,7 @@ class DuckUser(bot.db.Model): befriend_count: int = bot.db.Column(bot.db.Integer, default=0) kill_count: int = bot.db.Column(bot.db.Integer, default=0) updated: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) speed_record: float = bot.db.Column(bot.db.Float, default=80.0) @@ -114,7 +114,7 @@ class Factoid(bot.db.Model): guild: str = bot.db.Column(bot.db.String) message: str = bot.db.Column(bot.db.String) time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) embed_config: str = bot.db.Column(bot.db.String, default=None) hidden: bool = bot.db.Column(bot.db.Boolean, default=False) @@ -165,7 +165,7 @@ class Grab(bot.db.Model): guild: str = bot.db.Column(bot.db.String) message: str = bot.db.Column(bot.db.String) time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) nsfw: bool = bot.db.Column(bot.db.Boolean, default=False) @@ -218,7 +218,7 @@ class UserNote(bot.db.Model): user_id: str = bot.db.Column(bot.db.String) guild_id: str = bot.db.Column(bot.db.String) updated: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) author_id: str = bot.db.Column(bot.db.String) body: str = bot.db.Column(bot.db.String) @@ -242,7 +242,7 @@ class Warning(bot.db.Model): guild_id: str = bot.db.Column(bot.db.String) reason: str = bot.db.Column(bot.db.String) time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) class Config(bot.db.Model): @@ -262,7 +262,7 @@ class Config(bot.db.Model): guild_id: str = bot.db.Column(bot.db.String) config: str = bot.db.Column(bot.db.String) update_time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) class Listener(bot.db.Model): @@ -335,7 +335,7 @@ class Votes(bot.db.Model): votes_no: int = bot.db.Column(bot.db.Integer, default=0) votes_total: int = bot.db.Column(bot.db.Integer, default=0) start_time: datetime.datetime = bot.db.Column( - bot.db.DateTime, default=datetime.datetime.utcnow + bot.db.DateTime, default=datetime.datetime.now ) vote_active: bool = bot.db.Column(bot.db.Boolean, default=True) blind: bool = bot.db.Column(bot.db.Boolean, default=False) diff --git a/techsupport_bot/functions/logger.py b/techsupport_bot/functions/logger.py index dd9982ace..3e7a336cb 100644 --- a/techsupport_bot/functions/logger.py +++ b/techsupport_bot/functions/logger.py @@ -118,7 +118,7 @@ def build_embed(self: Self, ctx: commands.Context) -> discord.Embed: # Set basic items embed.color = discord.Color.greyple() - embed.timestamp = datetime.datetime.utcnow() + embed.timestamp = datetime.datetime.now() # Add the message content embed.title = "Content" From dbdd6cda72d608cbd6c95741b2acc382e461f94c Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 2 May 2025 14:47:12 -0400 Subject: [PATCH 2/3] Run black --- techsupport_bot/bot.py | 10 +++++----- techsupport_bot/commands/factoids.py | 4 +--- techsupport_bot/commands/modmail.py | 6 ------ techsupport_bot/commands/protect.py | 4 +--- techsupport_bot/commands/urban.py | 4 +--- techsupport_bot/commands/wolfram.py | 4 +--- 6 files changed, 9 insertions(+), 23 deletions(-) diff --git a/techsupport_bot/bot.py b/techsupport_bot/bot.py index ff6e63b20..3a9384837 100644 --- a/techsupport_bot/bot.py +++ b/techsupport_bot/bot.py @@ -71,11 +71,11 @@ def __init__( self.guild_configs: dict[str, munch.Munch] = {} self.extension_configs = munch.DefaultMunch(None) self.extension_states = munch.DefaultMunch(None) - self.command_rate_limit_bans: expiringdict.ExpiringDict[str, bool] = ( - expiringdict.ExpiringDict( - max_len=5000, - max_age_seconds=600, - ) + self.command_rate_limit_bans: expiringdict.ExpiringDict[ + str, bool + ] = expiringdict.ExpiringDict( + max_len=5000, + max_age_seconds=600, ) self.command_execute_history: dict[str, dict[int, bool]] = {} diff --git a/techsupport_bot/commands/factoids.py b/techsupport_bot/commands/factoids.py index 2217b7a6b..519065e13 100644 --- a/techsupport_bot/commands/factoids.py +++ b/techsupport_bot/commands/factoids.py @@ -1891,9 +1891,7 @@ async def send_factoids_as_file( yaml_file = discord.File( io.StringIO(yaml.dump(output_data)), - filename=( - f"factoids-for-server-{guild.id}-{datetime.datetime.now()}.yaml" - ), + filename=(f"factoids-for-server-{guild.id}-{datetime.datetime.now()}.yaml"), ) # Returns the file diff --git a/techsupport_bot/commands/modmail.py b/techsupport_bot/commands/modmail.py index af18a7522..ba1cbb054 100644 --- a/techsupport_bot/commands/modmail.py +++ b/techsupport_bot/commands/modmail.py @@ -153,7 +153,6 @@ async def on_message_edit( isinstance(before.channel, discord.DMChannel) and before.author.id in active_threads ): - if await Ts_client.models.ModmailBan.query.where( Ts_client.models.ModmailBan.user_id == str(before.author.id) ).gino.first(): @@ -452,7 +451,6 @@ async def create_thread( if not thread.name.startswith("[OPEN]") and thread.name.split("|")[ -1 ].strip() == str(user.id): - past_thread_count += 1 if past_thread_count == 0: @@ -1197,7 +1195,6 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None ) case ui.ConfirmResponse.CONFIRMED: - # Makes sure the user can reply if they were timed out from creating threads if user.id in delayed_people: del delayed_people[user.id] @@ -1207,7 +1204,6 @@ async def contact(self: Self, ctx: commands.Context, user: discord.User) -> None user=user, source_channel=ctx.channel, ): - await auxiliary.send_confirm_embed( message="Thread successfully created!", channel=ctx.channel ) @@ -1259,7 +1255,6 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None: ) case ui.ConfirmResponse.CONFIRMED: - # Makes sure the user can reply if they were timed out from creating threads if ctx.author in delayed_people: del delayed_people[ctx.author.id] @@ -1269,7 +1264,6 @@ async def selfcontact(self: Self, ctx: commands.Context) -> None: user=ctx.author, source_channel=ctx.channel, ): - await auxiliary.send_confirm_embed( message="Thread successfully created!", channel=ctx.channel ) diff --git a/techsupport_bot/commands/protect.py b/techsupport_bot/commands/protect.py index 23c80ad48..7b909703d 100644 --- a/techsupport_bot/commands/protect.py +++ b/techsupport_bot/commands/protect.py @@ -154,9 +154,7 @@ class Protector(cogs.MatchCog): """ - ALERT_ICON_URL: str = ( - "https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png" - ) + ALERT_ICON_URL: str = "https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png" CLIPBOARD_ICON_URL: str = ( "https://www.iconarchive.com/download/i107916/" "google/noto-emoji-objects/62930-clipboard.512.png" diff --git a/techsupport_bot/commands/urban.py b/techsupport_bot/commands/urban.py index c1d44e762..0243e6237 100644 --- a/techsupport_bot/commands/urban.py +++ b/techsupport_bot/commands/urban.py @@ -44,9 +44,7 @@ class UrbanDictionary(cogs.BaseCog): BASE_URL: str = "http://api.urbandictionary.com/v0/define?term=" SEE_MORE_URL: str = "https://www.urbandictionary.com/define.php?term=" - ICON_URL: str = ( - "https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png" - ) + ICON_URL: str = "https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png" @auxiliary.with_typing @commands.command( diff --git a/techsupport_bot/commands/wolfram.py b/techsupport_bot/commands/wolfram.py index 63d2cd232..685e7241f 100644 --- a/techsupport_bot/commands/wolfram.py +++ b/techsupport_bot/commands/wolfram.py @@ -42,9 +42,7 @@ class Wolfram(cogs.BaseCog): """ API_URL: str = "http://api.wolframalpha.com/v1/result?appid={}&i={}" - ICON_URL: str = ( - "https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png" - ) + ICON_URL: str = "https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png" @auxiliary.with_typing @commands.command( From eba6cd6e3fcfa61d5d99803606ed03b4e6ca88d3 Mon Sep 17 00:00:00 2001 From: ajax146 <31014239+ajax146@users.noreply.github.com> Date: Fri, 2 May 2025 14:48:12 -0400 Subject: [PATCH 3/3] Actually run black --- techsupport_bot/bot.py | 10 +++++----- techsupport_bot/commands/protect.py | 4 +++- techsupport_bot/commands/urban.py | 4 +++- techsupport_bot/commands/wolfram.py | 4 +++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/techsupport_bot/bot.py b/techsupport_bot/bot.py index 3a9384837..ff6e63b20 100644 --- a/techsupport_bot/bot.py +++ b/techsupport_bot/bot.py @@ -71,11 +71,11 @@ def __init__( self.guild_configs: dict[str, munch.Munch] = {} self.extension_configs = munch.DefaultMunch(None) self.extension_states = munch.DefaultMunch(None) - self.command_rate_limit_bans: expiringdict.ExpiringDict[ - str, bool - ] = expiringdict.ExpiringDict( - max_len=5000, - max_age_seconds=600, + self.command_rate_limit_bans: expiringdict.ExpiringDict[str, bool] = ( + expiringdict.ExpiringDict( + max_len=5000, + max_age_seconds=600, + ) ) self.command_execute_history: dict[str, dict[int, bool]] = {} diff --git a/techsupport_bot/commands/protect.py b/techsupport_bot/commands/protect.py index 7b909703d..23c80ad48 100644 --- a/techsupport_bot/commands/protect.py +++ b/techsupport_bot/commands/protect.py @@ -154,7 +154,9 @@ class Protector(cogs.MatchCog): """ - ALERT_ICON_URL: str = "https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png" + ALERT_ICON_URL: str = ( + "https://www.iconarchive.com/download/i76061/martz90/circle-addon2/warning.512.png" + ) CLIPBOARD_ICON_URL: str = ( "https://www.iconarchive.com/download/i107916/" "google/noto-emoji-objects/62930-clipboard.512.png" diff --git a/techsupport_bot/commands/urban.py b/techsupport_bot/commands/urban.py index 0243e6237..c1d44e762 100644 --- a/techsupport_bot/commands/urban.py +++ b/techsupport_bot/commands/urban.py @@ -44,7 +44,9 @@ class UrbanDictionary(cogs.BaseCog): BASE_URL: str = "http://api.urbandictionary.com/v0/define?term=" SEE_MORE_URL: str = "https://www.urbandictionary.com/define.php?term=" - ICON_URL: str = "https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png" + ICON_URL: str = ( + "https://www.iconarchive.com/download/i79897/dtafalonso/ios7-desktop/Dictionary.256.png" + ) @auxiliary.with_typing @commands.command( diff --git a/techsupport_bot/commands/wolfram.py b/techsupport_bot/commands/wolfram.py index 685e7241f..63d2cd232 100644 --- a/techsupport_bot/commands/wolfram.py +++ b/techsupport_bot/commands/wolfram.py @@ -42,7 +42,9 @@ class Wolfram(cogs.BaseCog): """ API_URL: str = "http://api.wolframalpha.com/v1/result?appid={}&i={}" - ICON_URL: str = "https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png" + ICON_URL: str = ( + "https://images.seeklogo.com/logo-png/42/1/mathematica-logo-png_seeklogo-428539.png" + ) @auxiliary.with_typing @commands.command(