mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 01:53:39 +01:00
flip the stupid thingy
This commit is contained in:
parent
a7fe174ccb
commit
a587cd741c
2 changed files with 6 additions and 8 deletions
|
@ -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(
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
[pycodestyle]
|
||||
max-line-length = 120
|
||||
ignore = W293,W291
|
||||
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
|
|
Loading…
Reference in a new issue