Open tickets in website for discord server
- Run this command in the command line
$ git clone https://github.com/Luffy909/Discord-Tickets.git
- Now you'r done
- go to command line/terminal and run
$ cd Discord-Tickets
- then you have to install required packges by using this command bellow
$ npm i
- now you need to add file named .env and type the required items bellow
PORT=8080// You'r port
BOT_TOKEN="" //You'r bot TOKEN
CLIENT_ID="" //You'r bot ID
CLIENT_SECRET=""//You'r bot Client secret
CALLBACK_URI="http://localhost:8080/api/callback" //You'r callbackURL
DATABASE_URI="" //You'r mongodbURL
PREFIX=""//You'r bot prefix
GUILDID=""//You'r serverid
example
PORT=8080
BOT_TOKEN="ODQ0OTE0MDQ4MjA5NTE4NjEy.YKZVhg.vWvp6CMAYrwmx4Sfc1P44RstNUTHwgSA"
CLIENT_ID="487312058174662500"
CLIENT_SECRET="kMZmV_kLMqs6yjxvmk8goefTsCr7DEF6"
CALLBACK_URI="http://localhost:8080/api/callback"
DOMAIN="http://localhost:8080/"
DATABASE_URI="mongodb+srv://USER:PASS@CLUSTER_NAME.mongodb.net/DATABASE?retryWrites=true&w=majority"
PREFIX="!"
GUILDID="688077913463324683"
A. you can get BOT_TOKEN & CLIENT_SECRET & CLIENT_ID in https://discord.com/developers/applications
- now you need to add callback to you'r discord bot
- go to https://discord.com/developers/applications/
- select your bot
- go to OAuth2 ex: https://discord.com/developers/applications/487312058174662500/oauth2
- then go to add redirects then type http://localhost:8080/api/callback
-
now you need to add your MongoDB url:
- Go to MongoDB Cloud and create a account
- Create Cluster and make your free database and get the link e.g
mongodb+srv://USER:PASS@CLUSTER_NAME.mongodb.net/DATABASE?retryWrites=true&w=majority
- go to .env file and paste the url in DATABASE_URI
-
now you are done just run the app using
$ npm run dev
and WebChat will be running at localhost:8080
- you can also host it to public by running
$ npm run start
in case you saw any Problems, Bugs and Suggestions you can tell me in the issues OR Discord Server
and i will fix and your suggetions and tell you in news channel in Discord Server