Skip to content

Commit a43ef79

Browse files
committed
Merge branch 'master' of https://github.com/kyb3r/modmail into update
2 parents cce120a + dce7533 commit a43ef79

File tree

15 files changed

+1305
-636
lines changed

15 files changed

+1305
-636
lines changed

CHANGELOG.md

Lines changed: 213 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,199 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
8+
# v2.19.1
9+
10+
### Changed
11+
12+
- Ability to force an update despite having the same version number. Helpful to keep up-to-date with the latest GitHub commit.
13+
- `?update force`.
14+
- Plugin developers now have a new event called `on_plugin_ready`, this is coroutine is awaited when all plugins are loaded. Use `on_plugin_ready` instead of `on_ready` since `on_ready` will not get called in plugins.
15+
16+
# v2.19.0
17+
18+
### What's new?
19+
20+
- New config variable `guild_age`, similar to `account_age`, `guild_age` sets a limit as to how long a user has to wait after they joined the server to message Modmail.
21+
- `guild_age` can be set the same way as `account_age`.
22+
23+
# v2.18.5
24+
25+
Fix help command bug when using external plugins.
26+
27+
# v2.18.4
28+
29+
Fix the teams permission bug.
30+
31+
# v2.18.2
32+
33+
### Changed
34+
35+
Commands now have better error messages, instead of just sending the help message for a command when an argument fails to be converted to its specified object, the bot now says things like "User 'bob' not found" instead.
36+
37+
# v2.18.1
38+
39+
Un-deprecated the `OWNERS` config variable to support discord developer team accounts.
40+
41+
# v2.18.0
42+
43+
### New Permissions System
44+
45+
- A brand new permission system! Replacing the old guild-based permissions (ie. manage channels, manage messages), the new system enables you to customize your desired permission level specific to a command or a group of commands for a role or user.
46+
- There are five permission groups/levels:
47+
- Owner [5]
48+
- Administrator [4]
49+
- Moderator [3]
50+
- Supporter [2]
51+
- Regular [1]
52+
53+
### Usage
54+
55+
You may add a role or user to a permission group through any of the following methods:
56+
- `?permissions add level owner @role`
57+
- `?permissions add level supporter member-name`
58+
- `?permissions add level moderator everyone`
59+
- `?permissions add level moderator @member#1234`
60+
- `?permissions add level administrator 78912384930291853`
61+
62+
The same applies to individual commands permissions:
63+
- `?permissions add command command-name @member#1234`
64+
- ... and the other methods listed above.
65+
66+
To revoke permission, use `remove` instead of `add`.
67+
68+
To view all roles and users with permission for a permission group or command do:
69+
- `?permissions get command command-name`
70+
- `?permissions get level owner`
71+
72+
By default, all newly set up Modmail will have `OWNER` set to the owner of the bot, and `REGULAR` set to @everyone.
73+
74+
### Breaking
75+
76+
When updating to this version, all prior permission settings with guild-based permissions will be invalidated. You will need to convert to the above system.
77+
`OWNERS` will also get removed, you will need to set owners through `?permissions add level owner 212931293123129` or any way listed above.
78+
79+
### New Command
80+
81+
- A `?delete` command, which is an alternative to manually deleting a message. This command is created to no longer require manage messages permission to recall thread messages.
82+
83+
### Changed
84+
85+
- The help message no longer conceals inaccessible commands due to check failures.
86+
87+
# v2.17.2
88+
89+
### Changed
90+
91+
- Logs search command will search through log keys as well now.
92+
- For example, `?logs search e7499e82f8ff`.
93+
94+
# v2.17.1
95+
### What's new?
96+
97+
Stricter fallback genesis embed search.
98+
99+
### Changed
100+
How modmail checks if a channel is a thread:
101+
102+
1. First the bot checks if the channel topic is in the format `User ID: xxxx`, this means it is a thread.
103+
2. If a channel topic is not found, the bot searches through message history of a channel to find the thread creation embed. This step should never yield a thread for a normal user, but in the case of a another bot messing up the channel topic (happened to a user before) this extra step was added.
104+
105+
106+
# v2.17.0
107+
108+
### What's new?
109+
110+
Added a config option `reply_without_command` which when present, enables the bot to forward any message sent in a thread channel to the recipient. (Replying without using a command)
111+
112+
To enable this functionality, do `?config set reply_without_command true` and to disable it, use `?config del reply_without_command`.
113+
114+
115+
### Changed
116+
117+
The `move` command now only requires `manage_messages` perms instead of `manage_channels`
118+
119+
# v2.16.1
120+
121+
### Fixed
122+
123+
An issue where a scheduled close would not execute over a long period of time if the recipient no shares any servers with the bot.
124+
125+
# v2.16.0
126+
127+
### Changed
128+
129+
All support for Modmail API (api.modmail.tk) has terminated.
130+
If you're still using api.modmail.tk, you will need to migrate to the self-hosted database
131+
option ASAP. Your bot will not work unless you switch to the self-hosted option. Refer to the
132+
installation tutorial for information regarding self-hosted Modmail.
133+
134+
If a member leaves/joins (again) while they are a recipient of a thread, a message will be sent to notify you that this has occured.
135+
136+
# v2.15.1
137+
138+
### Fixed
139+
140+
Emergency patch of a SyntaxError.
141+
142+
# v2.15.0
143+
144+
### What's new?
145+
146+
Added the ability to change the default close message via the introduction of two config variables.
147+
148+
- `thread_close_response` - when someone closes the thread.
149+
- `thread_self_close_response` - when the recipient closes their own thread.
150+
151+
They will be provided by string variables that you can incorporate into them:
152+
153+
- `closer` - the user object that closed the thread.
154+
- `logkey` - the key for the thread logs e.g. (`5219ccc82ad4`)
155+
- `loglink` - the full link to the thread logs e.g. (`https://logwebsite.com/logs/5219ccc82ad4`)
156+
157+
Example usage would be: ``?config set thread_close_message {closer.mention} closed the thread, here is the link to your logs: [**`{logkey}`**]({loglink})``
158+
159+
# v2.14.0
160+
161+
### What's new?
162+
163+
Added the ability to enable the recipient to close their own threads. This takes place in the form of a reaction that the user can click to close their thread. This functionality is now enabled by default.
164+
165+
To disable this, do `?config set disable_recipient_thread_close true`
166+
167+
### More Customisability!
168+
169+
More config variables have been added that you can edit.
170+
171+
- `close_emoji` - the emoji that the user can click on to close a thread. Defaults to a lock (🔒)
172+
173+
You now have complete control of the look of the thread creation and close embeds the users see.
174+
175+
- `thread_creation_title` - the title of the embed. Defaults to 'Thread Created'
176+
- `thread_creation_footer` - the footer text in the embed. Defaults to 'Your message has been sent...'
177+
- `thread_close_title` - the title of the embed. Defaults to 'Thread Closed'
178+
- `thread_close_footer` - the footer text in the embed. Defaults to 'Replying will create a new thread'
179+
180+
# v2.13.13
181+
182+
### What's new?
183+
184+
Added the ability to disable the `sent_emoji` and `blocked_emoji` when a user messages modmail.
185+
186+
You can do this via `?config set sent_emoji disable`
187+
188+
### Fixed
189+
190+
The bot now handles having too many roles to show in the thread created embed.
191+
192+
# v2.13.12
193+
### What's new?
194+
195+
Added image link in title in case discord fails to embed an image.
196+
7197
# v2.13.11
8198

