Skip to content

Commit 88a2957

Browse files
committed
Merge from "master"
2 parents e82f25b + bddfbdc commit 88a2957

File tree

9 files changed

+261
-136
lines changed

9 files changed

+261
-136
lines changed

CHANGELOG.md

Lines changed: 98 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,104 @@ 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+
# v2.9.1
8+
Changed order of arguments for the contact command. This is so that you can use aliases to their full potential.
9+
For example:
10+
- `contact "Recruitment Category" @somedude`
11+
12+
You can add an alias by doing: `alias add recruit contact "Recruitment Category"`
13+
14+
Now you can use the alias via: `recruit @somedude`
15+
16+
# v2.9.0
17+
18+
### Added
19+
- New command `note` will add a system message to your thread logs. This is useful for noting the context of a conversation.
20+
21+
# v2.8.1
22+
23+
### Fixed
24+
- Fixed bug where thread logs were getting duplicated when using the `contact` command.
25+
- 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.
26+
- A minor oversight from commit 1ba74d9.
27+
28+
# v2.8.0
29+
30+
### Changed
31+
- Major improvement in viewing thread logs.
32+
- Log links are now rendered in HTML instead of plain text.
33+
34+
# v2.7.2
35+
36+
### Added
37+
- `config options` command to see a list of valid config variables that you can modify.
38+
39+
### Security
40+
Thread channels will now default to being private (`@everyone`'s read message perms set to `false`).
41+
- If the thread creation category could not be resolved.
42+
- This will save you from some trouble if for whatever reason your configuration gets messed up.
43+
44+
# v2.7.1
45+
46+
### Changed
47+
48+
- All reference to "modmail" / "Mod Mail" / "ModMail" are changed to "Modmail".
49+
- `log_channel_id` is now part of the config upon `setup`.
50+
- Added the ability to set where threads are created using the `main_category_id` configuration option.
51+
52+
### Important Note
53+
54+
- If your Modmail bot was set up a long time ago, you may experience an issue where messages were sent outside of the category.
55+
- To fix this, set `main_category_id` to the ID of the Modmail category.
56+
57+
# v2.7.0
58+
59+
### Changed
60+
61+
- `move` command now syncs thread channel permissions with the category that it was moved to.
62+
- `contact` command now supports an optional category argument (where the thread channel will be created).
63+
764
# v2.6.3
865

9-
Fixed small issue in thread finding.
66+
Fixed small issue with finding thread.
1067

1168
# v2.6.2
1269

13-
Fixed log urls for selfhosting users. (This shouldn't affect anyone)
70+
Fixed log URLs for self-hosting users.
71+
(This shouldn't affect anyone.)
1472

1573
# v2.6.1
1674

1775
### Fixed
18-
- API BASE URL
76+
- Replaced the testing `API_BASE_URL` with the actual URL.
1977

2078
# v2.6.0
2179

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

2482
### Added
25-
- `threads` is now a default alias to `logs`
83+
- `threads` is now a default alias to `logs`.
2684

2785
### Changed
2886
- Log URLs are moved to their own collection.
29-
- Log URLs are now `https://logs.modmail.tk/LOGKEY`, no more numbers before the logkey.
30-
- We still support the numbers so as to not break everyone's urls so quickly but both work atm :p
87+
- Log URLs are now `https://logs.modmail.tk/LOGKEY`, no more numbers before the log key.
88+
- We still support the numbers so as to not break everyone's URLs so quickly but both work at the moment.
3189
- 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)
3290

3391
# v2.5.2
3492

35-
Non-Breaking Internal Changes. (This shouldn't affect anyone.)
93+
Non breaking internal changes.
94+
(This shouldn't affect anyone.)
3695

3796
# v2.5.0
3897

39-
Non-Breaking Internal Changes. (This shouldn't affect anyone.)
98+
Non breaking internal changes.
99+
(This shouldn't affect anyone.)
40100

41101
### Background
42102
Bots hosted by Heroku restart at least once every 27 hours.
43-
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)
103+
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.
104+
- [PR #135](https://github.com/kyb3r/modmail/pull/135)
44105

45106

46107
### Changed
@@ -49,7 +110,7 @@ During this period, local caches are deleted, which results in the inability to
49110
- Loaded upon bot restart.
50111
- Deleted when a thread is closed.
51112
- Use `call_later()` instead of `sleep()` for scheduling.
52-
113+
53114
# v2.4.5
54115

55116
### Fixed
@@ -65,42 +126,42 @@ Fixed a bug in activity command where it would fail to set the activity on bot r
65126
This update shouldn't affect anyone.
66127

67128
### Changed
68-
- Moved self-hosted log viewer to a separate repo.
69-
129+
- Moved self-hosted log viewer to a separate repo.
130+
70131
# v2.4.2
71132

72-
### Added
133+
### Added
73134
- Ability to set your own Twitch URL for `streaming` activity status.
74135

75136
# v2.4.1
76137

77-
### Fixed
78-
- Small bug in `activity` command.
138+
### Fixed
139+
- Small bug in `activity` command.
79140

80141
# v2.4.0
81142

82143
Breaking changes.
83144

84-
### Added
145+
### Added
85146
- Added the `activity` command for setting the activity
86147
- [PR #131](https://github.com/kyb3r/modmail/pull/131#issue-244686818) this supports multiple activity types (`playing`, `watching`, `listening` and `streaming`).
87148

88149
### Removed
89-
- Removed the deprecated `status` command.
90-
- This also means you will have to reset your bot status with the `activity` command, as `status` command is removed.
150+
- Removed the deprecated `status` command.
151+
- This also means you will have to reset your bot status with the `activity` command, as `status` command is removed.
91152

92153
# v2.3.0
93154

94-
### Added
155+
### Added
95156
- Ability to self-host logs.
96157

97158
### Changed
98159
- Improved format for log channel embeds.
99-
- Roles are now comma separated in info embed.
160+
- Roles are now comma-separated in info embed.
100161
- This only applies to separate server setups.
101162

102163
### Fixed
103-
- Bug in subscribe command, it will now unsubscribe after a thread is closed.
164+
- Bug in subscribe command; it will now unsubscribe after a thread is closed.
104165

105166
# v2.2.0
106167

@@ -141,47 +202,47 @@ Breaking changes.
141202

142203
# v2.0.9
143204

144-
### Added
205+
### Added
145206
- Support for custom blocked emoji and sent emoji.
146207
- Use the `config set blocked_emoji` or `sent_emoji` commands.
147208

148209
### Quick Fix
149-
- Support multiple image and file attachments in one message.
210+
- Support multiple images and file attachments in one message.
150211
- This is only possible on mobile so its good to handle it in code.
151212

152213
# v2.0.8
153214

154215
Improvements to commands and new config options available.
155216

156-
### Added
217+
### Added
157218
- Added the ability to use your own log channel.
158219
- You can do this via the `config set log_channel_id <id>` command.
159220
- Added the ability to use your own main inbox category.
160221
- You can do this via the `config set main_category_id <id>` command.
161222

162223
### Changed
163-
- You now have the ability to supply a reason when blocking a user.
224+
- You now have the ability to supply a reason when blocking a user.
164225
- Blocked users are now stored in the database instead of in the channel topic.
165226
- This means you can delete the top channel in the modmail category now. (Migrate first though.)
166227

167228
# v2.0.7
168229

169-
New command and improvements in bot update message interfaces.
230+
New command and improvements in bot update message interfaces.
170231

171-
### Added
232+
### Added
172233
- Added a `changelog` command to view the bot's changelog within discord.
173234

174235
### Changed
175-
- Update command now shows latest changes directly from the [CHANGELOG.md](https://modmail.tk/) in the repo.
176-
- Auto update messages also show latest changes from repo.
177-
- Remove latest changes section from the `about` command.
236+
- `update` command now shows the latest changes directly from the [CHANGELOG.md](https://modmail.tk/) in the repo.
237+
- Auto update messages also show the latest changes from the GitHub repo.
238+
- Removed "latest changes" section from the `about` command.
178239

179240
# v2.0.6
180241

181242
### Fixed
182243
- Fix logs sending duplicated thread close logs.
183244
- The bot will now tell you that a user is no longer in the server when you try to reply to a thread.
184-
- Before this, it looked like you replied to the thread but in reality the message didnt get sent.
245+
- Before this, it looked like you replied to the thread, but in reality, the message didn't get sent.
185246

186247
# v2.0.5
187248

@@ -192,22 +253,22 @@ New command and improvements in bot update message interfaces.
192253
# v2.0.4
193254

194255
### Fixed
195-
- Fixed a one off bug where the channel topic disappears, but modmail operations should still continue.
256+
- Fixed a one-off bug where the channel topic disappears, but modmail operations should still continue.
196257
- Fixed `linked_message_id` issues.
197258

198259
# v2.0.3
199260

200261
Fixed some issues with how data is displayed in the info embed.
201262

202263
### Fixed
203-
- Thread creation embed now shows the correct amount of past logs.
264+
- Thread creation embed now shows the correct number of past logs.
204265
- If using a separate server setup, roles in the info embed now are shown as names instead of mentions.
205266
- This is due to the fact that you can't mention roles across servers.
206267

207268
# v2.0.2
208269

209270
### Security
210-
- Made the `logs` command require "manage messages" permissions to execute.
271+
- Made the `logs` command require "manage messages" permissions to execute.
211272
- Before this patch, anyone could use the `logs` commands.
212273

213274
# v2.0.1
@@ -223,15 +284,15 @@ Bug fixes and minor improvements.
223284

224285
# v2.0.0
225286

226-
This release introduces the use of our centralized [API service](https://github.com/kyb3r/webserver) to enable dynamic configuration, auto-updates, and thread logs.
227-
To use this release you must acquire an API token from https://modmail.tk.
287+
This release introduces the use of our centralized [API service](https://github.com/kyb3r/webserver) to enable dynamic configuration, auto-updates, and thread logs.
288+
To use this release you must acquire an API token from https://modmail.tk.
228289
Read the updated installation guide [here](https://github.com/kyb3r/modmail/wiki/installation).
229290

230291
### Changed
231292
- Stability improvements through synchronization primitives.
232293
- Refactor thread management and code.
233294
- Update command now uses `api.modmail.tk`.
234-
- `contact` command no longer tells the user you messaged them 👻
295+
- `contact` command no longer tells the user you messaged them 👻
235296

236297
### Fixed
237298
- `status` command now changes playing status indefinitely.

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,32 +39,32 @@
3939

4040
<img src='https://i.imgur.com/GGukNDs.png' align='right' height=300>
4141

42-
When a user sends a direct message to the bot, a channel is created within an isolated category. This channel is where messages will be relayed. To reply to a message, simply use the command `reply` in the channel. See a full list of commands [below](#features-and-commands).
42+
When a user sends a direct message to the bot, a channel is created within an isolated category. This channel is where messages will be relayed. To reply to the message, simply use the command `reply` in the channel. See a full list of commands [below](#features-and-commands).
4343

4444

4545
## Installation
4646

47-
You have two options for using this bot, hosting on Heroku or self hosting the bot. If you choose to install the bot using Heroku, you do not need to download anything. Read the installation guide [here](https://github.com/kyb3r/modmail/wiki/Installation) or watch the **[video tutorial](https://youtu.be/TH_1QfKUl_k)**. If you have any problems join our [discord server](https://discord.gg/etJNHCQ) or just join anyways :wink:
47+
You have two options for using this bot, host on Heroku or self-host the bot. If you choose to install the bot using Heroku, you will not need to download anything. Read the **[installation guide](https://github.com/kyb3r/modmail/wiki/Installation)** or watch the **[video tutorial](https://youtu.be/TH_1QfKUl_k)**. If you ran into any problems, join our [discord server](https://discord.gg/etJNHCQ) for help and support. Even if you don't have any issues, you should come and check out our awesome Discord community! :wink:
4848

49-
## What is heroku?
49+
## What is Heroku?
5050

51-
Heroku is a container based cloud platform that currently offers a free plan to host web apps. However, these apps have an ephemeral file system and thus cannot store any data on site. We have made Mod Mail to be accessible to anyone while still being feature rich, it's a community run project that lets anyone get it up and running 24/7 for free. So how does our bot store data? Config and logs are stored in a [centralised web service](https://modmail.tk) hosted by us. This enables you to get started easily and fast.
51+
Heroku is a container based cloud platform that currently offers a free plan to host web apps. However, these apps have an ephemeral file system and thus cannot store any data on site. We have made Modmail be accessible to anyone while still being feature-rich; it's a community run project that lets anyone get it up and running 24/7 for free. So how does our bot store data? Configs and logs are stored in a [centralized web service](https://modmail.tk) hosted by us. This enables you to get started easily and fast.
5252

53-
## Self hosted logs
53+
## Self-hosted logs
5454

55-
If you want complete control over your data and do not want to use the centralised API service, you can self host your logs. You can do this by adding two config variables:
55+
If you want complete control over your data and do not want to use the centralized API service, you can self-host your logs. We recommend this if you want stability and security for your bot. You can do this by adding two config variables:
5656

57-
* `MONGO_URI` - Mongodb connection URI, you can get a free 500mb cluster from [mongodb atlas](https://www.mongodb.com/cloud/atlas).
58-
* `LOG_URL` - The url of your log viewer heroku app (`https://yourlogviewerappname.herokuapp.com`)
57+
* `MONGO_URI` - MongoDB connection URI, you can get a free 500 MB cluster from [MongoDB Atlas](https://www.mongodb.com/cloud/atlas).
58+
* `LOG_URL` - The URL of your log viewer Heroku app (`https://yourlogviewerappname.herokuapp.com`)
5959

60-
You also need to create a separate heroku app for the log viewer that you can deploy from [here](https://github.com/kyb3r/logviewer).
60+
You also need to create a separate Heroku app for the log viewer that you can deploy from [here](https://github.com/kyb3r/logviewer).
6161

6262
## Features and Commands
6363
The bot comes with a plethora of useful functionality. Take a look at the [list of commands](https://github.com/kyb3r/modmail/wiki/Features-and-commands).
6464

6565

6666
### Automatic Updates
67-
The bot checks for new updates every hour and automatically updates to a newer version if found. This bot is under active development so you can always look forward to new, useful features! If you do not want this functionality, for example if you want to make changes to your fork, you can do so by adding a `disable_autoupdates` config variable.
67+
The bot checks for new updates every hour and automatically updates to a newer version if found. This bot is under active development so you can always look forward to new, useful features! If you do not want this functionality, for example, if you want to make changes to your fork, you can do so by adding a `disable_autoupdates` config variable.
6868

6969
## Contributing
7070
This project is licenced under MIT. If you have ideas for commands create an issue or pull request. Contributions are always welcome, whether it be documentation improvements or new functionality, please feel free to create a pull request.

app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "ModMail",
3-
"description": "An easy to install ModMail bot for Discord - DM to contact mods!",
2+
"name": "Modmail",
3+
"description": "An easy to install Modmail bot for Discord - DM to contact mods!",
44
"repository": "https://github.com/kyb3r/modmail",
55
"env": {
66
"TOKEN": {

bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = '2.6.3'
25+
__version__ = '2.9.1'
2626

2727
import discord
2828
from discord.enums import ActivityType
@@ -163,7 +163,7 @@ def main_category(self):
163163

164164
if self.modmail_guild:
165165
return discord.utils.get(self.modmail_guild.categories,
166-
name='Mod Mail')
166+
name='Modmail')
167167

168168
@property
169169
def blocked_users(self):

0 commit comments

Comments
 (0)