async def on_member_join(member):
if cursor.execute(f"SELECT id FROM users WHERE id = {member.id}").fetchone() is None:
cursor.execute(f"INSERT INTO users VALUES ('{member}', {member.id}, 0, 0, 1)")
connection.commit()
else:
pass
import re
pattern = ''.join(rf'\b{word}\b|' for word in cms)[:-1]
pattern = f'({pattern})'
def repl(match):
return match.group(1).upper()
bs = re.sub(pattern, repl, Bs)
print(bs)