Skip to content



Due to sharing an IP address with other PebbleHost users (who may also be hosting a Discord bot), you are more likely to encounter rate limits. It should be fine, but you should consider other hosting options if you have a large guild and tickets are critical.

Also, note that although it may be possible, running Discord Tickets alongside other bots in the same process is not recommended or supported. Consider getting a VPS if you want to run multiple bots.


First, click on Language & Preinstalls, then Bot Preinstalls, select Discord Tickets and save.



Start the server to use the installer which will download the code for you. When it has finished, start the server a second time to install the dependencies and generate the .env file. It may take a few minutes to install.

Environment variables

Go to the File Manager and open the .env file.

Creating the Discord application


Don't skip this section if you already know how to create a Discord application; Discord Tickets requires additional configuration. Using an existing application is not recommended.

  1. Go to the Discord Developer Portal

  2. Create an application

    1. Click the New Application button
    2. Give your application a name, accept the terms of service and click Create

    Screenshot 3. Add a logo, description, and links to your terms of service and privacy policy, then click Save Changes.

    Screenshot 4. Go to the OAuth2 page and click Reset Secret, then Yes, do it!. Copy the new secret and set it as your DISCORD_SECRET environment variable.

    Screenshot 5. Click Add Redirect and enter the value of your HTTP_EXTERNAL environment variable, followed by /auth/callback. Then click Save Changes.


    • http://12.345.67.89:8080/auth/callback

    If you set this to, your HTTP_EXTERNAL environment variable must be set to (without a trailing /).

    Screenshot 6. Create the bot user

    1. Go to the Bot page and click Add Bot, then Yes, do it!
    2. Click View Token, then copy the token and set it as your DISCORD_TOKEN environment variable.

    Screenshot 7. Configure the bot

    1. Optionally, disable the "public bot" option to prevent other people from adding your bot to their servers.
    2. Enable the presence, server members and message content intents.


Don't add the bot to your Discord server yet; you'll do that later.


From the sidebar, click MySQL Database and create a new database. Open the details and click on the URI to copy it.





Web server

From the sidebar, click Additional Ports, then Add Port. Copy the IP address and port number.




Reverse proxy

If you have a domain name, refer to PebbleHost's guide to enable the reverse proxy. Set the HTTP_TRUST_PROXY environment variable to true and change HTTP_EXTERNAL accordingly (e.g.

Other environment variables

Your .env file should now look something like this:



You can middle-click on links to open them in a new tab so you can easily come back to the documentation!

Refer to the configuration documentation for more information about the available environment variables, and return to this page when you have finished.

Environment variables

Publishing the commands

Start the server and wait until you see "Connected to Discord". Then type commands publish into the bot's console to publish the commands to Discord.


Next steps

If your bot is running, congratulations, you have successfully installed Discord Tickets, and now it's time to set it up in your Discord server.

Join the community on Discord and get notified when updates (with new features and fixes) are released.

Refer to the configuration guide for a step-by-step guide on how to add and configure the bot in your server.


Having trouble?

If you haven't got the bot running yet and need help, you can ask for help on Discord or on GitHub.