Horje
how to make a discord moderation bot python Code Example
how to make a discord moderation bot python
how do i make it so it takes capitals like FUCK it wont delete but if i add that to word list things like fUck wont delete cus capital U
how to make a discord moderation bot python
#You can solve your problem like this:

@client.event
async def on_message(message):
	if "your word" in str.lower(message.content):
    	await message.delete()

#This programm makes the message into all lowercase letters. 
#just be carefull, your word that you want to be deleted has to be written in all lowercase letters too.

#if you want to look if an element is in a list do:
bad_words = ["test", "bad", "word"]

@client.event
async def on_message(message):
	for word in bad_words:
		if word in str.lower(message.content):
    		await message.delete()




Python

Related
chrome profiles user open with python Code Example chrome profiles user open with python Code Example
integer in python Code Example integer in python Code Example
pyqt5 cursor starting on a widget Code Example pyqt5 cursor starting on a widget Code Example
how to set default value in many2one Code Example how to set default value in many2one Code Example
sss Code Example sss Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7