瀏覽代碼

debugging

BaumSplitter41 1 周之前
父節點
當前提交
fb5ca6fa20
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      VPD_BOT/cogs/reaction_roles.py

+ 8 - 6
VPD_BOT/cogs/reaction_roles.py

@@ -119,9 +119,10 @@ class reactionroles(commands.Cog):
         if emojis is None:
             print("Emojis are not set in config.")
             return
-        #if payload.emoji.id not in emojis:
-        #    print(f"Emoji {payload.emoji} is not in the list of valid emojis.")
-        #    return
+        for emoji in emojis:
+            if payload.emoji.id == emoji:
+                print(f"Emoji {payload.emoji} is in the list of valid emojis.")
+                break
         role_ids = self._get_roles()
         if role_ids is None:
             print("Roles are not set in config.")
@@ -164,9 +165,10 @@ class reactionroles(commands.Cog):
         if emojis is None:
             print("Emojis are not set in config.")
             return
-        #if payload.emoji.id not in emojis:
-        #    print(f"Emoji {payload.emoji} is not in the list of valid emojis.")
-        #    return
+        for emoji in emojis:
+            if payload.emoji.id == emoji:
+                print(f"Emoji {payload.emoji} is in the list of valid emojis.")
+                break
         role_ids = self._get_roles()
         if role_ids is None:
             print("Roles are not set in config.")