Skip to content

Commit 656b34a

Browse files
committed
pylint
1 parent d19a510 commit 656b34a

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

bot.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,20 +741,20 @@ async def on_guild_channel_delete(self, channel):
741741
async def on_member_remove(self, member):
742742
thread = await self.threads.find(recipient=member)
743743
if thread:
744-
em = discord.Embed(
744+
embed = discord.Embed(
745745
description='The recipient has left the server.',
746746
color=discord.Color.red()
747747
)
748-
await thread.channel.send(embed=em)
748+
await thread.channel.send(embed=embed)
749749

750750
async def on_member_join(self, member):
751751
thread = await self.threads.find(recipient=member)
752752
if thread:
753-
em = discord.Embed(
753+
embed = discord.Embed(
754754
description='The recipient has joined the server.',
755755
color=self.mod_color
756756
)
757-
await thread.channel.send(embed=em)
757+
await thread.channel.send(embed=embed)
758758

759759
async def on_message_delete(self, message):
760760
"""Support for deleting linked messages"""

cogs/modmail.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import asyncio
2+
import re
23
from datetime import datetime
34
from typing import Optional, Union
45

56
import discord
67
from discord.ext import commands
78

8-
import re
9-
109
from dateutil import parser
1110
from natural.date import duration
1211

@@ -708,9 +707,9 @@ async def block(self, ctx, user: Optional[User] = None, *,
708707
reason = after.arg
709708
if reason.startswith('System Message: '):
710709
raise commands.UserInputError
711-
elif re.search(r'%(.+?)%$', reason) is not None:
710+
if re.search(r'%(.+?)%$', reason) is not None:
712711
raise commands.UserInputError
713-
elif after.dt > after.now:
712+
if after.dt > after.now:
714713
reason = f'{reason} %{after.dt.isoformat()}%'
715714

716715
if not reason:

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ async def activity(self, ctx, activity_type: str.lower, *, message: str = ''):
445445
activity_identifier=activity_type,
446446
activity_by_key=True,
447447
activity_message=message
448-
))['activity']
448+
))['activity']
449449
if activity is None:
450450
raise commands.UserInputError
451451

core/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ConfigManager(ConfigManagerABC):
2929
'thread_creation_response', 'thread_creation_footer', 'thread_creation_title',
3030
'thread_close_footer', 'thread_close_title', 'thread_close_response',
3131
'thread_self_close_response',
32-
32+
3333
# moderation
3434
'recipient_color', 'mod_tag', 'mod_color',
3535

0 commit comments

Comments
 (0)