Browse Source

Timings - Work with nonPebblehost

master
DrBot7 4 years ago
parent
commit
817e6a1b70
  1. 7
      cogs/timings_public.py

7
cogs/timings_public.py

@ -30,9 +30,9 @@ class Timings(commands.Cog):
embed_var.set_footer(text=f"Requested by {message.author.name}#{message.author.discriminator}", icon_url=message.author.avatar_url) embed_var.set_footer(text=f"Requested by {message.author.name}#{message.author.discriminator}", icon_url=message.author.avatar_url)
for word in words: for word in words:
if word.startswith("https://timin.") and "/d=" in word:
if word.startswith("https://timin") and "/d=" in word:
word.replace("/d=", "/?id=") word.replace("/d=", "/?id=")
if word.startswith("https://timin.") and "/?id=" in word:
if word.startswith("https://timin") and "/?id=" in word:
timings_url = word timings_url = word
embed_var.url = timings_url embed_var.url = timings_url
break break
@ -211,7 +211,8 @@ class Timings(commands.Cog):
try: try:
for plugin in plugins: for plugin in plugins:
if "songoda" in request["timingsMaster"]["plugins"][plugin]["authors"].casefold():
authors = request["timingsMaster"]["plugins"][plugin]["authors"]
if authors is not None and "songoda" in request["timingsMaster"]["plugins"][plugin]["authors"].casefold():
if plugin == "EpicHeads": if plugin == "EpicHeads":
embed_var.add_field(name="❌ EpicHeads", embed_var.add_field(name="❌ EpicHeads",
value="This plugin was made by Songoda. Songoda resources are poorly developed and often cause problems. You should find an alternative such as [HeadsPlus](https://spigotmc.org/resources/headsplus-»-1-8-1-16-4.40265/) or [HeadDatabase](https://www.spigotmc.org/resources/head-database.14280/).") value="This plugin was made by Songoda. Songoda resources are poorly developed and often cause problems. You should find an alternative such as [HeadsPlus](https://spigotmc.org/resources/headsplus-»-1-8-1-16-4.40265/) or [HeadDatabase](https://www.spigotmc.org/resources/head-database.14280/).")

Loading…
Cancel
Save