|
| 1 | +--- |
| 2 | +description: How to install Discord Tickets on HypeSrv |
| 3 | +--- |
| 4 | + |
| 5 | +# HypeSrv |
| 6 | + |
| 7 | +!!! warning |
| 8 | + Due to sharing an IP address with other HypeSrv users (who may also be hosting a Discord bot), |
| 9 | + you are more likely to encounter rate limits. It should be fine for most use-cases. You can request a dedicated IP-Address for your bot with our support team if you encounter issues. |
| 10 | + |
| 11 | + |
| 12 | +## Installation |
| 13 | + |
| 14 | +After purchasing your [Discord Bot Server](https://hypesrv.net/en/discord-bot-hosting?utm_source=discordtickets-docs), click on `Content Manager` in your Server Dashboard, then select `Discord Tickets Bot` and hit install. |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +!!! warning |
| 21 | + Installing Discord Tickets via the HypeSrv Content Manager will completely WIPE/DELETE all your server-files! |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | +The server will now automatically install Discord Tickets for you. |
| 26 | +When it has finished, simply start the server to install the bot dependencies and generate the `.env` file. |
| 27 | + |
| 28 | +It may take a few minutes to install completely. |
| 29 | + |
| 30 | + |
| 31 | +## Configuration |
| 32 | + |
| 33 | +You can configure your Discord Tickets Bot settings and environment variables via the `Advanced Settings` Tab in your Server Dashboard. |
| 34 | + |
| 35 | +### Creating the Discord application |
| 36 | + |
| 37 | +--8<-- "includes/discord-application.md" |
| 38 | + |
| 39 | +### Set Bot Token and Secret |
| 40 | + |
| 41 | +!!! important |
| 42 | +If you do not set these variables, your discord bot won't be able to connect to discord and you won't be able to login to the Bot Web-Panel. |
| 43 | + |
| 44 | + |
| 45 | +Make sure you enter the `Bot Token` and `Oauth Secret` from the discord developer dashboard in the `Discord Bot Token` and `Discord 0Auth2 Secret` fields in the `Advanced` Section of your Server Dashboard! |
| 46 | + |
| 47 | +### Database (optional) |
| 48 | + |
| 49 | +!!! info |
| 50 | + You only need to follow this section if you want to use MYSQL as the database backend for your bot. |
| 51 | + |
| 52 | +From toolbar, select `Database` and create a new database. |
| 53 | +Copy the connection details that are displayed and enter them in the `Database URL` field in the `Advanced` Section. |
| 54 | +Make sure your `Database Provider` is set to mysql if you do this! |
| 55 | + |
| 56 | +```title="Example Database URL" |
| 57 | +mysql://<db_username>:<db_password>@db01.hysrv.eu/<db_name> |
| 58 | +``` |
| 59 | + |
| 60 | + |
| 61 | +### Web server |
| 62 | + |
| 63 | +Your server Port will be automatically routed to the Bot Web-Panel. You can simply visit the server URL in your browser. |
| 64 | + |
| 65 | +#### Reverse proxy |
| 66 | + |
| 67 | +If you have a domain name, feel free to setup your reverse proxy yourself or contact our support-team should you require assistance. Please understand that we can only offer limited support for external, customer managed deployments. |
| 68 | + |
| 69 | +Set the `Trust proxies?` variable to `#!yaml true` in the `Advanced` Settings of your server and (optionally) change `HTTP_EXTERNAL` accordingly (e.g. `#!yaml https://tickets.example.com`). |
| 70 | + |
| 71 | + |
| 72 | +## Publishing the commands |
| 73 | + |
| 74 | +If using the `Content Manager` installation, your bot will automatically publish the commands by default. |
| 75 | + |
| 76 | +If you still want to manually publish them you can do the following: |
| 77 | + |
| 78 | +Start the server and wait until you see "Connected to Discord". |
| 79 | +Then type `commands publish` into the bot's console to publish the commands to Discord. |
| 80 | + |
| 81 | +## Next steps |
| 82 | + |
| 83 | +--8<-- "includes/configure.md" |
0 commit comments