Standard installation¶
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.
Requirements¶
To install Discord Tickets you need a suitable server (VPS or dedicated server) with:
- At least
100MB
RAM and150MB
disk space available - Git
- 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.
Installation¶
You should download the bot using Git to make updating easier in the future.
- Clone the repository
1
git clone https://github.com/discord-tickets/bot.git
- Install dependencies and generate your database encryption key with
1
npm i --production && npm start
- Create your Discord bot application
- Copy the bot token from the previous step into
.env
, afterDISCORD_TOKEN=
- 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 systemd
, screen
, or pm2
to keep the bot running in the background.
Last update:
May 4, 2022
This website supports keyboard
shortcuts