Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

SETUP 2 CONFIGURE THE BOT

Mystik edited this page Aug 10, 2020 · 4 revisions

Download the bot code:

Download the bot code if you havent already either through zip. You need all of the files. Download from the releases page: https://github.com/Mystik01/discord-ticket/releases Firstly, you MUST run the command, npm i discord.js dotenv sequelize mysql2 in the folder. Next go to the .env file in a text editor, i use VS Code. In the .env file you need to replace the bot token, create a bot here and copy the token. Change the <DATABASE_NAME> to the name of the Database that you made previsouly. Also change the <DB_USERNAME> to the username you made in MySql and the password that matches it. Then leave localhost as it is.

Now you can start the bot...

Now you can start teh bot and it should work, only issue being all the messages will not be customized yet so you need to do that next. To start the bot make you have node installed, download from here, Node is a must have when it comes to javascript. Then open up your terminal, set the path to the folder and type node bot.js. This will start the bot.

Go through in order fromn SETUP 1 to SETUP 3. Everything is important. If you want to go back through the original video if it helps... https://www.youtube.com/watch?v=KctjPfO5LxU

This is made by Anson, he deserveres the credit not me so go support him by subbing to his channel wich will be greatly appreciated.

Clone this wiki locally