Welcome to the Invite Tracker Discord Bot template! This template is designed to help you create a Discord bot that tracks and announces server member invites. It keeps a list of users' invite codes and the number of times someone has joined using a certain code. Additionally, it sends a message in a Discord channel when a user joins using an invite code or link. This article will guide you through the process of setting up and deploying your Invite Tracker Discord Bot using the Lazy platform.
To begin, click on the "Start with this Template" button. 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 deploy your bot, you need to set up some environment secrets. These are not the same as environment variables in your operating system; they are specific to the Lazy platform and can be set in the Environment Secrets tab within the Lazy Builder.
You will need to set up the following environment secrets:
Make sure to save these secrets in the Environment Secrets tab before proceeding.
Once you have set up your environment secrets, press the "Test" button. This will begin the deployment of your app and launch the Lazy CLI. The Lazy platform handles all the deployment details, so you don't need to worry about installing libraries or setting up your environment.
After pressing the "Test" button and deploying your bot, it will connect to Discord. You can then invite the bot to your server using the OAuth2 URL provided in the Discord Developer Portal where you created your bot.
Once the bot is in your server, it will start tracking invites. When a new member joins using an invite, the bot will send an announcement to the specified channel with the details of who invited the new member and how many invites they have accumulated.
If you wish to integrate this bot into another service or frontend, you will need to consider the specific requirements of that service. For example, if you are integrating with a web dashboard, you may need to provide the bot's server link, which you can obtain from the Lazy platform after deployment.
Remember to review the permissions your bot needs in the Discord server to ensure it can access invite information and send messages to the desired channel.
That's it! You have successfully set up and deployed your Invite Tracker Discord Bot using the Lazy platform. Enjoy tracking your server invites with ease!