9-
### Added
199+
### What's new?
10200
- Introduced a new configuration variable `account_age` for setting a minimum account creation age.
11201
- Users blocked by this reason will be stored in `blocked` along with other reasons for being blocked.
12202
- `account_age` needs to be an ISO-8601 Duration Format (examples: `P12DT3H` 12 days and 3 hours, `P3Y5M` 3 years and 5 months `PT4H14M999S` 4 hours 14 minutes and 999 seconds). https://en.wikipedia.org/wiki/ISO_8601#Durations.
@@ -37,7 +227,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
37227

38228
# v2.13.7
39229

40-
### Added
230+
### What's new?
41231
- The ability to enable typing interactions.
42232
- If you want the bot to type in the thread channel if the user is also typing, add the config variable `user_typing` and set it to "yes" or "true". use `config del` to disable the functionality. The same thing in reverse is also possible if you want the user to see the bot type when someone is typing in the thread channel add the `mod_typing` config variable.
43233
- New `status` command, change the bot's status to `online`, `idle`, `dnd`, `invisible`, or `offline`.
@@ -54,7 +244,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
54244

55245
# v2.13.5
56246

57-
### Added
247+
### What's new?
58248
- You will no longer need to view your bot debug logs from Heroku. `debug` will show you the recent logs within 24h through a series of embeds.
59249
- If you don't mind your data (may or may not be limited to: user ID, guild ID, bot name) be on the internet, `debug hastebin` will upload a formatted logs file to https://hasteb.in.
60250
- `debug clear` will clear the locally cached logs.
@@ -96,7 +286,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
96286

