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

View file

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