ignore NSFW channels
This commit is contained in:
		
							parent
							
								
									4d01c9c528
								
							
						
					
					
						commit
						522eb76d05
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -49,6 +49,9 @@ async def on_message(message):
 | 
			
		|||
    if message.author == client.user:
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    if message.channel.is_nsfw():
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
    if RUDE_WORDS_REGEX.search(message.content):
 | 
			
		||||
        await message.channel.send('Your Club Penguin account has been deactivated for inappropriate language.')
 | 
			
		||||
        oldnick = message.author.nick
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue