mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 10:03:40 +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
|
# 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(
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue