Skip to content

Commit

Permalink
🚨 Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 3, 2022
1 parent faa60f9 commit 02b890d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 2 additions & 7 deletions cogs/misc/autotranslate.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ async def toggle(self, interaction: discord.Interaction, value: bool):
Choice(name="Minimal Webhook", value="min_webhook"),
]
)
async def style(
self, interaction: discord.Interaction, style: str
):
async def style(self, interaction: discord.Interaction, style: str):
await self.bot.db_pool.execute(
"INSERT INTO guilds (guild_id, auto_translate_reply_style) VALUES ($1, $2) ON CONFLICT(guild_id) DO UPDATE SET auto_translate_reply_style = $2",
interaction.guild.id,
Expand Down Expand Up @@ -82,9 +80,7 @@ async def sensitivity(
description="Toggle original message deletion for auto translate"
)
@app_commands.describe(value="Whether to delete the original message or not")
async def delete_original(
self, interaction: discord.Interaction, value: bool
):
async def delete_original(self, interaction: discord.Interaction, value: bool):
await self.bot.db_pool.execute(
"INSERT INTO guilds (guild_id, auto_translate_delete_original) VALUES ($1, $2) ON CONFLICT(guild_id) DO UPDATE SET auto_translate_delete_original = $2;",
interaction.guild.id,
Expand All @@ -99,7 +95,6 @@ async def delete_original(
ephemeral=True,
)


@commands.Cog.listener()
async def on_message(self, message: discord.Message):
state = await self.bot.db_pool.fetchval(
Expand Down
4 changes: 3 additions & 1 deletion cogs/owner/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class Sync(commands.Cog):
@commands.is_owner()
async def sync(self, ctx):
if hasattr(bot_secrets, "TEST_GUILD"):
self.bot.tree.copy_global_to(guild=discord.Object(id=bot_secrets.TEST_GUILD))
self.bot.tree.copy_global_to(
guild=discord.Object(id=bot_secrets.TEST_GUILD)
)
await self.bot.tree.sync(guild=discord.Object(id=bot_secrets.TEST_GUILD))
else:
await self.bot.tree.sync()
Expand Down

0 comments on commit 02b890d

Please sign in to comment.