old_contents: #!/usr/bin/env python3
  
  import discord
  import asyncio
  import sys
  sys.path.append("..")
  import jauxiliar as jaux
  import joseerror as je
  import joseconfig as jconfig
  
  import wolframalpha
  wac = wolframalpha.Client(jconfig.WOLFRAMALPHA_APP_ID)
  
  class JoseMath(jaux.Auxiliar):
      def __init__(self, cl):
          jaux.Auxiliar.__init__(self, cl)
          self.wac = wac
  
      async def ext_load(self):
          return True, ''
  
      async def ext_unload(self):
          return True, ''
  
      async def c_wolframalpha(self, message, args):
          '''`!wolframalpha terms` - make a request to Wolfram|Alpha'''
          if len(args) < 2:
              await self.say(self.c_wolframalpha.__doc__)
              return
  
          term_to_wolfram = ' '.join(args[1:])
  
          res = self.wac.query(term_to_wolfram)
          if len(res.results) < 1:
              await self.say("Sem resposeta")
              return
          else:
              response_wolfram = next(res.results).text
              await self.say(self.codeblock("", response_wolfram))
  
new_contents: #!/usr/bin/env python3
  
  import discord
  import asyncio
  import sys
  sys.path.append("..")
  import jauxiliar as jaux
  import joseerror as je
  import joseconfig as jconfig
  
  import wolframalpha
  wac = wolframalpha.Client(jconfig.WOLFRAMALPHA_APP_ID)
  
  class JoseMath(jaux.Auxiliar):
      def __init__(self, cl):
          jaux.Auxiliar.__init__(self, cl)
          self.wac = wac
  
      async def ext_load(self):
          return True, ''
  
      async def ext_unload(self):
          return True, ''
  
      async def c_wolframalpha(self, message, args):
          '''`!wolframalpha terms` - make a request to Wolfram|Alpha'''
          if len(args) < 2:
              await self.say(self.c_wolframalpha.__doc__)
              return
  
          term_to_wolfram = ' '.join(args[1:])
  
          res = self.wac.query(term_to_wolfram)
          if getattr(res, 'results', False):
              response_wolfram = next(res.results).text
              await self.say(self.codeblock("", response_wolfram))
          else:
              await self.say("Sem resposeta")
              return
  
subject: use getattr