A simple bot command I made with discord.py so you can prevent or "fix" your server from a raid.
you are gonna need a discord bot token
Copy the code Make sure you have python 3 installed
pip install discord
Copy your discord bot token, you can create a bot and get the bot token at https://discord.com/developers/applications
go to the last line of the code and replace client.run(TOKEN)
with client.run("your token here ctrl+v")
or client.run('your token here ctrl+v')
(so it's on a string)
run the code
if more than 1, seperate with ', '
roles: new role, new role
roles: new, new