Updated specific locations to be searchable, take a look at Las Vegas as an example.

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

7
I'm trying to ban everyone with a certain word in their name
Post Flair (click to view more posts with a particular flair)
Post Body

class MyClient(discord.Client):

async def on_ready(self):

print('Logged in as', self.user)

#checks msges

async def on_message(self, message):

guild = client.get_guild(878268979376980079)

for member in list(guild.members):

id = member.id

if id == [the bots ID]:

print("self identified")

else:

user = client.fetch_user(id)

nick = member.display_name

if "[word]" in casefold(user) or "[word]" in casefold(nick):

await member.ban(reason="DOOM stan")

channel1 = [channel to send announcement to]

message.channel1.send(nick " has been banned")

It just prints "self identified" and doesn't ban anyone. I think it's stopping checking users when it finds itself, as its one of the top in the server list. Any ways to fix this?

Author
Account Strength
100%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
204,722
Link Karma
159,606
Comment Karma
39,601
Profile updated: 1 week ago
Posts updated: 11 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago