You can create a Discord welcome bot using scheduled vals.
In this example, a scheduled val gets the most recent members for your server and sends a DM to new users from a bot that you’ll create. It avoids messaging users who joined the server before the bot was added.
When users reply to the bot, the message is forwarded as a DM.
Visit https://discord.com/developers/applications:
Since the bot will be requesting a list of guild members, you need to enable the SERVER MEMBERS INTENT on the Bot tab.
On the Bot tab, copy the TOKEN, and save it as a Val Town secret as discordBot
.
On the OAuth2 tab, under URL Generator, select the bot scope, and give it permission to Send Messages, and then copy the GENERATED URL at the bottom of the page.
Choose the server you want to invite the bot to and press Continue.