Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 18 support, merged PRs, and other small tweaks #776

Merged
merged 26 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1a5bee1
Fix messages blocked by Discord crashing the bot
DarkView Aug 22, 2022
4ac44f1
Update config documentation
wrac4242 Jan 2, 2023
464dc38
Added cmd to always reply with role and username.
Deldaflyer Mar 19, 2023
8806977
add new sticker type (stickerLine) to response
graphiteisaac Apr 20, 2023
0abdb7b
Update configuration.md
mesub7 Jun 4, 2023
a8ef9e4
Remove unnecessary slice()
DarkView Jun 24, 2023
f42af5f
fix spelling of discord in variable name
wrac4242 Aug 30, 2023
6ab9641
fix linting error in migration file - one line didn't use double quotes
wrac4242 Aug 30, 2023
7d8b1a8
update and remove mentions of discriminator that does not modify data…
wrac4242 Aug 30, 2023
5a74320
chore: update dependencies; set Node.js 18 as requirement
Dragory Sep 12, 2023
e7366e6
Merge branch 'fix_harmfulLinkFilter' of https://github.com/DarkView/m…
Dragory Sep 12, 2023
18472af
Merge branch 'patch-1' of https://github.com/wrac4242/modmailbot into…
Dragory Sep 12, 2023
682c25c
Merge branch 'master' of https://github.com/Deldaflyer/modmailbot int…
Dragory Sep 12, 2023
545bf1e
Merge branch 'patch-stickers' of https://github.com/graphiteisaac/mod…
Dragory Sep 12, 2023
a30ad8e
Merge branch 'patch-2' of https://github.com/mesub7/modmailbot into 2…
Dragory Sep 12, 2023
81052d4
Merge branch 'patch-1' of https://github.com/DarkView/modmailbot into…
Dragory Sep 12, 2023
04db901
Merge branch 'master' of https://github.com/wrac4242/modmailbot into …
Dragory Sep 12, 2023
2828dc0
fix: remove remaining uses of discriminator
Dragory Sep 12, 2023
8d380cd
docs: update CHANGELOG
Dragory Sep 12, 2023
9afbcd0
chore: add Node 16 back to supported version range
Dragory Sep 12, 2023
305b1ba
docs: add !realreply/!rr to docs/commands.md
Dragory Sep 12, 2023
97be674
fix: use import() for ESM-only public-ip; cache fetched public ip
Dragory Sep 12, 2023
3382dd9
chore: update ecmaVersion option for eslint
Dragory Sep 12, 2023
20c936e
docs: update docs for node 18; add timestamp to changelog
Dragory Sep 12, 2023
aa8fcd1
docs: clarify in CHANGELOG that versions beyond 18 are now supported
Dragory Sep 12, 2023
377d573
chore: update package version; remove upper limit on Node.js version
Dragory Sep 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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