mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
pep8 updates
Assorted pep8 updates to retrigger Travis
This commit is contained in:
@@ -94,12 +94,12 @@ class Cleanup:
|
|||||||
channel = ctx.channel
|
channel = ctx.channel
|
||||||
author = ctx.author
|
author = ctx.author
|
||||||
is_bot = self.bot.user.bot
|
is_bot = self.bot.user.bot
|
||||||
|
|
||||||
if number > 100:
|
if number > 100:
|
||||||
cont = await self.check_100_plus(ctx, number)
|
cont = await self.check_100_plus(ctx, number)
|
||||||
if not cont:
|
if not cont:
|
||||||
return
|
return
|
||||||
|
|
||||||
def check(m):
|
def check(m):
|
||||||
if text in m.content:
|
if text in m.content:
|
||||||
return True
|
return True
|
||||||
@@ -134,7 +134,7 @@ class Cleanup:
|
|||||||
channel = ctx.channel
|
channel = ctx.channel
|
||||||
author = ctx.author
|
author = ctx.author
|
||||||
is_bot = self.bot.user.bot
|
is_bot = self.bot.user.bot
|
||||||
|
|
||||||
if number > 100:
|
if number > 100:
|
||||||
cont = await self.check_100_plus(ctx, number)
|
cont = await self.check_100_plus(ctx, number)
|
||||||
if not cont:
|
if not cont:
|
||||||
@@ -217,7 +217,7 @@ class Cleanup:
|
|||||||
author = ctx.author
|
author = ctx.author
|
||||||
|
|
||||||
is_bot = self.bot.user.bot
|
is_bot = self.bot.user.bot
|
||||||
|
|
||||||
if number > 100:
|
if number > 100:
|
||||||
cont = await self.check_100_plus(ctx, number)
|
cont = await self.check_100_plus(ctx, number)
|
||||||
if not cont:
|
if not cont:
|
||||||
@@ -252,7 +252,7 @@ class Cleanup:
|
|||||||
if not cont:
|
if not cont:
|
||||||
return
|
return
|
||||||
|
|
||||||
prefixes = await self.bot.get_prefix(ctx.message) # This returns all server prefixes
|
prefixes = await self.bot.get_prefix(ctx.message) # This returns all server prefixes
|
||||||
if isinstance(prefixes, str):
|
if isinstance(prefixes, str):
|
||||||
prefixes = [prefixes]
|
prefixes = [prefixes]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user