Skip to content

Commit

Permalink
Merge pull request #284 from The-4th-Hokage/deepsource-fix-1c84977c
Browse files Browse the repository at this point in the history
Merge collapsible `if` statements
  • Loading branch information
Dhruvacube authored Oct 30, 2021
2 parents 8c084dc + 25d941d commit 901ea8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
14 changes: 7 additions & 7 deletions minato_namikaze/bot_files/cogs/events/bot_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,13 @@ async def on_member_unban(self, guild, user):
async def on_message(self, message):
if (self.bot.user.mentioned_in(message) and
message.mention_everyone is False and message.content.lower()
in ("<@!779559821162315787>", "<@779559821162315787>") or
message.content.lower() in ("<@!779559821162315787> prefix",
"<@779559821162315787> prefix")):
if not message.author.bot:
await message.channel.send(
"The prefix is **)** ,A full list of all commands is available by typing ```)help```"
)
in ("<@!779559821162315787>", "<@779559821162315787>")
or message.content.lower() in
("<@!779559821162315787> prefix",
"<@779559821162315787> prefix")) and not message.author.bot:
await message.channel.send(
"The prefix is **)** ,A full list of all commands is available by typing ```)help```"
)


def setup(bot):
Expand Down
5 changes: 2 additions & 3 deletions minato_namikaze/bot_files/cogs/moderation/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,8 @@ def predicate(m):
return not r
return r

if args.after:
if args.search is None:
args.search = 2000
if args.after and args.search is None:
args.search = 2000

if args.search is None:
args.search = 100
Expand Down

0 comments on commit 901ea8b

Please sign in to comment.