1
0
mirror of https://github.com/osmarks/autobotrobot synced 2024-10-30 05:26:17 +00:00

fix untested change to ++meme

This commit is contained in:
osmarks 2024-08-08 19:59:21 +01:00
parent c6a9379a21
commit 2872c34951

View File

@ -121,11 +121,11 @@ class Sentience(commands.Cog):
"k": 20
}) as res:
results = await res.json()
results = results[:(4 if search_many else 1)]
mat = results["matches"][:(4 if search_many else 1)]
if raw_memes:
o_files = [ discord.File(Path(util.config["memetics"]["memes_local"]) / Path(util.config["memetics"]["meme_base"]) / m[1]) for m in results["matches"] ]
o_files = [ discord.File(Path(util.config["memetics"]["memes_local"]) / Path(util.config["memetics"]["meme_base"]) / m[1]) for m in mat ]
else:
o_files = [ discord.File(Path(util.config["memetics"]["memes_local"]) / util.meme_thumbnail(results, m)) for m in results["matches"] ]
o_files = [ discord.File(Path(util.config["memetics"]["memes_local"]) / util.meme_thumbnail(results, m)) for m in mat ]
await ctx.send(files=o_files)
def setup(bot):