Send welcome message using custom commands bot
How to send welcome message to a user when he joins server
Md Shahriyar Alam
2 years ago
To send welcome message to a user using custom commands bot, we have to create and Event Handler.
Go to dashboard and click Events, Then click Create button
Then give the event any name and select MEMBER_JOIN on Trigger
Then write this code in Pre
py
send_dm(user, f"Welcome to {server.name}")If you also want to give a role on memebr join, Additionally use this code
py
send_dm(user, f"Welcome to {server.name}")
add_roles(user, role_id)
# Put the role id you want to giveCustom commsnds bot makes it super simple or non-coder users to be able to define their own logic into their commands
Loading comments…
Need help?
Have a question, a suggestion, or stuck on something? Reach out — we're happy to help.