Browse Source

Fix update checking

master
elliot 3 years ago
parent
commit
3ecf775b39
  1. 2
      cogs/timings.py

2
cogs/timings.py

@ -83,7 +83,7 @@ class Timings(commands.Cog):
if version_result: if version_result:
if compare_versions(version_result, TIMINGS_CHECK["version"]) == -1: if compare_versions(version_result, TIMINGS_CHECK["version"]) == -1:
version = version.replace("git-", "").replace("MC: ", "") version = version.replace("git-", "").replace("MC: ", "")
embed_var.add_field(name="❌ Outdated")
embed_var.add_field(name="❌ Outdated",value=f"You are using `{version}`, you should update to `{TIMINGS_CHECK["version"]}`.")
else: else:
embed_var.add_field(name="❗ Value Error", embed_var.add_field(name="❗ Value Error",
value=f'Could not locate version from `{version}`') value=f'Could not locate version from `{version}`')

Loading…
Cancel
Save