Skip to content

Commit 0e9bf7e

Browse files
authored
Merge pull request #776 from Dragory/230912_node_18
Node 18 support, merged PRs, and other small tweaks
2 parents f81bb31 + 377d573 commit 0e9bf7e

20 files changed

+3674
-2793
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"root": true,
33

44
"parserOptions": {
5-
"ecmaVersion": 10,
5+
"ecmaVersion": 2022,
66
"sourceType": "module"
77
},
88

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Changelog
22
For instructions on how to update the bot, see **[✨ Updating the bot](docs/updating.md)**
33

4+
## v3.7.0 (2023-09-12)
5+
* Added support for Node.js 18 and higher
6+
* Added `!realreply` / `!rr` command ([#763](https://github.com/Dragory/modmailbot/pull/763))
7+
* This command always replies with the moderator's name, even if `forceAnon` is enabled
8+
* Fixed messages blocked by Discord crashing the bot ([#730](https://github.com/Dragory/modmailbot/pull/730))
9+
* Stickers are now properly embedded ([#765](https://github.com/Dragory/modmailbot/pull/765))
10+
* Updated Eris and other dependencies
11+
* This should resolve errors with stage channels and some other new features
12+
* Other small fixes ([#774](https://github.com/Dragory/modmailbot/pull/774), [#772](https://github.com/Dragory/modmailbot/pull/772), [#771](https://github.com/Dragory/modmailbot/pull/771), [#750](https://github.com/Dragory/modmailbot/pull/750))
13+
414
## v3.6.1
515
* Fixed inline replies not working with alwaysReply or snippets
616
* Fixed buggy note display in thread header

docs/commands.md

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ Send an anonymous reply to the user. Anonymous replies only show the moderator's
2020

2121
**Example:** `!ar Please only use Modmail for serious messages`
2222

23+
To reply automatically without using `!reply`, [turn on `alwaysReply` in bot settings](configuration.md).
24+
25+
### `!realreply <text>` / `!rr <text>`
26+
Send a reply to the user. This will always include the moderator's name, even if the `forceAnon` option is enabled.
27+
2328
### `!close`
2429
Close the Modmail thread.
2530

docs/configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ greetingMessage[] = Fourth line! With an empty line in the middle.
6666
The bot user's token from [Discord Developer Portal](https://discord.com/developers/).
6767

6868
#### mainServerId
69-
**Accepts multiple values** Your server's ID.
69+
**Accepts multiple values**. Your server's ID.
7070

7171
#### inboxServerId
7272
For a single-server setup, same as [mainServerId](#mainServerId).
@@ -143,7 +143,7 @@ If enabled, all replies (including regular `!reply` and snippets) are anonymous
143143

144144
#### anonymizeChannelName
145145
**Default:** `off`
146-
If enabled, channel names will be the user's name and discriminator salted with the current time, then hashed to protect the user's privacy
146+
If enabled, channel names will be the user's name salted with the current time, then hashed to protect the user's privacy
147147

148148
#### attachmentStorage
149149
**Default:** `original`
@@ -449,7 +449,7 @@ If enabled, update notifications will also be given for new beta versions
449449

450450
#### url
451451
**Default:** *None*
452-
URL to use for attachment and log links. Defaults to `http://IP:PORT`.
452+
URL to use for attachment and log links. Defaults to `http://IP:PORT/`.
453453

454454
#### useNicknames
455455
**Default:** `off`

docs/setup.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ To keep it online, you need to keep the bot process running.
1414
## Prerequisites
1515
1. Create a bot on the [Discord Developer Portal](https://discord.com/developers/)
1616
2. Turn on **Server Members Intent** and **Message Content Intent** in the bot's settings page on the developer portal ([Image](intents.png))
17-
3. Install Node.js 16 (LTS)
18-
* Old LTS versions 12 and 14 are also supported
17+
3. Install Node.js 18 (LTS) or higher
1918
4. [Download the latest bot release here](https://github.com/Dragory/modmailbot/releases/latest) (click on "Source code (zip)")
2019
5. Extract the downloaded Zip file to a new folder
2120
6. In the bot's folder (that you extracted from the zip file), make a copy of the file `config.example.ini` and rename the copy to `config.ini`

0 commit comments

Comments
 (0)