]> PatchyGit - angel.git/commitdiff
Revert "fix avatar :DDDD"
authorKylie Czar <czar@kalli.st>
Thu, 31 Aug 2023 02:46:56 +0000 (23:46 -0300)
committerKylie Czar <czar@kalli.st>
Thu, 31 Aug 2023 02:46:56 +0000 (23:46 -0300)
This reverts commit 84177383c0cf02b13103c6420514e842ea4752fd.

main.py

diff --git a/main.py b/main.py
index fa44dcb..c486609 100644 (file)
--- a/main.py
+++ b/main.py
@@ -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"):