original_docstring: Get phonetics for a word or phrase.
docstring: Get phonetics for a word or phrase.
docstring_tokens: Get phonetics for a word or phrase .
code: async def phonetics(ctx, *, msg : str):
      '''Get phonetics for a word or phrase.'''
      with ctx.typing():
          result = ''
          for char in msg.lower():
              if char.isalpha():
                  w = [word for word in WORDS if (word[0] == char)]
                  result += random.choice(w)
              else:
                  result += char
              result += ' '
          embed = discord.Embed(title=f'Phonetics for {msg}', description=result.title(), colour=green)
      await ctx.send(embed=embed)
code_tokens: async def phonetics ( ctx , * , msg : str ) : with ctx . typing ( ) : result = '' for char in msg . lower ( ) : if char . isalpha ( ) : w = [ word for word in WORDS if ( word [ 0 ] == char ) ] result += random . choice ( w ) else : result += char result += ' ' embed = discord . Embed ( title = f'Phonetics for {msg}' , description = result . title ( ) , colour = green ) await ctx . send ( embed = embed )
short_docstring: Get phonetics for a word or phrase.
short_docstring_tokens: Get phonetics for a word or phrase .
comment: '''Get phonetics for a word or phrase.'''