Browse Source

Timings - Fix timings link typos

master
DrBot7 4 years ago
parent
commit
2fa47180fb
  1. 2
      cogs/timings_public.py

2
cogs/timings_public.py

@ -28,6 +28,8 @@ class Timings(commands.Cog):
embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url) embed_var.set_footer(text="Requested by " + message.author.name, icon_url=message.author.avatar_url)
for word in words: for word in words:
if word.startswith("https://timings.") and "/d=" in word:
word.replace("/d=", "/?id=")
if word.startswith("https://timings.") and "/?id=" in word: if word.startswith("https://timings.") and "/?id=" in word:
timings_url = word timings_url = word
embed_var.url = timings_url embed_var.url = timings_url

Loading…
Cancel
Save