97287
# v2.13.0
98288

99-
### Added
289+
### What's new?
100290
- Plugins:
101291
- Think of it like addons! Anyone (with the skills) can create a plugin, make it public and distribute it. Add a welcome message to Modmail, or moderation commands? It's all up to your imagination! Have a niche feature request that you think only your server would benefit from? Plugins are your go-to!
102292
- [Creating Plugins Documentation](https://github.com/kyb3r/modmail/wiki/Plugins).
@@ -109,7 +299,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
109299

110300
# v2.12.4
111301

112-
### Added
302+
### What's new?
113303
- Named colors are now supported! Over 900 different common color names are recognized. A list of color names can be found in [core/_color_data.py](https://github.com/kyb3r/modmail/blob/master/core/_color_data.py).
114304
- Named colors can be set the same way as hex. But this can only be done through `config set`, which means database modifications will not work.
115305
- For example: `config set main_color yellowish green`.
@@ -136,7 +326,7 @@ Huge thanks to Sasiko for reporting these issues.
136326

137327
# v2.12.0
138328

139-
### Important
329+
### Important
140330
**In the future, the Modmail API (https://modmail.tk) will be deprecated. This is due to the fact that we are providing a free service without getting anything in return, and thus we do not have the resources to scale to accommodate for more users.
141331
We recommend using your own database for logs. In the future you will soon get a `backup` command so you can download all your pre-existing data and migrate to your own database.**
142332

@@ -146,7 +336,7 @@ We recommend using your own database for logs. In the future you will soon get a
146336
- Bot owners get access to all commands regardless of server permissions.
147337
- Blocked users no longer receive a message, only the blocked emoji will be sent.
148338

149-
### Added
339+
### What's new?
150340
- **Note:** The following commands only work if you are self-hosting your logs. We recommend you to use your own database.
151341
- Log search queries, in the form of two new commands.
152342
- `logs search [query]` - this searches all log messages for a query string.
@@ -159,7 +349,7 @@ We recommend using your own database for logs. In the future you will soon get a
159349

160350
# v2.11.0
161351

162-
### Added
352+
### What's new?
163353
- `loglink` command, returns the log link for the current thread.
164354

165355
# v2.10.2
@@ -174,7 +364,7 @@ We recommend using your own database for logs. In the future you will soon get a
174364

175365
# v2.10.0
176366

177-
### Added
367+
### What's new?
178368
- `anonreply` command to anonymously reply to the recipient.
179369
The username of the anonymous user defaults to the `mod_tag` (the footer text of a mod reply message). The avatar defaults the guild icon URL. However you can change both of these via the `anon_username`, `anon_avatar_url` and `anon_tag` config variables.
180370

@@ -191,7 +381,7 @@ The username of the anonymous user defaults to the `mod_tag` (the footer text of
191381
### Changed
192382
- Forgot to enable custom embed colors.
193383

194-
### Added
384+
### What's new?
195385
- Ability to set a custom `mod_tag` (the text in the footer of the mod reply embed, which by default says "Moderator")
196386

197387
# v2.9.2
@@ -203,7 +393,7 @@ The username of the anonymous user defaults to the `mod_tag` (the footer text of
203393
### Fixed
204394
- Bug where the close command wouldn't work if you didnt configure a log channel.
205395

206-
### Added
396+
### What's new?
207397
- Ability to set your own custom `mod_color` and `recipient_color` for the thread message embeds.
208398

209399
# v2.9.1
@@ -217,7 +407,7 @@ The username of the anonymous user defaults to the `mod_tag` (the footer text of
217407

218408
# v2.9.0
219409

220-
### Added
410+
### What's new?
221411
- New command `note` will add a system message to your thread logs. This is useful for noting the context of a conversation.
222412

223413
# v2.8.1
@@ -235,7 +425,7 @@ The username of the anonymous user defaults to the `mod_tag` (the footer text of
235425

236426
# v2.7.2
237427

238-
### Added
428+
### What's new?
239429
- `config options` command to see a list of valid config variables that you can modify.
240430

241431
### Security
@@ -280,7 +470,7 @@ Thread channels will now default to being private (`@everyone`'s read message pe
280470

281471
# v2.6.0
282472

283-
### Added
473+
### What's new?
284474
- `threads` is now a default alias to `logs`.
285475

286476
### Changed
@@ -330,7 +520,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
330520

331521
# v2.4.2
332522

333-
### Added
523+
### What's new?
334524
- Ability to set your own Twitch URL for `streaming` activity status.
335525

336526
# v2.4.1
@@ -340,7 +530,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
340530

341531
# v2.4.0
342532

343-
### Added
533+
### What's new?
344534
- Added the `activity` command for setting the activity
345535
- [PR #131](https://github.com/kyb3r/modmail/pull/131#issue-244686818) this supports multiple activity types (`playing`, `watching`, `listening` and `streaming`).
346536

@@ -350,7 +540,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
350540

351541
# v2.3.0
352542

353-
### Added
543+
### What's new?
354544
- Ability to self-host logs.
355545

356546
### Changed
@@ -364,7 +554,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
364554

365555
# v2.2.0
366556

367-
### Added
557+
### What's new?
368558
- Notify command `notify [role]`.
369559
- Notify a given role or yourself to the next thread message received.
370560
- Once a thread message is received you will be pinged once only.
@@ -383,7 +573,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
383573

384574
# v2.1.0
385575

386-
### Added
576+
### What's new?
387577
- Ability to set a custom thread creation response message.
388578
- Via `config set thread_creation_response [message]`.
389579

@@ -401,7 +591,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
401591

402592
# v2.0.9
403593

404-
### Added
594+
### What's new?
405595
- Support for custom blocked and sent emoji.
406596
- Use the `config set blocked_emoji [emoji]` or `sent_emoji` commands.
407597

@@ -411,7 +601,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
411601

412602
# v2.0.8
413603

414-
### Added
604+
### What's new?
415605
- Added the ability to use your own log channel.
416606
- You can do this via the `config set log_channel_id <id>` command.
417607
- Added the ability to use your own main inbox category.
@@ -424,7 +614,7 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
424614

425615
# v2.0.7
426616

427-
### Added
617+
### What's new?
428618
- Added a `changelog` command to view the bot's changelog within discord.
429619

430620
### Changed
@@ -488,7 +678,7 @@ Read the updated installation guide [here](https://github.com/kyb3r/modmail/wiki
488678
### Fixed
489679
- `status` command now changes playing status indefinitely.
490680

491-
### Added
681+
### What's new?
492682
- Dynamic `help` command (#84).
493683
- Dynamic configuration through `api.modmail.tk`.
494684
- Thread logs via `logs.modmail.tk` (#78).

0 commit comments

Comments
 (0)