Welcome to the step-by-step guide on how to set up and use the Discord Join and Leave Bot using the Lazy platform. This bot is designed to send automated welcome messages to new members when they join a Discord server and farewell messages when they leave. This guide will walk you through the process of setting up the bot, from starting with the template to integrating it into your Discord server.
To begin using this template, simply click on the "Start with this Template" button on the Lazy platform. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy, paste, or delete any code manually.
Before you can test and use the bot, you need to set up an environment secret within the Lazy Builder. This secret is the 'DISCORD_TOKEN', which is necessary for the bot to interact with your Discord server.
With the 'DISCORD_TOKEN' set, your bot is now ready to be deployed.
Once you have set up the environment secret, press the "Test" button on the Lazy platform. This will begin the deployment of the bot and launch the Lazy CLI. The bot will start running, and you will see a confirmation in the CLI that it is logged in and ready.
There is no additional user input required through the CLI for this template. All configurations can be done through Discord commands once the bot is running.
After deploying the bot, you can use it directly within your Discord server. Here's how to set up the welcome and leave channels:
!set_welcome_channel #channel-name
to set the channel where welcome messages will be sent.!set_leave_channel #channel-name
to set the channel for leave messages.Replace #channel-name
with the actual channel you want to use for each type of message. Once set, the bot will automatically send welcome and leave messages in the specified channels.
No further external integration is required for this template. The bot will function within your Discord server, and you can manage its settings using the provided commands.
Remember to ensure that the bot has the necessary permissions in your Discord server to read and send messages in the channels you have designated for welcome and leave messages.
That's it! You now have a fully functional Discord Join and Leave Bot running in your server, thanks to the Lazy platform.