Skip to content

Commit ac73c64

Browse files
committed
Merge branch 'master' of https://github.com/verixx/modmail
2 parents b8cb4dc + c236531 commit ac73c64

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

bot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,14 +845,14 @@ async def on_command_error(self, context, exception):
845845
await context.send(embed=discord.Embed(
846846
color=discord.Color.red(),
847847
description=msg
848-
))
848+
))
849849

850850
elif isinstance(exception, commands.BadArgument):
851851
await context.trigger_typing()
852852
await context.send(embed=discord.Embed(
853853
color=discord.Color.red(),
854854
description=str(exception)
855-
))
855+
))
856856
elif isinstance(exception, commands.CommandNotFound):
857857
logger.warning(error('CommandNotFound: ' + str(exception)))
858858
elif isinstance(exception, commands.MissingRequiredArgument):
@@ -901,7 +901,7 @@ async def validate_database_connection(self):
901901
"This may have been caused by not whitelisting "
902902
"IPs correctly. Make sure to whitelist all "
903903
"IPs (0.0.0.0/0) https://i.imgur.com/mILuQ5U.png"
904-
))
904+
))
905905

906906
if 'OperationFailure' in message:
907907
logger.critical(error("This is due to having invalid credentials in your MONGO_URI."))

cogs/modmail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ async def logs_closed_by(self, ctx, *, user: User = None):
563563
embed = discord.Embed(
564564
color=discord.Color.red(),
565565
description='No log entries have been found for that query'
566-
)
566+
)
567567
return await ctx.send(embed=embed)
568568

569569
session = PaginatorSession(ctx, *embeds)
@@ -585,7 +585,7 @@ async def logs_search(self, ctx, limit: Optional[int] = None, *, query):
585585
'open': False,
586586
'$text': {
587587
'$search': f'"{query}"'
588-
}
588+
}
589589
}
590590

591591
projection = {
@@ -601,7 +601,7 @@ async def logs_search(self, ctx, limit: Optional[int] = None, *, query):
601601
embed = discord.Embed(
602602
color=discord.Color.red(),
603603
description='No log entries have been found for that query'
604-
)
604+
)
605605
return await ctx.send(embed=embed)
606606

607607
session = PaginatorSession(ctx, *embeds)

cogs/plugins.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Plugins(commands.Cog):
3737
Learn how to create a plugin yourself here:
3838
https://github.com/kyb3r/modmail/wiki/Plugins
3939
"""
40+
4041
def __init__(self, bot):
4142
self.bot = bot
4243
self.registry = {}
@@ -387,7 +388,7 @@ def find_index(find_name):
387388
description=details['description'],
388389
url=repo,
389390
title=details['repository']
390-
)
391+
)
391392

392393
embed.add_field(
393394
name='Installation',
@@ -434,7 +435,7 @@ async def plugin_registry_compact(self, ctx):
434435
embed = discord.Embed(
435436
color=self.bot.main_color,
436437
description=page,
437-
)
438+
)
438439
embed.set_author(name='Plugin Registry', icon_url=self.bot.user.avatar_url)
439440
embeds.append(embed)
440441

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ async def oauth_whitelist(self, ctx, target: Union[User, Role]):
12871287
embed.description = (
12881288
f"{'Un-w' if removed else 'W'}hitelisted "
12891289
f"{target.mention} to view logs."
1290-
)
1290+
)
12911291

12921292
await ctx.send(embed=embed)
12931293

core/clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async def get_user_logs(self, user_id: Union[str, int]) -> list:
280280
query = {
281281
'recipient.id': str(user_id),
282282
'guild_id': str(self.bot.guild_id)
283-
}
283+
}
284284

285285
projection = {
286286
'messages': {'$slice': 5}
@@ -345,7 +345,7 @@ async def update_config(self, data: dict):
345345
return await self.db.config.update_one(
346346
{'bot_id': self.bot.user.id},
347347
{'$set': toset, '$unset': unset}
348-
)
348+
)
349349

350350
async def edit_message(self, message_id: Union[int, str],
351351
new_content: str) -> None:

core/thread.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -635,13 +635,13 @@ async def find(self, *,
635635

636636
try:
637637
thread = self.cache[recipient_id]
638-
if not self.bot.get_channel(thread.channel.id): # deleted channel
638+
if not self.bot.get_channel(thread.channel.id): # deleted channel
639639
self.bot.loop.create_task(
640640
thread.close(
641-
closer=self.bot.user,
642-
silent=True,
641+
closer=self.bot.user,
642+
silent=True,
643643
delete_channel=False
644-
))
644+
))
645645
thread = None
646646
except KeyError:
647647
channel = discord.utils.get(

0 commit comments

Comments
 (0)