mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Change quote syntax
This commit is contained in:
parent
65deb9b4d4
commit
e2459f0d6c
3 changed files with 3 additions and 3 deletions
|
@ -104,7 +104,7 @@ async def _reverse(context, urls, *, selector=None):
|
||||||
url=match["url"],
|
url=match["url"],
|
||||||
color=context.get_guild().get_my_member().get_top_role().color if context.get_guild() else "#1a1a1a",
|
color=context.get_guild().get_my_member().get_top_role().color if context.get_guild() else "#1a1a1a",
|
||||||
)
|
)
|
||||||
.set_author(name=f'{match["similarity"]}% Match')
|
.set_author(name=f"{match['similarity']}% Match")
|
||||||
.set_image(match["thumbnail"])
|
.set_image(match["thumbnail"])
|
||||||
.set_footer(match["source"])
|
.set_footer(match["source"])
|
||||||
)
|
)
|
||||||
|
|
|
@ -20,7 +20,7 @@ async def master(context):
|
||||||
|
|
||||||
extensions = [os.path.splitext(extension)[1][1:] for extension in context.bot.extensions]
|
extensions = [os.path.splitext(extension)[1][1:] for extension in context.bot.extensions]
|
||||||
await context.respond(
|
await context.respond(
|
||||||
f'**Reloaded `{"`, `".join(extensions[:-1])}`, and `{extensions[-1]}` for you, master.**'
|
f"**Reloaded `{'`, `'.join(extensions[:-1])}`, and `{extensions[-1]}` for you, master.**"
|
||||||
)
|
)
|
||||||
case "sleep":
|
case "sleep":
|
||||||
await context.respond("**Goodnight, master.**")
|
await context.respond("**Goodnight, master.**")
|
||||||
|
|
|
@ -48,7 +48,7 @@ async def _kheina(url):
|
||||||
return {
|
return {
|
||||||
"url": content["results"][0]["sources"][0]["source"],
|
"url": content["results"][0]["sources"][0]["source"],
|
||||||
"artist": content["results"][0]["sources"][0]["artist"] or "Unknown",
|
"artist": content["results"][0]["sources"][0]["artist"] or "Unknown",
|
||||||
"thumbnail": f'https://cdn.kheina.com/file/kheinacom/{content["results"][0]["sources"][0]["sha1"]}.jpg',
|
"thumbnail": f"https://cdn.kheina.com/file/kheinacom/{content['results'][0]['sources'][0]['sha1']}.jpg",
|
||||||
"similarity": round(content["results"][0]["similarity"]),
|
"similarity": round(content["results"][0]["similarity"]),
|
||||||
"source": tldextract.extract(content["results"][0]["sources"][0]["source"]).domain,
|
"source": tldextract.extract(content["results"][0]["sources"][0]["source"]).domain,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue