disable seafile image preview
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										15
									
								
								bot.py
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								bot.py
									
									
									
									
									
								
							@@ -56,13 +56,14 @@ class CustomClient(discord.Client):
 | 
				
			|||||||
                        f"https://stream.purser.it/{stripped}/?provider=seafile&raw=true",
 | 
					                        f"https://stream.purser.it/{stripped}/?provider=seafile&raw=true",
 | 
				
			||||||
                        allow_redirects=True,
 | 
					                        allow_redirects=True,
 | 
				
			||||||
                    )
 | 
					                    )
 | 
				
			||||||
                    raw = str(
 | 
					                    if (ctype := resp.headers.get("content-type")) and "image" in ctype:
 | 
				
			||||||
                        (ctype := resp.headers.get("content-type")) and "image" in ctype
 | 
					                        await message.reply(
 | 
				
			||||||
                    ).lower()
 | 
					                            content=f"<https://stream.purser.it/{stripped}/?provider=seafile&raw=true>"
 | 
				
			||||||
 | 
					                        )
 | 
				
			||||||
                    await message.reply(
 | 
					                    else:
 | 
				
			||||||
                        content=f"https://stream.purser.it/{stripped}/?provider=seafile&raw={raw}"
 | 
					                        await message.reply(
 | 
				
			||||||
                    )
 | 
					                            content=f"https://stream.purser.it/{stripped}/?provider=seafile&raw=false"
 | 
				
			||||||
 | 
					                        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            elif "twitch" in url.hostname:
 | 
					            elif "twitch" in url.hostname:
 | 
				
			||||||
                stripped = url.path.strip("/")
 | 
					                stripped = url.path.strip("/")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user