feat: finish cellos command

This commit is contained in:
neoarz
2025-11-22 14:40:48 -05:00
parent 50243773ec
commit 3b2ca697e0
4 changed files with 16 additions and 30 deletions

View File

@@ -1,22 +0,0 @@
import discord
from discord.ext.commands import Context
def jit26_command():
async def command(self, context: Context):
embed = discord.Embed(
title="Hello World",
description="hello world",
color=0x0169FF,
)
embed.set_author(
name="26JIT", icon_url="https://raw.githubusercontent.com/LiveContainer/LiveContainer/main/screenshots/livecontainer_icon.png"
)
if context.interaction:
await context.interaction.response.send_message(embed=embed, ephemeral=True)
else:
await context.send(embed=embed)
return command

View File

@@ -76,7 +76,7 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
@commands.check(_require_group_prefix) @commands.check(_require_group_prefix)
@commands.hybrid_command( @commands.hybrid_command(
name="26jit", description="26JIT information" name="26jit", description="Interactive walkthrough for iOS 26 JIT and sideloading"
) )
async def jit26(self, context): async def jit26(self, context):
return await jit26_command()(self, context) return await jit26_command()(self, context)

View File

@@ -5,15 +5,23 @@ from discord.ext.commands import Context
def jit26_command(): def jit26_command():
async def command(self, context: Context): async def command(self, context: Context):
embed = discord.Embed( embed = discord.Embed(
title="Hello World",
description="hello world",
color=0x0169FF, color=0x0169FF,
description=(
"# iOS 26 JIT & Sideloading Walkthrough\n\n---\n\n"
"Click the [button below](https://github.com/CelloSerenity/iOS-26-Sideloading-and-JIT-Complete-Walkthrough) to get started with iOS 26 JIT and sideloading."
),
) )
embed.set_author(
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")
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>"))
if context.interaction: if context.interaction:
await context.interaction.response.send_message(embed=embed) await context.interaction.response.send_message(embed=embed, view=view)
else: else:
await context.send(embed=embed) await context.send(embed=embed, view=view)
return command return command

View File

@@ -6,9 +6,9 @@ class LivecontainerSelect(discord.ui.Select):
self.bot = bot self.bot = bot
options = [ options = [
discord.SelectOption( discord.SelectOption(
label="26JIT", label="iOS 26 JIT & Sideloading",
value="26jit", value="26jit",
description="26JIT information", description="Interactive 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)