Skip to content

Commit 2b23a7b

Browse files
committed
Merge branch 'master' of https://github.com/verixx/modmail
2 parents 421d3ee + 451b3fa commit 2b23a7b

File tree

3 files changed

+26
-13
lines changed

3 files changed

+26
-13
lines changed

CHANGELOG.md

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- New command `note` will add a system message to your thread logs. This is useful for noting the context of a conversation.
1111

1212
# v2.8.1
13+
1314
### Fixed
14-
- Fixed bug where thread logs were getting duplicated when using the contact command.
15+
- Fixed bug where thread logs were getting duplicated when using the `contact` command.
16+
- Fixed bug where the wrong key was used for logs which caused some `log` command log links to point to an HTTP 404 Not Found.
17+
- A minor oversight from commit 1ba74d9.
1518

1619
# v2.8.0
20+
1721
### Changed
18-
- Major improvement in thread log viewing.
19-
- Log links are now rendered in html instead of plain text.
22+
- Major improvement in viewing thread logs.
23+
- Log links are now rendered in HTML instead of plain text.
2024

2125
# v2.7.2
2226

2327
### Added
2428
- `config options` command to see a list of valid config variables that you can modify.
2529

2630
### Security
27-
Thread channels will now default to being private (@everyone's read message perms set to false) if the thread creation category could not be resolved. This will save you from some trouble if for whatever reason your configuration gets messed up 🌚
31+
Thread channels will now default to being private (`@everyone`'s read message perms set to `false`).
32+
- If the thread creation category could not be resolved.
33+
- This will save you from some trouble if for whatever reason your configuration gets messed up.
2834

2935
# v2.7.1
3036

3137
### Changed
3238

33-
- All reference to "modmail"/"Mod Mail"/"ModMail" are changed to "Modmail".
39+
- All reference to "modmail" / "Mod Mail" / "ModMail" are changed to "Modmail".
3440
- `log_channel_id` is now part of the config upon `setup`.
35-
- Added the ability to set where tickets are created using the `main_category_id` configuration option.
41+
- Added the ability to set where threads are created using the `main_category_id` configuration option.
42+
43+
### Important Note
44+
45+
- If your Modmail bot was set up a long time ago, you may experience an issue where messages were sent outside of the category.
46+
- To fix this, set `main_category_id` to the ID of the Modmail category.
47+
3648
# v2.7.0
3749

3850
### Changed
@@ -52,19 +64,19 @@ Fixed log URLs for self-hosting users.
5264
# v2.6.1
5365

5466
### Fixed
55-
- API BASE URL
67+
- Replaced the testing `API_BASE_URL` with the actual URL.
5668

5769
# v2.6.0
5870

5971
Mostly internal changes. Some are slightly breaking. Keep a lookout for broken features and report them on our server.
6072

6173
### Added
62-
- `threads` is now a default alias to `logs`
74+
- `threads` is now a default alias to `logs`.
6375

6476
### Changed
6577
- Log URLs are moved to their own collection.
6678
- Log URLs are now `https://logs.modmail.tk/LOGKEY`, no more numbers before the log key.
67-
- We still support the numbers so as to not break everyone's URLs so quickly but both work atm :p
79+
- We still support the numbers so as to not break everyone's URLs so quickly but both work at the moment.
6880
- This is a huge change to the backend logging and there might be migration errors. If so, please contact us at our [discord server](https://discord.gg/2fMbf2N)
6981

7082
# v2.5.2
@@ -79,7 +91,8 @@ Non breaking internal changes.
7991

8092
### Background
8193
Bots hosted by Heroku restart at least once every 27 hours.
82-
During this period, local caches are deleted, which results in the inability to set the scheduled close time to longer than 24 hours. This update resolves this issue. [PR #135](https://github.com/kyb3r/modmail/pull/135)
94+
During this period, local caches are deleted, which results in the inability to set the scheduled close time to longer than 24 hours. This update resolves this issue.
95+
- [PR #135](https://github.com/kyb3r/modmail/pull/135)
8396

8497

8598
### Changed

cogs/modmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ async def logs(self, ctx, *, member: Union[discord.Member, discord.User, obj]=No
345345
new_day = date.strftime(r'%d %b %Y')
346346
time = date.strftime(r'%H:%M')
347347

348-
key = entry['_id']
348+
key = entry['key']
349349
closer = entry['closer']['name']
350350
log_url = f"https://logs.modmail.tk/{key}" if not self.bot.selfhosted else self.bot.config.log_url.strip('/') + f'/logs/{key}'
351351

core/time.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class ShortTime:
1616
(?:(?P<weeks>[0-9]{1,4})(?:weeks?|w))? # e.g. 10w
1717
(?:(?P<days>[0-9]{1,5})(?:days?|d))? # e.g. 14d
1818
(?:(?P<hours>[0-9]{1,5})(?:hours?|h))? # e.g. 12h
19-
(?:(?P<minutes>[0-9]{1,5})(?:minutes?|m))? # e.g. 10m
20-
(?:(?P<seconds>[0-9]{1,5})(?:seconds?|s))? # e.g. 15s
19+
(?:(?P<minutes>[0-9]{1,5})(?:min(?:ute)?s?|m))? # e.g. 10m
20+
(?:(?P<seconds>[0-9]{1,5})(?:sec(?:ond)s?|s))? # e.g. 15s
2121
""", re.VERBOSE)
2222

2323
def __init__(self, argument):

0 commit comments

Comments
 (0)