original_docstring: Converts international morse code to ASCII.
docstring: Converts international morse code to ASCII.
docstring_tokens: Converts international morse code to ASCII .
code: async def unmorse(ctx, *, msg : str):
      '''Converts international morse code to ASCII.'''
      with ctx.typing():
          result = ''
          msg0 = msg
          msg = msg.split('/')
          msg = [m.split() for m in msg]
          for word in msg:
              for char in word:
                  try:
                      result += morse2ascii[char]
                  except:
                      result += '<?>'
              result += ' '
          embed = discord.Embed(title=f'ASCII for {msg0}', description=result, colour=green)
      await ctx.send(embed=embed)
code_tokens: async def unmorse ( ctx , * , msg : str ) : with ctx . typing ( ) : result = '' msg0 = msg msg = msg . split ( '/' ) msg = [ m . split ( ) for m in msg ] for word in msg : for char in word : try : result += morse2ascii [ char ] except : result += '<?>' result += ' ' embed = discord . Embed ( title = f'ASCII for {msg0}' , description = result , colour = green ) await ctx . send ( embed = embed )
short_docstring: Converts international morse code to ASCII.
short_docstring_tokens: Converts international morse code to ASCII .
comment: '''Converts international morse code to ASCII.'''