Browse Source

Timings - Replies

master
DrBot7 4 years ago
committed by GitHub
parent
commit
1916b7c44d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      cogs/timings.py

10
cogs/timings.py

@ -24,7 +24,7 @@ class Timings(commands.Cog):
embed_var.add_field(name="❌ Spigot", embed_var.add_field(name="❌ Spigot",
value="Upgrade to [Purpur](https://ci.pl3x.net/job/Purpur/).", value="Upgrade to [Purpur](https://ci.pl3x.net/job/Purpur/).",
inline=True) inline=True)
await message.channel.send(embed=embed_var)
await message.reply(embed=embed_var)
return return
if timings_url == "": if timings_url == "":
return return
@ -41,7 +41,7 @@ class Timings(commands.Cog):
embed_var.add_field(name="❌ Invalid report", embed_var.add_field(name="❌ Invalid report",
value="Create a new timings report.", value="Create a new timings report.",
inline=True) inline=True)
await message.channel.send(embed=embed_var)
await message.reply(embed=embed_var)
return return
embed_var = discord.Embed(title="Timings Analysis", color=0x55ffff) embed_var = discord.Embed(title="Timings Analysis", color=0x55ffff)
@ -1050,13 +1050,13 @@ class Timings(commands.Cog):
embed_var.add_field(name="❌ Invalid Configuration", embed_var.add_field(name="❌ Invalid Configuration",
value="At least one of your configuration files had an invalid data type.", value="At least one of your configuration files had an invalid data type.",
inline=True) inline=True)
await message.channel.send(embed=embed_var)
await message.reply(embed=embed_var)
return return
if len(embed_var.fields) == 0: if len(embed_var.fields) == 0:
embed_var.add_field(name="✅ All good", embed_var.add_field(name="✅ All good",
value="Analyzed with no issues") value="Analyzed with no issues")
await message.channel.send(embed=embed_var)
await message.reply(embed=embed_var)
return return
issue_count = len(embed_var.fields) issue_count = len(embed_var.fields)
@ -1066,7 +1066,7 @@ class Timings(commands.Cog):
embed_var.description = "Showing " + str(issue_count) + " of " + str(issue_count) + " recommendations." embed_var.description = "Showing " + str(issue_count) + " of " + str(issue_count) + " recommendations."
if issue_count > 0: if issue_count > 0:
embed_var.description = embed_var.description + "\n||" + str(unchecked) + " missing configuration optimizations due to server version.||" embed_var.description = embed_var.description + "\n||" + str(unchecked) + " missing configuration optimizations due to server version.||"
await message.channel.send(embed=embed_var)
await message.reply(embed=embed_var)
def setup(bot): def setup(bot):

Loading…
Cancel
Save