Send welcome message using slash commands bot

Md Shahriyar Alam

27-05-2023

To send welcome message to a user using slash 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

send_dm(user, f"Welcome to {server.name}")

If you also want to give a role on memebr join, Additionally use this code

send_dm(user, f"Welcome to {server.name}")
add_roles(user, role_id)
# Put the role id you want to give

Need help?

If you still need any kind of help, have a suggestion for us or having a question in mind? Feel free to reach us out.

Join support server
logoCustom Slash Commands

#1 Custom Slash commands bot available on the internet

We Accept

stripe

Contact

20-22 Wenlock RoadEnglandN1 7GU

© WEiRDSOFT LTD. All rights reserved.