forked from blizzthewolf/SeaCogs
fix(bible): fixed keyerror in get_version
This commit is contained in:
parent
3813d3de02
commit
3dce020a65
1 changed files with 5 additions and 3 deletions
|
@ -66,9 +66,9 @@ class Bible(commands.Cog):
|
||||||
raise bible.errors.ServiceUnavailable()
|
raise bible.errors.ServiceUnavailable()
|
||||||
return Version(
|
return Version(
|
||||||
data["data"]["abbreviation"],
|
data["data"]["abbreviation"],
|
||||||
data["data"]["language"],
|
data["data"]["language"]["name"],
|
||||||
data["data"]["abbreviationLocal"],
|
data["data"]["abbreviationLocal"],
|
||||||
data["data"]["languageLocal"],
|
data["data"]["language"]["nameLocal"],
|
||||||
data["data"]["copyright"],
|
data["data"]["copyright"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -278,7 +278,9 @@ class Bible(commands.Cog):
|
||||||
description=passage["content"].replace("¶ ", ""),
|
description=passage["content"].replace("¶ ", ""),
|
||||||
color=await self.bot.get_embed_color(ctx.channel),
|
color=await self.bot.get_embed_color(ctx.channel),
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"{ctx.prefix}bible random - Powered by API.Bible - {version.abbreviationLocal}")
|
embed.set_footer(
|
||||||
|
text=f"{ctx.prefix}bible random - Powered by API.Bible - {version.abbreviationLocal}"
|
||||||
|
)
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
else:
|
else:
|
||||||
await ctx.send(f"## {passage['reference']}\n{passage['content']}")
|
await ctx.send(f"## {passage['reference']}\n{passage['content']}")
|
||||||
|
|
Loading…
Reference in a new issue