Revert "fix avatar :DDDD"

This reverts commit 84177383c0.
This commit is contained in:
Czar 2023-08-30 23:46:56 -03:00
commit d84592367a
Signed by: czar
GPG key ID: 2DBA9558E9277C37

View file

@ -277,7 +277,7 @@ class AngelBot(ClientXMPP):
print(e)
async def update_info(self):
"""Update the bot info."""
"""Update the bot info."""
with open("angel.png", "rb") as avatar_file:
avatar = avatar_file.read()
@ -310,6 +310,8 @@ class AngelBot(ClientXMPP):
)
)
asyncio.gather(self.plugin["xep_0084"].publish_avatar_metadata([info]))
async def message(self, msg):
"""Process a message."""
if msg["type"] in ("chat", "normal"):