Skip to content

Commit 39e1256

Browse files
committed
Merge branch 'master' of https://github.com/verixx/modmail
2 parents 16ec640 + 513aad9 commit 39e1256

File tree

7 files changed

+41
-38
lines changed

7 files changed

+41
-38
lines changed

CHANGELOG.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
# v2.6.3
1515

16-
Fixed small issue in thread finding.
16+
Fixed small issue with finding thread.
1717

1818
# v2.6.2
1919

20-
Fixed log urls for selfhosting users. (This shouldn't affect anyone)
20+
Fixed log URLs for self-hosting users.
21+
(This shouldn't affect anyone.)
2122

2223
# v2.6.1
2324

@@ -33,17 +34,19 @@ Mostly internal changes. Some are slightly breaking. Keep a lookout for broken f
3334

3435
### Changed
3536
- Log URLs are moved to their own collection.
36-
- Log URLs are now `https://logs.modmail.tk/LOGKEY`, no more numbers before the logkey.
37-
- We still support the numbers so as to not break everyone's urls so quickly but both work atm :p
37+
- Log URLs are now `https://logs.modmail.tk/LOGKEY`, no more numbers before the log key.
38+
- We still support the numbers so as to not break everyone's URLs so quickly but both work atm :p
3839
- 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)
3940

4041
# v2.5.2
4142

42-
Non-Breaking Internal Changes. (This shouldn't affect anyone.)
43+
Non breaking internal changes.
44+
(This shouldn't affect anyone.)
4345

4446
# v2.5.0
4547

46-
Non-Breaking Internal Changes. (This shouldn't affect anyone.)
48+
Non breaking internal changes.
49+
(This shouldn't affect anyone.)
4750

4851
### Background
4952
Bots hosted by Heroku restart at least once every 27 hours.
@@ -103,11 +106,11 @@ Breaking changes.
103106

104107
### Changed
105108
- Improved format for log channel embeds.
106-
- Roles are now comma separated in info embed.
109+
- Roles are now comma-separated in info embed.
107110
- This only applies to separate server setups.
108111

109112
### Fixed
110-
- Bug in subscribe command, it will now unsubscribe after a thread is closed.
113+
- Bug in subscribe command; it will now unsubscribe after a thread is closed.
111114

112115
# v2.2.0
113116

@@ -153,7 +156,7 @@ Breaking changes.
153156
- Use the `config set blocked_emoji` or `sent_emoji` commands.
154157

155158
### Quick Fix
156-
- Support multiple image and file attachments in one message.
159+
- Support multiple images and file attachments in one message.
157160
- This is only possible on mobile so its good to handle it in code.
158161

159162
# v2.0.8
@@ -179,16 +182,16 @@ New command and improvements in bot update message interfaces.
179182
- Added a `changelog` command to view the bot's changelog within discord.
180183

181184
### Changed
182-
- Update command now shows latest changes directly from the [CHANGELOG.md](https://modmail.tk/) in the repo.
183-
- Auto update messages also show latest changes from repo.
184-
- Remove latest changes section from the `about` command.
185+
- `update` command now shows the latest changes directly from the [CHANGELOG.md](https://modmail.tk/) in the repo.
186+
- Auto update messages also show the latest changes from the GitHub repo.
187+
- Removed "latest changes" section from the `about` command.
185188

186189
# v2.0.6
187190

188191
### Fixed
189192
- Fix logs sending duplicated thread close logs.
190193
- The bot will now tell you that a user is no longer in the server when you try to reply to a thread.
191-
- Before this, it looked like you replied to the thread but in reality the message didnt get sent.
194+
- Before this, it looked like you replied to the thread, but in reality, the message didn't get sent.
192195

193196
# v2.0.5
194197

@@ -199,15 +202,15 @@ New command and improvements in bot update message interfaces.
199202
# v2.0.4
200203

201204
### Fixed
202-
- Fixed a one off bug where the channel topic disappears, but modmail operations should still continue.
205+
- Fixed a one-off bug where the channel topic disappears, but modmail operations should still continue.
203206
- Fixed `linked_message_id` issues.
204207

205208
# v2.0.3
206209

207210
Fixed some issues with how data is displayed in the info embed.
208211

209212
### Fixed
210-
- Thread creation embed now shows the correct amount of past logs.
213+
- Thread creation embed now shows the correct number of past logs.
211214
- If using a separate server setup, roles in the info embed now are shown as names instead of mentions.
212215
- This is due to the fact that you can't mention roles across servers.
213216

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ When a user sends a direct message to the bot, a channel is created within an is
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 do 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 have any problems join our [discord server](https://discord.gg/etJNHCQ) or just join anyways :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? 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.
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. 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def main_category(self):
147147
if category_id is not None:
148148
return discord.utils.get(self.modmail_guild.categories, id=int(category_id))
149149
if self.modmail_guild:
150-
return discord.utils.get(self.modmail_guild.categories, name='Mod Mail')
150+
return discord.utils.get(self.modmail_guild.categories, name='Modmail')
151151

152152
@property
153153
def blocked_users(self):

cogs/modmail.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def obj(arg):
2626
@trigger_typing
2727
@commands.has_permissions(administrator=True)
2828
async def setup(self, ctx):
29-
"""Sets up a server for modmail"""
29+
"""Sets up a server for Modmail"""
3030
if self.bot.main_category:
3131
return await ctx.send(f'{self.bot.modmail_guild} is already set up.')
3232

3333
categ = await self.bot.modmail_guild.create_category(
34-
name='Mod Mail',
34+
name='Modmail',
3535
overwrites=self.bot.overwrites(ctx)
3636
)
3737

@@ -295,7 +295,7 @@ async def unsubscribe(self, ctx, *, role=None):
295295

296296
@commands.command()
297297
async def nsfw(self, ctx):
298-
"""Flags a modmail thread as nsfw."""
298+
"""Flags a Modmail thread as nsfw."""
299299
thread = await self.bot.threads.find(channel=ctx.channel)
300300
if thread is None:
301301
return
@@ -306,7 +306,7 @@ async def nsfw(self, ctx):
306306
@commands.has_permissions(manage_messages=True)
307307
@trigger_typing
308308
async def logs(self, ctx, *, member: Union[discord.Member, discord.User, obj]=None):
309-
"""Shows a list of previous modmail thread logs of a member."""
309+
"""Shows a list of previous Modmail thread logs of a member."""
310310

311311
if not member:
312312
thread = await self.bot.threads.find(channel=ctx.channel)
@@ -465,7 +465,7 @@ async def blocked(self, ctx):
465465
@trigger_typing
466466
@commands.has_permissions(manage_channels=True)
467467
async def block(self, ctx, user: Union[discord.Member, discord.User, obj]=None, *, reason=None):
468-
"""Block a user from using modmail."""
468+
"""Block a user from using Modmail."""
469469

470470
if user is None:
471471
thread = await self.bot.threads.find(channel=ctx.channel)
@@ -499,7 +499,7 @@ async def block(self, ctx, user: Union[discord.Member, discord.User, obj]=None,
499499
@trigger_typing
500500
@commands.has_permissions(manage_channels=True)
501501
async def unblock(self, ctx, *, user: Union[discord.Member, discord.User, obj]=None):
502-
"""Unblocks a user from using modmail."""
502+
"""Unblocks a user from using Modmail."""
503503

504504
if user is None:
505505
thread = await self.bot.threads.find(channel=ctx.channel)

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@ async def changelog(self, ctx):
168168
async def about(self, ctx):
169169
"""Shows information about the bot."""
170170
em = discord.Embed(color=0x36393F, timestamp=datetime.datetime.utcnow())
171-
em.set_author(name='Mod Mail - About', icon_url=self.bot.user.avatar_url)
171+
em.set_author(name='Modmail - About', icon_url=self.bot.user.avatar_url)
172172
em.set_thumbnail(url=self.bot.user.avatar_url)
173173

174-
em.description = 'This is an open source discord bot that serves'\
174+
em.description = 'This is an open source Discord bot that serves'\
175175
' as a means for members to easily communicate with'\
176176
' server leadership in an organised manner.'
177177

core/thread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ async def _close(self, closer, silent=False, delete_channel=True,
134134

135135
em = discord.Embed(title='Thread Closed', color=discord.Color.red())
136136
em.description = message or \
137-
f'{closer.mention} has closed this modmail thread.'
137+
f'{closer.mention} has closed this Modmail thread.'
138138

139139
if not silent and self.recipient is not None:
140140
tasks.append(self.recipient.send(embed=em))
@@ -315,7 +315,7 @@ def get_notifications(self):
315315

316316

317317
class ThreadManager:
318-
"""Class that handles storing, finding and creating modmail threads."""
318+
"""Class that handles storing, finding and creating Modmail threads."""
319319

320320
def __init__(self, bot):
321321
self.bot = bot
@@ -396,7 +396,7 @@ async def _find_from_channel(self, channel):
396396
return thread
397397

398398
async def create(self, recipient, *, creator=None, category=None):
399-
"""Creates a modmail thread"""
399+
"""Creates a Modmail thread"""
400400

401401
em = discord.Embed(
402402
title='Thread created!',

0 commit comments

Comments
 (0)