Self hosting vs managed hosting
Managed hosting is the easiest way to get your ticket bot running. If you already have a server, you should self-host. If you have no experience in hosting things and don't have a server, get managed hosting.
Managed hosting benefits and drawbacks:
|Cheaper and better for the environment than getting your own VPS just for this bot||You may need to wait a couple of days for your bot to be ready|
|No experience required, you need to do very little||You no longer own the data|
|You don't need to worry about updates, it is done for you||You can't make any modifications to the code|
This is the most simple way to install Discord Tickets.
To install Discord Tickets you need a suitable server (VPS or dedicated server) with:
- At least
150MBdisk space available
- Node.js v16 and NPM
- A MySQL database (recommended)
- Basic sysadmin experience (get managed hosting if you don't)
If you don't have a server, see hosting providers.
You should download the bot using Git to make updating easier in the future.
- Clone the repository
git clone https://github.com/discord-tickets/bot.git
- Find the most recent version with
git describe --tags --abbrev=0
- Switch to a stable version with
git checkout tags/VERSION
VERSIONwith the version from step 2 (e.g.
git checkout tags/v3.1.0)
- Install dependencies and generate your database encryption key with
npm i --production && npm start
- Create your Discord bot application
- Copy the bot token from the previous step into
- For improved performance and to allow messages to be stored (so you can have ticket transcripts), optionally configure the bot to use MySQL.
- Add your bot to Discord
- Start the bot with
npm start. You can stop it with Ctrl+C
- Configure your bot
- Complete this survey (please )
Note that you may need to use
pm2 to keep the bot running in the background.