old_contents: from commands.base.command import Command
  
  
  class Help(Command):
      def __init__(self, bot):
          super().__init__(bot)
          self.name = 'help'
          self.help = 'Muestra la lista de comandos y su ayuda'
  
      async def handle(self, message, cmd):
          helplist = []
          for i in self.bot.cmds.keys():
              cmdi = self.bot.cmds[i]
              cmds = ', '.join(cmdi.name) if isinstance(cmdi.name, list) else cmdi.name
              helplist.append("- {}: {}".format(cmds, cmdi.help))
  
          num_memes = len(helplist)
          if num_memes == 0:
              await cmd.answer('No hay comandos disponibles')
              return
  
          if not cmd.is_pm:
              await cmd.answer('{}, te enviaré la info vía PM'.format(message.author.mention))
              return
  
          # Separar lista de ayuda en mensajes con menos de 2000 carácteres
          resp_list = ''
          for helpitem in helplist:
              if len('```{}\n{}```'.format(resp_list, helpitem)) > 2000:
                  await self.bot.send_message(message.author, '```{}```'.format(resp_list))
                  resp_list = ''
              else:
                  resp_list = '{}\n{}'.format(resp_list, helpitem)
  
          # Enviar lista restante
          if resp_list != '':
              await self.bot.send_message(message.author, '```{}```'.format(resp_list))
  
          return
  
new_contents: from commands.base.command import Command
  
  
  class Help(Command):
      def __init__(self, bot):
          super().__init__(bot)
          self.name = 'help'
          self.help = 'Muestra la lista de comandos y su ayuda'
  
      async def handle(self, message, cmd):
          helplist = []
          for i in self.bot.cmds.keys():
              for j in self.bot.cmds[i]:
                  cmds = ', !'.join(j.name) if isinstance(j.name, list) else j.name
                  helplist.append("- !{}: {}".format(cmds, j.help))
  
          num_memes = len(helplist)
          if num_memes == 0:
              await cmd.answer('No hay comandos disponibles')
              return
  
          if not cmd.is_pm:
              await cmd.answer('{}, te enviaré la info vía PM'.format(message.author.mention))
  
          await self.bot.send_message(message.author, 'Estos son mis comandos:')
  
          # Separar lista de ayuda en mensajes con menos de 2000 carácteres
          resp_list = ''
          for helpitem in helplist:
              if len('```{}\n{}```'.format(resp_list, helpitem)) > 2000:
                  await self.bot.send_message(message.author, '```{}```'.format(resp_list))
                  resp_list = ''
              else:
                  resp_list = '{}\n{}'.format(resp_list, helpitem)
  
          # Enviar lista restante
          if resp_list != '':
              await self.bot.send_message(message.author, '```{}```'.format(resp_list))
  
          return
  
subject: Fix !help, aún tiene errores, pero funciona!