From ecbebff801507d0a0013587e18166e27c3aa7be8 Mon Sep 17 00:00:00 2001 From: Dragory Date: Thu, 28 Mar 2019 05:12:02 +0200 Subject: [PATCH] Update README and CHANGELOG for v2.20.0 --- CHANGELOG.md | 7 +++++++ README.md | 3 +++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45cea22..3871856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## v2.20.0 +* Add `categoryAutomation` option to automate thread categories. Currently supported sub-options: + * `newThread` - same as `newThreadCategoryId`, the default category for new threads + * `newThreadFromGuild` - default category on a per-guild basis, value is an object with guild IDs as keys and category IDs as values +* Threads should now include member information (nickname, joined at, etc.) more reliably +* Thread header now also includes the member's current voice channel, if any + ## v2.19.0 * Add `attachmentStorage` option to control where attachments are saved. Currently supported: * `"local"` (default) - Same as before: attachments are saved locally on the machine running the bot and served through the bot's web server diff --git a/README.md b/README.md index ff8fd20..d5b7cc9 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ These go in `config.json`. See also `config.example.json`. |attachmentStorage|"local"|Controls where sent/received attachments are saved.

**"local"** - Files are saved locally on the machine running the bot
**"discord"** - Files are saved as attachments on a special channel on the inbox server. Requires `attachmentStorageChannelId` to be set.| |attachmentStorageChannelId|null|When using "discord" attachment storage, the id of the channel on the inbox server where attachments should be saved| |botMentionResponse|None|If set, the bot auto-responds to bot mentions with this message. Allows `{userMention}` to be added to mention the user who mentioned the bot.| +|categoryAutomation|{}|Various ways of automating thread categories on the inbox server. **Note that the options below with a dot in the name are object properties for `categoryAutomation`.**| +|categoryAutomation.newThread|None|Same as `newThreadCategoryId`. Specifies a category to open all new threads in. Also functions as a fallback for `categoryAutomation.newThreadFromGuild`.| +|categoryAutomation.newThreadFromGuild|None|Allows you to open threads in specific categories based on which guild the user is messaging the bot from. The value is an object with guild ids as the keys and category ids as the values.| |closeMessage|None|The bot's message to the user when the thread is closed| |enableGreeting|false|Set to true to send a welcome message to new main guild members. Requires `mainGuildId` to be set.| |greetingAttachment|None|Path to an image or other attachment to send along with the greeting|