Explorar el Código

a little refactor for more readability

tenessy0570 hace 3 años
padre
commit
5d1fc4c1f9
Se han modificado 2 ficheros con 8 adiciones y 9 borrados
  1. 8 8
      __init__.py
  2. 0 1
      utils.py

+ 8 - 8
__init__.py

@@ -39,14 +39,14 @@ class MyClient(discord.Client):
 
     async def on_ready(self):
         await on_ready_print(self)
-        _channel = None
-
-        for channel in self.get_all_channels():
-            if channel.name != 'bot':
-                _channel = channel
-
-        _roles_for_send = await get_roles_for_send(self)
-        await create_message_and_add_reactions(self, _channel, _roles_for_send)
+        # _channel = None
+        #
+        # for channel in self.get_all_channels():
+        #     if channel.name != 'bot':
+        #         _channel = channel
+        #
+        # _roles_for_send = await get_roles_for_send(self)
+        # await create_message_and_add_reactions(self, _channel, _roles_for_send)
 
     @author_is_not_bot
     @notify_if_wrong_command

+ 0 - 1
utils.py

@@ -82,7 +82,6 @@ async def get_message_by_id(channel, message_id):
 async def _get_reaction_info(self, payload):
     guild = self.get_guild(payload.guild_id)
     member = guild.get_member(payload.user_id)
-    print(member.name)
     return payload.emoji, member, payload.message_id