Welcome to the step-by-step guide on how to use the Discord Ticketbot Template on Lazy. This template is designed to help you create a Discord bot that can manage support tickets within your server. It's a fully customizable template that comes pre-built, allowing you to deploy a functional bot with minimal setup.
To begin using this template, simply click on "Start with this Template" on the Lazy platform. This will pre-populate the code in the Lazy Builder interface, so you won't need to copy or paste any code manually.
Before you can test and use your bot, you'll need to set up a few environment secrets within the Lazy Builder. These are necessary for your bot to authenticate and interact with the Discord API.
To obtain these values, follow these steps:
Once you have set up the necessary environment secrets, you can press the "Test" button in the Lazy Builder. This will begin the deployment of your application and launch the Lazy CLI. If the code requires any user input, you will be prompted to provide it through the Lazy CLI.
After deploying your bot, you can invite it to your Discord server using the invite link that is printed in the Lazy CLI. Once the bot is in your server, you can use the `/ping` command to check its responsiveness and the `/create-panel` command to start the ticket creation process.
Here's an example of how to use the `/ping` command:
/ping Hello, world!
This will make the bot respond with "Pong: Hello, world!"
And here's how to use the `/create-panel` command:
/create-panel Support
This will create an embed panel with a button to create a support ticket in the "Support" category.
If you wish to further customize or integrate the bot into your Discord server, you can modify the code within the Lazy Builder. For example, you can add more commands, change the embed messages, or adjust the bot's permissions.
Remember to sync your command tree after making changes to the bot's code by calling `await tree.sync()` within the `on_ready` event.
By following these steps, you should now have a functional Discord Ticketbot running in your server, ready to assist with managing support tickets. Enjoy your new bot, and don't hesitate to customize it to fit your server's needs!
The Discord bot monitors all messages in the server. If a message contains profanity, the bot deletes it and sends a warning to the channel. The bot also notifies the host about the deletion via a direct message. Additionally, the bot outputs a helpful error message to a channel if there is a permissions error, guiding the server admin to enable the required permission in the Discord Developer portal.