original_docstring: Gets info about a prefix.
docstring: Gets info about a prefix.
docstring_tokens: Gets info about a prefix .
code: async def dxcc(ctx, q : str):
      '''Gets info about a prefix.'''
      with ctx.typing():
          noMatch = True
          qMatch = None
          q = q.upper()
          q0 = q
          if q != 'LAST_UPDATED':
              while noMatch:
                  if q in CTY_list:
                      qMatch = q
                      noMatch = False
                  else:
                      q = q[:-1]
                      if len(q) == 0:
                          noMatch = False
                  if qMatch is not None:
                      d = CTY[qMatch]
                      prefix = qMatch
                      entity = d['entity']
                      cqzone = d['cq']
                      ituzone = d['itu']
                      continent = d['continent']
                      tz = d['tz']
                      if tz > 0:
                          tz = '+' + str(tz)
  
                      res = f'''**{prefix}:** {entity}
          *CQ Zone:* {cqzone}
          *ITU Zone:* {ituzone}
          *Continent:* {continent}
          *Time Zone:* UTC{tz}'''
                      clr = green
                  else:
                      res = f'Prefix {q0} not found'
                      clr = red
              embed = discord.Embed(title=f'DXCC Info for {q0}', description=res, colour=clr)
          else:
              updatedDate =  CTY['last_updated'][0:4] + '-'
              updatedDate += CTY['last_updated'][4:6] + '-'
              updatedDate += CTY['last_updated'][6:8]
              res = f'CTY.DAT last updated on {updatedDate}'
              embed = discord.Embed(title=res, colour=blue)
      await ctx.send(embed=embed)
code_tokens: async def dxcc ( ctx , q : str ) : with ctx . typing ( ) : noMatch = True qMatch = None q = q . upper ( ) q0 = q if q != 'LAST_UPDATED' : while noMatch : if q in CTY_list : qMatch = q noMatch = False else : q = q [ : - 1 ] if len ( q ) == 0 : noMatch = False if qMatch is not None : d = CTY [ qMatch ] prefix = qMatch entity = d [ 'entity' ] cqzone = d [ 'cq' ] ituzone = d [ 'itu' ] continent = d [ 'continent' ] tz = d [ 'tz' ] if tz > 0 : tz = '+' + str ( tz ) res = f'''**{prefix}:** {entity}
          *CQ Zone:* {cqzone}
          *ITU Zone:* {ituzone}
          *Continent:* {continent}
          *Time Zone:* UTC{tz}''' clr = green else : res = f'Prefix {q0} not found' clr = red embed = discord . Embed ( title = f'DXCC Info for {q0}' , description = res , colour = clr ) else : updatedDate = CTY [ 'last_updated' ] [ 0 : 4 ] + '-' updatedDate += CTY [ 'last_updated' ] [ 4 : 6 ] + '-' updatedDate += CTY [ 'last_updated' ] [ 6 : 8 ] res = f'CTY.DAT last updated on {updatedDate}' embed = discord . Embed ( title = res , colour = blue ) await ctx . send ( embed = embed )
short_docstring: Gets info about a prefix.
short_docstring_tokens: Gets info about a prefix .
comment: '''Gets info about a prefix.'''