
    hj*                         S r SSKrSSKJr  SSKJr  SSKJrJr  \" SSS	9S
 5       r	\" SS9S 5       r	\" SS9S 5       r
g)u   
✘ Commands Available -

• `{i}meaning <word>`
    Get the meaning of the word.

• `{i}synonym <word>`
    Get all synonyms.

• `{i}antonym <word>`
    Get all antonyms.

• `{i}ud <word>`
    Fetch word defenition from urbandictionary.
    N)get_synonyms_or_antonyms)async_searcher   )
get_stringultroid_cmdzmeaning( (.*)|$)T)patternmanagerc                 n  #    U R                   R                  S5      R                  5       nU(       d"  U R                  [	        S5      5      I S h  vN $ SU 3n[        USS9I S h  vN n U R                  SUS    S35      I S h  vN $  N< N' N! [        [        4 a     Of = fUS   S	   S   S
   S   nUR                  S5      (       a  US   OSn[	        S5      R                  XS   U5      nUR                  S5      (       a3  US[	        S5       S3SR                  S US   5       5      S S S S -   -  nUR                  S5      (       a3  US[	        S5       S3SR                  S US   5       5      S S S S -   -  n[        U5      S:  a  [        R                  " [        R                  U5      5       nU S3Ul        U R#                  USSU 3S9I S h  vN    U R%                  5       I S h  vN    S S S 5        g ! , (       d  f       g = fU R                  U5      I S h  vN    g 7f)Nr   wrd_4z0https://api.dictionaryapi.dev/api/v2/entries/en/T)re_json**titler   meaningsdefinitionsexampleNonewrd_1
definitionsynonymsu   

• **wrd_5z :** c              3   .   #    U  H  nS U S3v   M     g7f ,N .0as     "/root/TeamUltroid/plugins/words.py	<genexpr>mean.<locals>.<genexpr>/        9(81!Ah(8   
   antonymsz

**wrd_6c              3   .   #    U  H  nS U S3v   M     g7fr   r   r   s     r    r!   r"   4   r#   r$      z-meanings.txtzMeanings of )fileforce_documentcaption)pattern_matchgroupstripeorr   r   KeyError	TypeErrorgetformatjoinlenioBytesIOstrencodenamereplydelete)eventwrdurloutdefiextextfles           r    meanrG      s-    



#
#A
&
,
,
.CYYz'2333<SE
BCsD1
1CYYCL>4555	 4
15i  q6*a /2D HHY//iVBg%%c+=rBDxx
G,-T2gg9Z(899#2>sCD	
 xx
Z().gg9Z(899#2>sCD	
 4y4ZZ

4()Sm,CH++#&se,    
 ,,.   *)) iios   AH5BH5'B(H5-B B	B H5H5B B&#H5%B&&DH5?"H	!G$"H	:G=;H	 	H5	
HH5.H1/H5z(syno|anto)nym)r   c           
        #    U R                   R                  S5      S-   n U R                  R                  SS9S   n [        X!5      I S h  vN n[        US:X  a  SOS5      R                  U5      n[        USS9 H  u  pVUS	U S
U S3-  nM     [        U5      S:  a  [        R                  " [        R                  U5      5       nU SU S3Ul        U R                   R#                  U R$                  USSU SU 3U R&                  S9I S h  vN   U R)                  5       I S h  vN   S S S 5        g U R                  U5      I S h  vN   g ! [         a    U R                  S5      I S h  vN  s $ f = f GN0 Nl NV! , (       d  f       g = f NG! [*         aD  nU R                  [        US:X  a  SOS5      R                  U5      5      I S h  vN     S nAg S nAff = f7f)Nr   nyms)maxsplitzGive Something to search..r   wrd_2wrd_3)startr   z.** `z`
r*   -z.txtTFz of )r,   allow_cacher-   reply_towrd_7wrd_8)r.   r/   rE   split
IndexErrorr1   r   r   r5   	enumerater7   r8   r9   r:   r;   r<   client	send_filechat_idreply_to_msg_idr>   	Exception)	r?   taskr@   okxcirF   es	            r    rG   rG   C   s     $$Q'&0D=jj*1-
+C66$*"4w'BII#Nb*DA2aSaS$$A +q6D=CJJqM*c!U!D6.ll,,MM#' %#fD."22 -    lln$$ +* ))A,)  =YY;<<<<= 7 % +*  
ii$*"4w'BII!L
 	
 	

s   G(E F E=A=F AFF F+F,F0F 8G(9F FF G(E:1E42E:7G(9E::G(=F  FF
FF G(F 
G%!4G GG G( G%%G(zud (.*)c                   #    U R                   R                  S5      R                  5       nU(       d"  U R                  [	        S5      5      I S h  vN $ [        SSU0SS9I S h  vN n US   S   nU R                  [	        S
5      R                  US   US   US   5      5      I S h  vN   g  N_ NL! [         a5    U R                  [	        S	5      R                  U5      5      I S h  vN  s $ f = f NK7f)Nr   	autopic_1z(http://api.urbandictionary.com/v0/definetermT)paramsr   listr   	autopic_2r   wordr   r   )r.   r/   r0   r1   r   r   rT   r5   )r?   rg   rB   s      r    _rh   e   s     $$Q'--/DYYz+67772FD>SW CE&k!n ))7""3v;L0A3y>R   8
  EYYz+6==dCDDDDEs`   AC8B0C8%B2&C8+B4 37C8*C6+C82C846C3*C-+C30C82C33C8)__doc__r8   pyUltroid.fns.miscr   pyUltroid.fns.toolsr   r   r   r   rG   rh   r       r    <module>rm      sj    
 7 . % '6! 7!H 

> Y  rl   