Skip to content

Commit

Permalink
Merge pull request #776 from Dragory/230912_node_18
Browse files Browse the repository at this point in the history
Node 18 support, merged PRs, and other small tweaks
  • Loading branch information
Dragory authored Sep 12, 2023
2 parents f81bb31 + 377d573 commit 0e9bf7e
Show file tree
Hide file tree
Showing 20 changed files with 3,674 additions and 2,793 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"root": true,

"parserOptions": {
"ecmaVersion": 10,
"ecmaVersion": 2022,
"sourceType": "module"
},

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Changelog
For instructions on how to update the bot, see **[✨ Updating the bot](docs/updating.md)**

## v3.7.0 (2023-09-12)
* Added support for Node.js 18 and higher
* Added `!realreply` / `!rr` command ([#763](https://github.com/Dragory/modmailbot/pull/763))
* This command always replies with the moderator's name, even if `forceAnon` is enabled
* Fixed messages blocked by Discord crashing the bot ([#730](https://github.com/Dragory/modmailbot/pull/730))
* Stickers are now properly embedded ([#765](https://github.com/Dragory/modmailbot/pull/765))
* Updated Eris and other dependencies
* This should resolve errors with stage channels and some other new features
* 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))

## v3.6.1
* Fixed inline replies not working with alwaysReply or snippets
* Fixed buggy note display in thread header
Expand Down
5 changes: 5 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Send an anonymous reply to the user. Anonymous replies only show the moderator's

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

To reply automatically without using `!reply`, [turn on `alwaysReply` in bot settings](configuration.md).

### `!realreply <text>` / `!rr <text>`
Send a reply to the user. This will always include the moderator's name, even if the `forceAnon` option is enabled.

### `!close`
Close the Modmail thread.

Expand Down
6 changes: 3 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ greetingMessage[] = Fourth line! With an empty line in the middle.
The bot user's token from [Discord Developer Portal](https://discord.com/developers/).

#### mainServerId
**Accepts multiple values** Your server's ID.
**Accepts multiple values**. Your server's ID.

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

#### anonymizeChannelName
**Default:** `off`
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
If enabled, channel names will be the user's name salted with the current time, then hashed to protect the user's privacy

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

#### url
**Default:** *None*
URL to use for attachment and log links. Defaults to `http://IP:PORT`.
URL to use for attachment and log links. Defaults to `http://IP:PORT/`.

#### useNicknames
**Default:** `off`
Expand Down
3 changes: 1 addition & 2 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ To keep it online, you need to keep the bot process running.
## Prerequisites
1. Create a bot on the [Discord Developer Portal](https://discord.com/developers/)
2. Turn on **Server Members Intent** and **Message Content Intent** in the bot's settings page on the developer portal ([Image](intents.png))
3. Install Node.js 16 (LTS)
* Old LTS versions 12 and 14 are also supported
3. Install Node.js 18 (LTS) or higher
4. [Download the latest bot release here](https://github.com/Dragory/modmailbot/releases/latest) (click on "Source code (zip)")
5. Extract the downloaded Zip file to a new folder
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`
Expand Down
Loading

0 comments on commit 0e9bf7e

Please sign in to comment.