From fbba7aae5229349d8d2380daa3c87712555cfa41 Mon Sep 17 00:00:00 2001 From: BFlow Date: Tue, 4 May 2021 21:57:09 +0200 Subject: [PATCH] command schizo fix avatar bot --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 0d7e785..c5a15b0 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -430,7 +430,7 @@ class Mybot(commands.Cog): await self.bot.user.edit(username="Error 404 name not found!") await ctx.channel.send("Liste des noms = %s" % list_name) img = open(here + "/ressources/avatar_bot/%s.jpg" % name, 'rb') - await self.bot.user.edit(avatar=img) + await self.bot.user.edit(avatar=img.read()) await self.joke(ctx, name) @commands.command(help='slap this ass')