From a103526e6fd443451c84ab74c797e427bed26ea2 Mon Sep 17 00:00:00 2001
From: PythonCoderAS <13932583+PythonCoderAS@users.noreply.github.com>
Date: Mon, 3 Jan 2022 16:03:46 -0500
Subject: [PATCH] Add changelog and general fixes
---
guides/changelog/2_8_4.md | 2 ++
guides/guides.md | 4 +++-
package-lock.json | 17 +++++++++++++++--
package.json | 1 +
scripts/automaticallyAddGPLToCode.ts | 7 +++----
src/commands/setCommand/setMenu.ts | 16 ++++++++++++++++
src/data/guideData.json | 5 +++++
src/utils/formatUserIssue.ts | 16 ++++++++++++++++
8 files changed, 61 insertions(+), 7 deletions(-)
create mode 100644 guides/changelog/2_8_4.md
diff --git a/guides/changelog/2_8_4.md b/guides/changelog/2_8_4.md
new file mode 100644
index 00000000..828e34c6
--- /dev/null
+++ b/guides/changelog/2_8_4.md
@@ -0,0 +1,2 @@
+- `/trigger_auto` will now respect the default screenshot setting.
+- Only screenshots sent in DMs will have the delete button.
\ No newline at end of file
diff --git a/guides/guides.md b/guides/guides.md
index 15796b55..06b483f8 100644
--- a/guides/guides.md
+++ b/guides/guides.md
@@ -11,4 +11,6 @@
**What's New in Version 2.4.1**: `/guide name:whats_new_version_2_4_1`
**What's New in Version 2.5**: `/guide name:whats_new_version_2_5`
**What's New in Version 2.6**: `/guide name:whats_new_version_2_6`
-**What's New in Version 2.7**: `/guide name:whats_new_version_2_7`
\ No newline at end of file
+**What's New in Version 2.7**: `/guide name:whats_new_version_2_7`
+**What's New in Version 2.8**: `/guide name:whats_new_version_2_8`
+**What's New in Version 2.8.4**: `/guide name:whats_new_version_2_8_4`
\ No newline at end of file
diff --git a/package-lock.json b/package-lock.json
index 94a691cb..7353be1e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "healthscreeningbot",
- "version": "2.8.3",
+ "version": "2.8.4",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "healthscreeningbot",
- "version": "2.8.3",
+ "version": "2.8.4",
"license": "GNU GPLv3",
"dependencies": {
"@discordjs/builders": "^0.11.0",
@@ -35,6 +35,7 @@
"@types/luxon": "^2.0.8",
"@types/node": "^17.0.7",
"@types/uuid": "^8.3.3",
+ "@types/walk-asyncgen": "^0.0.0",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"eslint": "^8.6.0",
@@ -998,6 +999,12 @@
"integrity": "sha512-0LbEEx1zxrYB3pgpd1M5lEhLcXjKJnYghvhTRgaBeUivLHMDM1TzF3IJ6hXU2+8uA4Xz+5BA63mtZo5DjVT8iA==",
"dev": true
},
+ "node_modules/@types/walk-asyncgen": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/@types/walk-asyncgen/-/walk-asyncgen-0.0.0.tgz",
+ "integrity": "sha512-RYS4XxfPyO722RkYOeO0m20aElJ/pAG35O2Tx8TvMc88liHOH58kWfwDjfbFvHz0Ym2nNeyIdOp+c+l/VyoXqw==",
+ "dev": true
+ },
"node_modules/@types/ws": {
"version": "8.2.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
@@ -4956,6 +4963,12 @@
"integrity": "sha512-0LbEEx1zxrYB3pgpd1M5lEhLcXjKJnYghvhTRgaBeUivLHMDM1TzF3IJ6hXU2+8uA4Xz+5BA63mtZo5DjVT8iA==",
"dev": true
},
+ "@types/walk-asyncgen": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/@types/walk-asyncgen/-/walk-asyncgen-0.0.0.tgz",
+ "integrity": "sha512-RYS4XxfPyO722RkYOeO0m20aElJ/pAG35O2Tx8TvMc88liHOH58kWfwDjfbFvHz0Ym2nNeyIdOp+c+l/VyoXqw==",
+ "dev": true
+ },
"@types/ws": {
"version": "8.2.2",
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz",
diff --git a/package.json b/package.json
index 95a56df4..bf5ea179 100644
--- a/package.json
+++ b/package.json
@@ -65,6 +65,7 @@
"@types/luxon": "^2.0.8",
"@types/node": "^17.0.7",
"@types/uuid": "^8.3.3",
+ "@types/walk-asyncgen": "^0.0.0",
"@typescript-eslint/eslint-plugin": "^5.8.1",
"@typescript-eslint/parser": "^5.8.1",
"eslint": "^8.6.0",
diff --git a/scripts/automaticallyAddGPLToCode.ts b/scripts/automaticallyAddGPLToCode.ts
index ebcf0bc2..47a4db9e 100644
--- a/scripts/automaticallyAddGPLToCode.ts
+++ b/scripts/automaticallyAddGPLToCode.ts
@@ -1,6 +1,3 @@
-import { readFile, writeFile } from "fs/promises";
-import { resolve } from "path";
-
/**
* Copyright (C) 2021 PythonCoderAS
*
@@ -17,7 +14,9 @@ import { resolve } from "path";
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-import pathsGenerator = require("walk-asyncgen");
+import { readFile, writeFile } from "fs/promises";
+import { resolve } from "path";
+import pathsGenerator from "walk-asyncgen";
// language=ts
const gplString = `/**
diff --git a/src/commands/setCommand/setMenu.ts b/src/commands/setCommand/setMenu.ts
index 0bb906ee..556e53ae 100644
--- a/src/commands/setCommand/setMenu.ts
+++ b/src/commands/setCommand/setMenu.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright (C) 2021 PythonCoderAS
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
import {
Collection,
MessageActionRow,
diff --git a/src/data/guideData.json b/src/data/guideData.json
index d7339f65..d93bf3df 100644
--- a/src/data/guideData.json
+++ b/src/data/guideData.json
@@ -54,6 +54,11 @@
"files": ["changelog/2_8"],
"shortTitle": "What's New in Version 2.8"
},
+ "whats_new_version_2_8_4": {
+ "title": "What's New in Version 2.8.4",
+ "files": ["changelog/2_8_4"],
+ "shortTitle": "What's New in Version 2.8.4"
+ },
"_send_to_all_whats_new_2_1_and_2_4": {
"title": ["What's New in Version 2.1", "What's New in Version 2.4"],
"files": ["changelog/2_1", "changelog/2_4"],
diff --git a/src/utils/formatUserIssue.ts b/src/utils/formatUserIssue.ts
index 1dd26566..ca79448e 100644
--- a/src/utils/formatUserIssue.ts
+++ b/src/utils/formatUserIssue.ts
@@ -1,3 +1,19 @@
+/**
+ * Copyright (C) 2021 PythonCoderAS
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
import { User } from "discord.js";
import { DateTime } from "luxon";