diff --git a/birthday/birthday.py b/birthday/birthday.py index f40bfab..abe13d7 100644 --- a/birthday/birthday.py +++ b/birthday/birthday.py @@ -136,7 +136,7 @@ class Birthday(commands.Cog): @commands.guild_only() @checks.admin_or_permissions(administrator=True) async def bdayset(self, ctx): - """ Manage birthday cog settings """ + """Manage birthday cog settings""" pass @bdayset.command(name="dmmessage") @@ -165,7 +165,7 @@ class Birthday(commands.Cog): @bdayset.command(name="channel") async def bdayset_channel(self, ctx, *, channel: discord.TextChannel = None): - """ Set channel to send birthday annoucements """ + """Set channel to send birthday annoucements""" if not channel: await self.config.guild(ctx.guild).channel.clear() else: @@ -176,7 +176,7 @@ class Birthday(commands.Cog): @bdayset.command(name="role") @checks.bot_has_permissions(manage_roles=True) async def bdayset_role(self, ctx, *, role: discord.Role = None): - """ Set role to give users on their birthday """ + """Set role to give users on their birthday""" if not role: await self.config.guild(ctx.guild).role.clear() else: @@ -187,7 +187,7 @@ class Birthday(commands.Cog): @commands.group(name="bday") @commands.guild_only() async def bday(self, ctx): - """ Manage your birthday """ + """Manage your birthday""" pass @bday.command(name="set") @@ -245,7 +245,7 @@ class Birthday(commands.Cog): @bday.command(name="list") async def bday_list(self, ctx): - """ List birthdays in the server """ + """List birthdays in the server""" embeds = [] for member in ctx.guild.members: bday = await self.config.member(member).birthday() diff --git a/confession/confession.py b/confession/confession.py index bbaaf9f..23df0e2 100644 --- a/confession/confession.py +++ b/confession/confession.py @@ -17,7 +17,7 @@ class Confession(commands.Cog): @checks.admin_or_permissions(manage_guild=True) @commands.guild_only() async def confessionset(self, ctx): - """ Manage confession rooms """ + """Manage confession rooms""" pass @confessionset.command(name="confess") diff --git a/markov/markov.py b/markov/markov.py index 100da2e..421d8a1 100644 --- a/markov/markov.py +++ b/markov/markov.py @@ -7,7 +7,7 @@ import asyncio class Markov(commands.Cog): - """ Generate text based on what your members say per channel""" + """Generate text based on what your members say per channel""" def __init__(self, bot): self.bot = bot @@ -40,12 +40,12 @@ class Markov(commands.Cog): @checks.admin_or_permissions(administrator=True) @commands.guild_only() async def markovset(self, ctx): - """ Manage Markov Settings """ + """Manage Markov Settings""" pass @markovset.command(name="clear") async def markovset_clear(self, ctx, *, channel: discord.TextChannel): - """ Clear data for a specific channel """ + """Clear data for a specific channel""" async with self.config.guild(ctx.guild).model() as model: del self.cache[ctx.guild.id]["model"][str(channel.id)] try: # possible that channel is cached but not saved yet diff --git a/personalroles/personalroles.py b/personalroles/personalroles.py index 32a63cc..5ae94e1 100644 --- a/personalroles/personalroles.py +++ b/personalroles/personalroles.py @@ -326,7 +326,7 @@ class PersonalRoles(commands.Cog): @commands.guild_only() @commands.check(has_assigned_role) async def create(self, ctx): - """ Create personal role if you don't have one already """ + """Create personal role if you don't have one already""" role = await self.config.member(ctx.author).role() role = ctx.guild.get_role(role) @@ -384,7 +384,7 @@ class PersonalRoles(commands.Cog): @commands.Cog.listener("on_member_remove") async def remove_role(self, member): - """ Delete personal role if member leaves.""" + """Delete personal role if member leaves.""" if await self.bot.cog_disabled_in_guild(self, member.guild): return role = await self.config.member(member).role() @@ -400,7 +400,7 @@ class PersonalRoles(commands.Cog): @commands.Cog.listener("on_member_update") async def modify_roles(self, before, after): - """ Delete personal role if member looses their auto role or looses their personal role """ + """Delete personal role if member looses their auto role or looses their personal role""" if await self.bot.cog_disabled_in_guild(self, after.guild): return role = await self.config.member(after).role() diff --git a/rolemanagement/core.py b/rolemanagement/core.py index 327ce48..73cca37 100644 --- a/rolemanagement/core.py +++ b/rolemanagement/core.py @@ -230,7 +230,7 @@ class RoleManagement( s_roles.remove(role_id) async def get_cost(self, member: discord.Member, role: discord.Role): - """ Gets cost of a role for a user """ + """Gets cost of a role for a user""" cost = await self.config.role(role).cost() free_roles = await self.config.guild(member.guild).free_roles() @@ -275,7 +275,7 @@ class RoleManagement( @checks.is_owner() @commands.command(name="rrcleanup", hidden=True) async def rolemanagementcleanup(self, ctx: GuildContext): - """ :eyes: """ + """:eyes:""" data = await self.config.custom("REACTROLE").all() key_data = {} diff --git a/rules/rules.py b/rules/rules.py index b3a2643..1488ece 100644 --- a/rules/rules.py +++ b/rules/rules.py @@ -23,7 +23,7 @@ class Rules(commands.Cog): @commands.group(invoke_without_command=True, aliases=["r"]) @commands.guild_only() async def rule(self, ctx, rule_num: int = None): - """ Display guild and channel rules """ + """Display guild and channel rules""" if ctx.invoked_subcommand: return elif rule_num is not None: @@ -37,7 +37,7 @@ class Rules(commands.Cog): @rule.command(name="list") async def rule_list(self, ctx): - """ List all guild rules """ + """List all guild rules""" rules = await self.config.guild(ctx.guild).rules() embeds = [] rules_keys = sorted([int(r) for r in rules.keys()]) diff --git a/scheduler/tasks.py b/scheduler/tasks.py index 7cdffa5..acbc606 100644 --- a/scheduler/tasks.py +++ b/scheduler/tasks.py @@ -138,7 +138,7 @@ class Task: return embed def update_objects(self, bot): - """ Updates objects or throws an AttributeError """ + """Updates objects or throws an AttributeError""" guild_id = self.author.guild.id author_id = self.author.id channel_id = self.channel.id diff --git a/suggestion/suggestion.py b/suggestion/suggestion.py index 00d5519..ec4fc0d 100644 --- a/suggestion/suggestion.py +++ b/suggestion/suggestion.py @@ -415,7 +415,7 @@ class Suggestion(commands.Cog): @checks.bot_has_permissions(manage_channels=True) @setsuggest.command(name="setup") async def setsuggest_setup(self, ctx: commands.Context): - """ Go through the initial setup process. """ + """Go through the initial setup process.""" await self.config.guild(ctx.guild).same.set(False) await self.config.guild(ctx.guild).suggest_id.set(None) await self.config.guild(ctx.guild).approve_id.set(None) @@ -568,7 +568,7 @@ class Suggestion(commands.Cog): @checks.bot_has_permissions(add_reactions=True) @setsuggest.command(name="upemoji") async def setsuggest_upemoji(self, ctx: commands.Context, up_emoji: discord.Emoji = None): - """ Set custom reactions emoji instead of ✅. """ + """Set custom reactions emoji instead of ✅.""" if not up_emoji: await self.config.guild(ctx.guild).up_emoji.set(None) else: @@ -582,7 +582,7 @@ class Suggestion(commands.Cog): @checks.bot_has_permissions(add_reactions=True) @setsuggest.command(name="downemoji") async def setsuggest_downemoji(self, ctx: commands.Context, down_emoji: discord.Emoji = None): - """ Set custom reactions emoji instead of ❎. """ + """Set custom reactions emoji instead of ❎.""" if not down_emoji: await self.config.guild(ctx.guild).up_emoji.set(None) else: @@ -596,7 +596,7 @@ class Suggestion(commands.Cog): @checks.bot_has_permissions(manage_messages=True) @setsuggest.command(name="autodelete") async def setsuggest_autodelete(self, ctx: commands.Context, on_off: bool = None): - """ Toggle whether after `[p]suggest`, the bot deletes the message. """ + """Toggle whether after `[p]suggest`, the bot deletes the message.""" target_state = on_off if on_off else not (await self.config.guild(ctx.guild).delete_suggest()) await self.config.guild(ctx.guild).delete_suggest.set(target_state) if target_state: @@ -642,7 +642,7 @@ class Suggestion(commands.Cog): @setglobal.command(name="ignore") async def setsuggest_setglobal_ignore(self, ctx: commands.Context, server: discord.Guild = None): - """ Ignore suggestions from the server. """ + """Ignore suggestions from the server.""" if not server: server = ctx.guild if server.id not in await self.config.ignore(): @@ -654,7 +654,7 @@ class Suggestion(commands.Cog): @setglobal.command(name="unignore") async def setsuggest_setglobal_unignore(self, ctx: commands.Context, server: discord.Guild = None): - """ Remove server from the ignored list. """ + """Remove server from the ignored list.""" if not server: server = ctx.guild if server.id in await self.config.ignore():