chore: ruff fix

This commit is contained in:
neoarz
2025-11-22 19:51:46 -05:00
parent 4a9b6b1f06
commit 23790c46b4
59 changed files with 65 additions and 147 deletions

View File

@@ -22,7 +22,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
color=0x0169FF,
)
embed.set_author(
name="LiveContainer", icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png"
name="LiveContainer",
icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png",
)
view = LivecontainerView(self.bot)
await context.send(embed=embed, view=view)
@@ -35,7 +36,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
color=0x0169FF,
)
embed.set_author(
name="LiveContainer", icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png"
name="LiveContainer",
icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png",
)
view = LivecontainerView(self.bot)
await context.send(embed=embed, view=view)
@@ -69,7 +71,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
color=0x0169FF,
)
embed.set_author(
name="LiveContainer", icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png"
name="LiveContainer",
icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png",
)
view = LivecontainerView(self.bot)
await interaction.response.send_message(embed=embed, view=view, ephemeral=True)
@@ -88,4 +91,3 @@ async def setup(bot) -> None:
bot.logger.info("Loaded extension 'livecontainer.help'")
bot.logger.info("Loaded extension 'livecontainer.26jit'")

View File

@@ -12,13 +12,24 @@ def jit26_command():
),
)
embed.set_author(
name="LiveContainer", icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png"
name="LiveContainer",
icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png",
)
embed.set_footer(icon_url="https://yes.nighty.works/raw/2PPWd3.webp", text="Made By CelloSerenity")
embed.set_footer(
icon_url="https://yes.nighty.works/raw/2PPWd3.webp",
text="Made By CelloSerenity",
)
view = discord.ui.View()
view.add_item(discord.ui.Button(label="Get Started", url="https://github.com/CelloSerenity/iOS-26-Sideloading-and-JIT-Complete-Walkthrough", style=discord.ButtonStyle.primary, emoji="<:githubicon:1417717356846776340>"))
view.add_item(
discord.ui.Button(
label="Get Started",
url="https://github.com/CelloSerenity/iOS-26-Sideloading-and-JIT-Complete-Walkthrough",
style=discord.ButtonStyle.primary,
emoji="<:githubicon:1417717356846776340>",
)
)
if context.interaction:
await context.interaction.response.send_message(embed=embed, view=view)
else:

View File

@@ -11,7 +11,9 @@ class LivecontainerSelect(discord.ui.Select):
description="Walkthrough for iOS 26 JIT and sideloading",
),
]
super().__init__(placeholder="Choose a LiveContainer command...", options=options)
super().__init__(
placeholder="Choose a LiveContainer command...", options=options
)
async def callback(self, interaction: discord.Interaction):
command_name = self.values[0]