flip the stupid thingy

This commit is contained in:
Nexus 2023-09-09 23:49:10 +01:00
parent a7fe174ccb
commit a587cd741c
2 changed files with 6 additions and 8 deletions

View file

@ -990,16 +990,11 @@ class OtherCog(commands.Cog):
# Assume is timestamp
timestamp = round(float(parsed_qs['t'][0]))
end_timestamp = None
if len(parsed_qs["t"]) == 2:
if len(parsed_qs["t"]) >= 2:
end_timestamp = round(float(parsed_qs['t'][1]))
if end_timestamp < timestamp:
return await ctx.edit(
embed=discord.Embed(
title="Error",
description="End timestamp must be greater than start timestamp.",
colour=discord.Colour.red()
),
delete_after=30
end_timestamp, timestamp = reversed(
(end_timestamp, timestamp)
)
_end = "to %s" % end_timestamp if len(parsed_qs["t"]) == 2 else "onward"
embed = discord.Embed(

View file

@ -1,3 +1,6 @@
[pycodestyle]
max-line-length = 120
ignore = W293,W291
[flake8]
max-line-length = 120