From 6decec08d1e68e7fc97209bae05af257481cc4fd Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 21 Nov 2022 19:33:15 -0300 Subject: [PATCH 1/5] you shouldn't add package-lock.json --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6fe20f0..37d7e73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules .env -package-lock.json \ No newline at end of file From 273da64a3e997535cf784e85282656fc29eab7d3 Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 21 Nov 2022 19:41:37 -0300 Subject: [PATCH 2/5] kinda better I guess? (it may fixes #10) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80774f0..3b80892 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,13 @@ Below is a basic overview of the project structure: ## Running app locally -Before you start, you'll need to [create a Discord app](https://discord.com/developers/applications) with the proper permissions: +Before you start, you'll need to install [NodeJS](https://nodejs.org/en/download/) and [create a Discord app](https://discord.com/developers/applications) with the proper permissions: - `applications.commands` - `bot` (with Send Messages enabled) + Configuring the app is covered in detail in the [getting started guide](https://discord.com/developers/docs/getting-started). + ### Setup project First clone the project: @@ -51,6 +53,7 @@ Fetch the credentials from your app's settings and add them to a `.env` file (se Fetching credentials is covered in detail in the [getting started guide](https://discord.com/developers/docs/getting-started). > 🔑 Environment variables can be added to the `.env` file in Glitch or when developing locally, and in the Secrets tab in Replit (the lock icon on the left). +> Environment variables can be added to the `.env` file in Glitch or when developing locally, and in the Secrets tab in Replit (the lock icon on the left). ### Run the app From 2d23ca617e7b42daa7abc580e89cc5154a582321 Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 21 Nov 2022 19:42:11 -0300 Subject: [PATCH 3/5] oops i was gonna put the nodejs requirement there, but it looked better in **before you start** --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 3b80892..1382bc5 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,6 @@ Fetch the credentials from your app's settings and add them to a `.env` file (se Fetching credentials is covered in detail in the [getting started guide](https://discord.com/developers/docs/getting-started). > 🔑 Environment variables can be added to the `.env` file in Glitch or when developing locally, and in the Secrets tab in Replit (the lock icon on the left). -> Environment variables can be added to the `.env` file in Glitch or when developing locally, and in the Secrets tab in Replit (the lock icon on the left). ### Run the app From 309935af5b85aa8dbe740fd9a82fbd5652e1c182 Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 21 Nov 2022 19:43:40 -0300 Subject: [PATCH 4/5] bump versions --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e0f1986..81dd96f 100644 --- a/package.json +++ b/package.json @@ -12,9 +12,9 @@ "license": "MIT", "dependencies": { "discord-interactions": "^3.2.0", - "dotenv": "^16.0.0", - "express": "^4.17.3", - "node-fetch": "^3.2.3" + "dotenv": "^16.0.3", + "express": "^4.18.2", + "node-fetch": "^3.3.0" }, "devDependencies": { "nodemon": "^2.0.15" From 813b1a2add6e28070fabe734886b6b82144a6f5d Mon Sep 17 00:00:00 2001 From: igna Date: Mon, 21 Nov 2022 19:45:12 -0300 Subject: [PATCH 5/5] change from user replit to github import this tries to avoid people from checking any leaked token from forks --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1382bc5..3fa863d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This project contains a basic rock-paper-scissors-style Discord app written in J ![Demo of app](/assets/getting-started-demo.gif?raw=true) -> ✨ A version of this code is also hosted **[on Glitch 🎏](https://glitch.com/~getting-started-discord)** and **[on Replit 🌀](https://replit.com/@shaydewael/discord-example-app)** +> ✨ A version of this code is also hosted **[on Glitch 🎏](https://glitch.com/~getting-started-discord)** and **[on Replit 🌀](https://replit.com/github/discord/discord-example-app)** ## Project structure Below is a basic overview of the project structure: