Skip to content

Commit

Permalink
Remove some obvious variable type definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
notsniped committed Apr 29, 2024
1 parent f6aa64b commit e5a478d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ async def on_message(ctx):
async def on_message_delete(message):
if not message.author.bot:
generate_data_entries(message.guild.id, message.channel.id)

dts = time.time()

# Perform formatting for new Discord usernames.
author_name: str = format_username(message.author.name)
author_name = format_username(message.author.name)

# Save the deleted message content to database
snipe_data[str(message.guild.id)][str(message.channel.id)]["latest"] = {
Expand Down Expand Up @@ -148,11 +147,10 @@ async def on_message_delete(message):
async def on_message_edit(message_before, message_after):
if not message_after.author.bot:
generate_data_entries(message_before.guild.id, message_before.channel.id)

dts = time.time()

# Perform formatting for new Discord usernames.
author_name: str = format_username(message_before.author.name)
author_name = format_username(message_before.author.name)

# Save the edited message content to database
editsnipe_data[str(message_before.guild.id)][str(message_before.channel.id)]["latest"] = {
Expand Down

0 comments on commit e5a478d

Please sign in to comment.