Dm all users that have a specific role in a discord server
- Download this repo
- Install discord.py :
pip3 install discord.py
- Change the variables in main.py, change to your token, your message, and the role you want to dm
- Enable all intents in the discord dev panel:
- Run the bot with
python3 main.py
orpython main.py
- In a channel the bot can see, send the message
>msg_role
, this will start the dm (will only start if you have administrator perms for that server) - Look in the console for its progress
- Done :)