Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	
		HYBRID
		
	commited on
		
		
					Commit 
							
							·
						
						0ce6c05
	
1
								Parent(s):
							
							be75614
								
fix chatbot ai (#450)
Browse files- pyUltroid/fns/tools.py +3 -3
    	
        pyUltroid/fns/tools.py
    CHANGED
    
    | @@ -438,16 +438,16 @@ async def get_google_images(query): | |
| 438 | 
             
                return google_images
         | 
| 439 |  | 
| 440 |  | 
| 441 | 
            -
            # Thanks https://t.me/ | 
| 442 |  | 
| 443 |  | 
| 444 | 
             
            async def get_chatbot_reply(message):
         | 
| 445 | 
            -
                chatbot_base = "https:// | 
| 446 | 
             
                req_link = chatbot_base.format(
         | 
| 447 | 
             
                    message,
         | 
| 448 | 
             
                )
         | 
| 449 | 
             
                try:
         | 
| 450 | 
            -
                    return (await async_searcher(req_link, re_json=True)).get(" | 
| 451 | 
             
                except Exception:
         | 
| 452 | 
             
                    LOGS.info(f"**ERROR:**`{format_exc()}`")
         | 
| 453 |  | 
|  | |
| 438 | 
             
                return google_images
         | 
| 439 |  | 
| 440 |  | 
| 441 | 
            +
            # Thanks https://t.me/ImSafone for ChatBotApi
         | 
| 442 |  | 
| 443 |  | 
| 444 | 
             
            async def get_chatbot_reply(message):
         | 
| 445 | 
            +
                chatbot_base = "https://api.safone.dev/chatbot?query={}"
         | 
| 446 | 
             
                req_link = chatbot_base.format(
         | 
| 447 | 
             
                    message,
         | 
| 448 | 
             
                )
         | 
| 449 | 
             
                try:
         | 
| 450 | 
            +
                    return (await async_searcher(req_link, re_json=True)).get("response")
         | 
| 451 | 
             
                except Exception:
         | 
| 452 | 
             
                    LOGS.info(f"**ERROR:**`{format_exc()}`")
         | 
| 453 |  |