Do not index
Do not index
Creating your Bot on BotGhost
If you haven’t already created and linked your bot on BotGhost, head over to our getting started guide here. Once you are done setting up and linking your bot to BotGhost, you are ready to begin creating your welcomer bot.
Creating a Basic Welcomer Bot
The simplest approach to constructing a welcomer bot with the event module is to put a simple reply in a channel. Begin by creating a new Custom Event in the Event Module. You may do this by clicking the “Custom Event Builder” icon, as shown in the provided image. It functions similarly to the Custom Commands module.
Once you created a new Custom Event, a message will appear asking you to “Select a Custom Event.” Click the dropdown and select the “When a new user joins the server” option. This event will be triggered whenever someone joins a server that your bot is in.
After you’ve selected the “When a new user joins the server” event, create an “Event Nickname” on the right settings of the main yellow block. You can use any name for this field as it won’t be displayed to any users. This field serves only as a reminder for you of what this custom event is if you decide to edit it later.
Next, go to the “Actions” tab of the blocks section to the left and select the fourth response action, the “Send a message to a Channel”.
Connect the “Send a message to a Channel” block to the main yellow highlighted block by dragging it to the command tree. In the message section, you can set it to “Plain Text” or “Embed.” For this command, however, we will keep it on plain text. In the message field, add the welcome message you wish to greet your new members with. You can use the variable {user} to ping them upon entering. Next, select the channel you want your welcome messages to be posted to from the channel dropdown, such as a #welcome channel.
Congrats! You have just created your own basic welcomer bot. Click Save in the top right to save your custom event. Head over to discord and you should see your message sent whenever someone joins your server.
Creating a Welcomer Bot that uses DMs
Some users may choose to greet new members through DMs (Direct Messages) rather than the server, or perhaps both. This is once again possible using the Custom Events module! Open back up the custom event you made earlier and look for the “Direct Message a User” block and attach it to the command tree. This action will send either a plain text or embed message to a user.
In the settings of the “Direct Message a User” block, set the “User to DM” to “The user.” This will make the bot direct message the new person who joined the server. Then, create a welcome message, similar to the “Send a message to a Channel” block we made previously.
Using variables in your welcome messages may make it look better as well, such as the member count.
Conclusion
Using the Custom Events module, you can create virtually any type of welcomer bot for any server! Change the blocks for button messages or a random response! Try it out and decide what kind of welcome message you want for your server. Support is available on our official Discord Server.