From a587cd741ceda2d9450c0ad5ab66a61e84e84b28 Mon Sep 17 00:00:00 2001 From: nex Date: Sat, 9 Sep 2023 23:49:10 +0100 Subject: [PATCH] flip the stupid thingy --- cogs/other.py | 11 +++-------- setup.cfg | 3 +++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 9ffc17a..add4dfd 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -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( diff --git a/setup.cfg b/setup.cfg index ffb3a1a..0d74832 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,6 @@ [pycodestyle] max-line-length = 120 ignore = W293,W291 + +[flake8] +max-line-length = 120