mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
chore: ruff formatting
This commit is contained in:
@@ -27,9 +27,12 @@ class Sidestore(commands.GroupCog, name="sidestore"):
|
||||
embed = discord.Embed(
|
||||
title="SideStore Commands",
|
||||
description="Choose a command from the dropdown below to get help with specific issues:",
|
||||
color=0x8e82f9
|
||||
color=0x8E82F9,
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
view = SidestoreView(self.bot)
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
@@ -38,9 +41,12 @@ class Sidestore(commands.GroupCog, name="sidestore"):
|
||||
embed = discord.Embed(
|
||||
title="SideStore Commands",
|
||||
description="Choose a command from the dropdown below to get help with specific issues:",
|
||||
color=0x8e82f9
|
||||
color=0x8E82F9,
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
view = SidestoreView(self.bot)
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
@@ -97,17 +103,17 @@ class Sidestore(commands.GroupCog, name="sidestore"):
|
||||
async def sidestore_group_sparse(self, context: Context):
|
||||
await self._invoke_hybrid(context, "sparse")
|
||||
|
||||
@app_commands.command(
|
||||
name="help",
|
||||
description="SideStore troubleshooting help"
|
||||
)
|
||||
@app_commands.command(name="help", description="SideStore troubleshooting help")
|
||||
async def help(self, interaction: discord.Interaction):
|
||||
embed = discord.Embed(
|
||||
title="SideStore Commands",
|
||||
description="Choose a command from the dropdown below to get help with specific issues:",
|
||||
color=0x8e82f9
|
||||
color=0x8E82F9,
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
|
||||
view = SidestoreView(self.bot)
|
||||
|
||||
@@ -115,80 +121,70 @@ class Sidestore(commands.GroupCog, name="sidestore"):
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="refresh",
|
||||
description="Help with refreshing or installing apps"
|
||||
name="refresh", description="Help with refreshing or installing apps"
|
||||
)
|
||||
async def refresh(self, context):
|
||||
return await refresh_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="code",
|
||||
description="No code received when signing in with Apple ID"
|
||||
name="code", description="No code received when signing in with Apple ID"
|
||||
)
|
||||
async def code(self, context):
|
||||
return await code_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="crash",
|
||||
description="Help with SideStore crashing issues"
|
||||
name="crash", description="Help with SideStore crashing issues"
|
||||
)
|
||||
async def crash(self, context):
|
||||
return await crash_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="pairing",
|
||||
description="Help with pairing file issues"
|
||||
name="pairing", description="Help with pairing file issues"
|
||||
)
|
||||
async def pairing(self, context):
|
||||
return await pairing_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="server",
|
||||
description="Help with anisette server issues"
|
||||
name="server", description="Help with anisette server issues"
|
||||
)
|
||||
async def server(self, context):
|
||||
return await server_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="afc",
|
||||
description="Help with AFC Connection Failure issues"
|
||||
name="afc", description="Help with AFC Connection Failure issues"
|
||||
)
|
||||
async def afc(self, context):
|
||||
return await afc_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="udid",
|
||||
description="SideStore could not determine device UDID"
|
||||
name="udid", description="SideStore could not determine device UDID"
|
||||
)
|
||||
async def udid(self, context):
|
||||
return await udid_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="half",
|
||||
description="Help with half-installed apps"
|
||||
)
|
||||
@commands.hybrid_command(name="half", description="Help with half-installed apps")
|
||||
async def half(self, context):
|
||||
return await half_command()(self, context)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
@commands.hybrid_command(
|
||||
name="sparse",
|
||||
description="Help with sparse bundle issues"
|
||||
name="sparse", description="Help with sparse bundle issues"
|
||||
)
|
||||
async def sparse(self, context):
|
||||
return await sparse_command()(self, context)
|
||||
|
||||
|
||||
async def setup(bot) -> None:
|
||||
cog = Sidestore(bot)
|
||||
await bot.add_cog(cog)
|
||||
|
||||
|
||||
bot.logger.info("Loaded extension 'sidestore.help'")
|
||||
bot.logger.info("Loaded extension 'sidestore.refresh'")
|
||||
bot.logger.info("Loaded extension 'sidestore.code'")
|
||||
|
||||
@@ -11,36 +11,42 @@ def afc_command():
|
||||
)
|
||||
async def afc(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# AFC Connection Failure\n\n---\n\n' +
|
||||
'1. Make sure Wi-Fi is connected to a stable network\n' +
|
||||
'2. Make sure StosVPN is connected and updated\n' +
|
||||
'3. If issue still persists, create and import a new pairing file using `idevice_pair`. See [Pairing File instructions](https://docs.sidestore.io/docs/installation/pairing-file) for details'
|
||||
)
|
||||
"# AFC Connection Failure\n\n---\n\n"
|
||||
+ "1. Make sure Wi-Fi is connected to a stable network\n"
|
||||
+ "2. Make sure StosVPN is connected and updated\n"
|
||||
+ "3. If issue still persists, create and import a new pairing file using `idevice_pair`. See [Pairing File instructions](https://docs.sidestore.io/docs/installation/pairing-file) for details"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/afc.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/common-issues#afc-connection-failure",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/afc.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/common-issues#afc-connection-failure",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return afc
|
||||
|
||||
@@ -11,49 +11,53 @@ def code_command():
|
||||
)
|
||||
async def code(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'## Verification Code Not Received When Signing In with Apple ID\n\n---\n\n' +
|
||||
|
||||
'1. **For iOS versions below 18.1:**\n' +
|
||||
' - Open the "Settings" app\n' +
|
||||
' - Tap on your name at the top of the screen\n' +
|
||||
' - Navigate to "Sign-In and Security"\n' +
|
||||
' - Select "Two-Factor Authentication"\n' +
|
||||
' - Choose "Get Verification Code"\n\n' +
|
||||
'2. **For iOS versions 18.1 and above:**\n' +
|
||||
' - Visit [iCloud](https://www.icloud.com) on a web browser\n' +
|
||||
' - Click "Sign In"\n' +
|
||||
' - On an Apple device, you may see two options: "Sign In" and "Use Different Apple Account"\n' +
|
||||
' - Select the bottom option, "Use Different Apple Account"\n' +
|
||||
' - Enter your Apple ID and password, DO NOT USE A PASSKEY\n' +
|
||||
' - Apple will send you a verification code\n' +
|
||||
' - Use this code in SideStore to complete the sign-in process\n'
|
||||
"## Verification Code Not Received When Signing In with Apple ID\n\n---\n\n"
|
||||
+ "1. **For iOS versions below 18.1:**\n"
|
||||
+ ' - Open the "Settings" app\n'
|
||||
+ " - Tap on your name at the top of the screen\n"
|
||||
+ ' - Navigate to "Sign-In and Security"\n'
|
||||
+ ' - Select "Two-Factor Authentication"\n'
|
||||
+ ' - Choose "Get Verification Code"\n\n'
|
||||
+ "2. **For iOS versions 18.1 and above:**\n"
|
||||
+ " - Visit [iCloud](https://www.icloud.com) on a web browser\n"
|
||||
+ ' - Click "Sign In"\n'
|
||||
+ ' - On an Apple device, you may see two options: "Sign In" and "Use Different Apple Account"\n'
|
||||
+ ' - Select the bottom option, "Use Different Apple Account"\n'
|
||||
+ " - Enter your Apple ID and password, DO NOT USE A PASSKEY\n"
|
||||
+ " - Apple will send you a verification code\n"
|
||||
+ " - Use this code in SideStore to complete the sign-in process\n"
|
||||
),
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/code.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#sign-in-issues",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/code.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#sign-in-issues",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return code
|
||||
|
||||
@@ -11,36 +11,39 @@ def crash_command():
|
||||
)
|
||||
async def crash(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# SideStore Crashing After Refresh\n\n---\n\n' +
|
||||
'First, to try and save your data:\n' +
|
||||
"1. DON'T DELETE SIDESTORE, reinstall with AltServer's `Sideload .ipa`.\n" +
|
||||
"If that doesn't work:\n" +
|
||||
|
||||
'1. Delete your current SideStore. Reinstall with AltServer.\n' +
|
||||
'2. Import your pairing file and sign into SideStore.\n' +
|
||||
'3. Download the SideStore .ipa file, and save it to your Files app.\n' +
|
||||
'4. Import the "Sidestore.ipa" file into SideStore, just like how you import any other IPA.\n\n' +
|
||||
'This process ensures SideStore is refreshed without issues.'
|
||||
)
|
||||
"# SideStore Crashing After Refresh\n\n---\n\n"
|
||||
+ "First, to try and save your data:\n"
|
||||
+ "1. DON'T DELETE SIDESTORE, reinstall with AltServer's `Sideload .ipa`.\n"
|
||||
+ "If that doesn't work:\n"
|
||||
+ "1. Delete your current SideStore. Reinstall with AltServer.\n"
|
||||
+ "2. Import your pairing file and sign into SideStore.\n"
|
||||
+ "3. Download the SideStore .ipa file, and save it to your Files app.\n"
|
||||
+ '4. Import the "Sidestore.ipa" file into SideStore, just like how you import any other IPA.\n\n'
|
||||
+ "This process ensures SideStore is refreshed without issues."
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/crash.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/crash.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return crash
|
||||
|
||||
@@ -11,42 +11,48 @@ def half_command():
|
||||
)
|
||||
async def half(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# SideStore/IPAs Stuck Halfway Through Installing or Refreshing\n\n---\n' +
|
||||
'- Make sure you are on the latest version of SideStore\n' +
|
||||
'- Restart SideStore\n' +
|
||||
'- Restart device\n' +
|
||||
'- Clear Cache\n' +
|
||||
'- Change Anisette Server\n' +
|
||||
'- Reset adi.pb\n' +
|
||||
'- Sign out from SideStore and sign back in\n' +
|
||||
'- Recreate pairing file\n' +
|
||||
'- Reinstall SideStore\n\n'
|
||||
)
|
||||
"# SideStore/IPAs Stuck Halfway Through Installing or Refreshing\n\n---\n"
|
||||
+ "- Make sure you are on the latest version of SideStore\n"
|
||||
+ "- Restart SideStore\n"
|
||||
+ "- Restart device\n"
|
||||
+ "- Clear Cache\n"
|
||||
+ "- Change Anisette Server\n"
|
||||
+ "- Reset adi.pb\n"
|
||||
+ "- Sign out from SideStore and sign back in\n"
|
||||
+ "- Recreate pairing file\n"
|
||||
+ "- Reinstall SideStore\n\n"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/half.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/common-issues#sidestore-hangs-halfway-through-installation",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/half.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/common-issues#sidestore-hangs-halfway-through-installation",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return half
|
||||
|
||||
@@ -11,47 +11,53 @@ def pairing_command():
|
||||
)
|
||||
async def pairing(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# Cannot Choose Pairing File\n\n---\n\n' +
|
||||
'1. **Check File Extension:**\n' +
|
||||
" Make sure your pairing file's extension ends with `.mobiledevicepairing` or `.plist`\n" +
|
||||
' - If it doesn\'t, double-check to see if you had zipped your pairing file before sending it to your phone. Failing to do so may lead to the file being corrupted during transport\n\n' +
|
||||
'2. **Move Pairing File:**\n' +
|
||||
' If you are unable to select the pairing file from within the app:\n' +
|
||||
' - Rename the file to `ALTPairingFile.mobiledevicepairing`\n' +
|
||||
' - Try moving the pairing file to the root directory of the SideStore folder in the Files app under "On My iPhone/iPad"\n\n' +
|
||||
'3. **Certificate Signing:**\n' +
|
||||
" When signing SideStore with certain certificates, you won't be able to select the pairing file from within the app\n" +
|
||||
' - Try the fix mentioned above\n' +
|
||||
' - If you do not see the SideStore folder in the Files app:\n' +
|
||||
' • Connect your phone to your computer\n' +
|
||||
' • Drag and drop the pairing file into the SideStore app\'s files section\n' +
|
||||
' • Ensure the file is renamed to `ALTPairingFile.mobiledevicepairing`\n'
|
||||
)
|
||||
"# Cannot Choose Pairing File\n\n---\n\n"
|
||||
+ "1. **Check File Extension:**\n"
|
||||
+ " Make sure your pairing file's extension ends with `.mobiledevicepairing` or `.plist`\n"
|
||||
+ " - If it doesn't, double-check to see if you had zipped your pairing file before sending it to your phone. Failing to do so may lead to the file being corrupted during transport\n\n"
|
||||
+ "2. **Move Pairing File:**\n"
|
||||
+ " If you are unable to select the pairing file from within the app:\n"
|
||||
+ " - Rename the file to `ALTPairingFile.mobiledevicepairing`\n"
|
||||
+ ' - Try moving the pairing file to the root directory of the SideStore folder in the Files app under "On My iPhone/iPad"\n\n'
|
||||
+ "3. **Certificate Signing:**\n"
|
||||
+ " When signing SideStore with certain certificates, you won't be able to select the pairing file from within the app\n"
|
||||
+ " - Try the fix mentioned above\n"
|
||||
+ " - If you do not see the SideStore folder in the Files app:\n"
|
||||
+ " • Connect your phone to your computer\n"
|
||||
+ " • Drag and drop the pairing file into the SideStore app's files section\n"
|
||||
+ " • Ensure the file is renamed to `ALTPairingFile.mobiledevicepairing`\n"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/pairing.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#cannot-choose-pairing-file",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/pairing.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#cannot-choose-pairing-file",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return pairing
|
||||
|
||||
@@ -11,37 +11,43 @@ def refresh_command():
|
||||
)
|
||||
async def refresh(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# Can\'t Refresh or Install Apps\n\n---\n\n' +
|
||||
'1. Make sure your device is connected to a stable Wi-Fi network and not using cellular data.\n' +
|
||||
'2. Verify VPN is connected in the StosVPN app.\n' +
|
||||
'3. **Create a brand new pairing file.**\n' +
|
||||
' - If none of the above worked, it is very likely that the pairing file is corrupted. You can reference the documentation on how to create a new pairing file [here](https://docs.sidestore.io/docs/installation/pairing-file).\n'
|
||||
)
|
||||
"# Can't Refresh or Install Apps\n\n---\n\n"
|
||||
+ "1. Make sure your device is connected to a stable Wi-Fi network and not using cellular data.\n"
|
||||
+ "2. Verify VPN is connected in the StosVPN app.\n"
|
||||
+ "3. **Create a brand new pairing file.**\n"
|
||||
+ " - If none of the above worked, it is very likely that the pairing file is corrupted. You can reference the documentation on how to create a new pairing file [here](https://docs.sidestore.io/docs/installation/pairing-file).\n"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by neoarz')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by neoarz")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/refresh.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/installation/pairing-file",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/refresh.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/installation/pairing-file",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return refresh
|
||||
|
||||
@@ -11,41 +11,47 @@ def server_command():
|
||||
)
|
||||
async def server(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# SideStore Freezing or Displaying an Error Code During Sign-In\n\n---\n\n' +
|
||||
'1. **Change the Anisette Server:**\n' +
|
||||
' The most common solution is to switch to a different Anisette server. Do this:\n' +
|
||||
' - Open Sidestore settings\n' +
|
||||
' - Scroll down to the "Anisette Server" option\n' +
|
||||
' - Select a different server from the list\n' +
|
||||
' - You might need to try a few servers from the list and find which works best for you\n\n' +
|
||||
'2. **Host Your Own Anisette Server:**\n' +
|
||||
' If you prefer, you can set up your own Anisette server. Detailed instructions for hosting an Anisette server are available in the official documentation and can be found [here](https://docs.sidestore.io/docs/advanced/anisette).\n\n'
|
||||
)
|
||||
"# SideStore Freezing or Displaying an Error Code During Sign-In\n\n---\n\n"
|
||||
+ "1. **Change the Anisette Server:**\n"
|
||||
+ " The most common solution is to switch to a different Anisette server. Do this:\n"
|
||||
+ " - Open Sidestore settings\n"
|
||||
+ ' - Scroll down to the "Anisette Server" option\n'
|
||||
+ " - Select a different server from the list\n"
|
||||
+ " - You might need to try a few servers from the list and find which works best for you\n\n"
|
||||
+ "2. **Host Your Own Anisette Server:**\n"
|
||||
+ " If you prefer, you can set up your own Anisette server. Detailed instructions for hosting an Anisette server are available in the official documentation and can be found [here](https://docs.sidestore.io/docs/advanced/anisette).\n\n"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/server.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#sidestore-freezing-or-displaying-an-error-code-during-sign-in",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/server.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/troubleshooting/#sidestore-freezing-or-displaying-an-error-code-during-sign-in",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return server
|
||||
|
||||
@@ -53,14 +53,14 @@ class SidestoreSelect(discord.ui.Select):
|
||||
label="UDID Error",
|
||||
value="udid",
|
||||
description="SideStore could not determine device UDID",
|
||||
)
|
||||
),
|
||||
]
|
||||
super().__init__(placeholder="Choose a SideStore command...", options=options)
|
||||
|
||||
async def callback(self, interaction: discord.Interaction):
|
||||
command_name = self.values[0]
|
||||
command = self.bot.get_command(command_name)
|
||||
|
||||
|
||||
if command:
|
||||
try:
|
||||
ctx = await self.bot.get_context(interaction.message)
|
||||
@@ -69,44 +69,60 @@ class SidestoreSelect(discord.ui.Select):
|
||||
embed = discord.Embed(
|
||||
title="Command Executed",
|
||||
description=f"Successfully executed `/{command_name}`",
|
||||
color=0x00FF00
|
||||
color=0x00FF00,
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
await interaction.response.edit_message(embed=embed, view=None)
|
||||
except discord.Forbidden:
|
||||
guild_info = f"server {interaction.guild.name} (ID: {interaction.guild.id})" if interaction.guild else "DM or private channel"
|
||||
self.bot.logger.warning(f"Bot missing permissions in {guild_info} - cannot execute {command_name} command")
|
||||
|
||||
guild_info = (
|
||||
f"server {interaction.guild.name} (ID: {interaction.guild.id})"
|
||||
if interaction.guild
|
||||
else "DM or private channel"
|
||||
)
|
||||
self.bot.logger.warning(
|
||||
f"Bot missing permissions in {guild_info} - cannot execute {command_name} command"
|
||||
)
|
||||
|
||||
if interaction.guild is None:
|
||||
embed = discord.Embed(
|
||||
title="Error",
|
||||
description="This command cannot be executed in DMs.",
|
||||
color=0xFF0000
|
||||
color=0xFF0000,
|
||||
)
|
||||
else:
|
||||
embed = discord.Embed(
|
||||
title="Permission Error",
|
||||
description="The bot needs the `send messages` permission to execute this command.",
|
||||
color=0xFF0000
|
||||
color=0xFF0000,
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
await interaction.response.edit_message(embed=embed, view=None)
|
||||
except Exception as e:
|
||||
self.bot.logger.error(f"Error executing {command_name} command: {e}")
|
||||
embed = discord.Embed(
|
||||
title="Error",
|
||||
description="An error occurred while executing the command.",
|
||||
color=0xFF0000
|
||||
color=0xFF0000,
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
await interaction.response.edit_message(embed=embed, view=None)
|
||||
else:
|
||||
embed = discord.Embed(
|
||||
title="Error",
|
||||
description="Command not found!",
|
||||
color=0xFF0000
|
||||
title="Error", description="Command not found!", color=0xFF0000
|
||||
)
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
await interaction.response.edit_message(embed=embed, view=None)
|
||||
|
||||
|
||||
@@ -127,10 +143,15 @@ def sidestore_command():
|
||||
description="This command can only be used in servers.",
|
||||
color=0xE02B2B,
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, ephemeral=True)
|
||||
await context.interaction.response.send_message(
|
||||
embed=embed, ephemeral=True
|
||||
)
|
||||
else:
|
||||
await context.send(embed=embed, ephemeral=True)
|
||||
return
|
||||
@@ -141,10 +162,15 @@ def sidestore_command():
|
||||
description="The bot needs send messages permissions in this channel.",
|
||||
color=0xE02B2B,
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, ephemeral=True)
|
||||
await context.interaction.response.send_message(
|
||||
embed=embed, ephemeral=True
|
||||
)
|
||||
else:
|
||||
await context.send(embed=embed, ephemeral=True)
|
||||
return
|
||||
@@ -152,15 +178,20 @@ def sidestore_command():
|
||||
embed = discord.Embed(
|
||||
title="SideStore Commands",
|
||||
description="Choose a command from the dropdown below to get help with specific issues:",
|
||||
color=0x8e82f9
|
||||
color=0x8E82F9,
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
|
||||
view = SidestoreView(self.bot)
|
||||
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view, ephemeral=True)
|
||||
await context.interaction.response.send_message(
|
||||
embed=embed, view=view, ephemeral=True
|
||||
)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return sidestore
|
||||
|
||||
@@ -11,36 +11,42 @@ def sparse_command():
|
||||
)
|
||||
async def sparse(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# SparseRestore "Bypass 3 App Limit" Exploit\n\n---\n\n' +
|
||||
'The SparseRestore exploit allows you to bypass the 3-app sideloading limit. It is compatible with iOS/iPadOS versions **15.2 to 18.1 beta 4**, (not including **17.7.1** and **17.7.2**).\n\n' +
|
||||
'iOS/iPadOS versions **17.0** (not including **16.7** and **16.7.10**) are recommended to use [Trollstore](https://ios.cfw.guide/installing-trollstore/)\n\n' +
|
||||
'If you\'re on a supported version and want to sideload more than three apps, follow the detailed instructions found in our documentation'
|
||||
)
|
||||
'# SparseRestore "Bypass 3 App Limit" Exploit\n\n---\n\n'
|
||||
+ "The SparseRestore exploit allows you to bypass the 3-app sideloading limit. It is compatible with iOS/iPadOS versions **15.2 to 18.1 beta 4**, (not including **17.7.1** and **17.7.2**).\n\n"
|
||||
+ "iOS/iPadOS versions **17.0** (not including **16.7** and **16.7.10**) are recommended to use [Trollstore](https://ios.cfw.guide/installing-trollstore/)\n\n"
|
||||
+ "If you're on a supported version and want to sideload more than three apps, follow the detailed instructions found in our documentation"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by neoarz')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by neoarz")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/sparse.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/advanced/sparserestore",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/sparse.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.primary,
|
||||
url="https://docs.sidestore.io/docs/advanced/sparserestore",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return sparse
|
||||
|
||||
@@ -11,35 +11,41 @@ def udid_command():
|
||||
)
|
||||
async def udid(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0x8e82f9,
|
||||
color=0x8E82F9,
|
||||
description=(
|
||||
'# SideStore Could Not Determine Device UDID\n\n---\n\n' +
|
||||
'This error usually occurs when the pairing file is corrupted. Please create a new pairing file using `idevice_pair` and try again.\n\n' +
|
||||
'If you forgot how to create a new pairing file, you can refer to the documentation below.'
|
||||
)
|
||||
"# SideStore Could Not Determine Device UDID\n\n---\n\n"
|
||||
+ "This error usually occurs when the pairing file is corrupted. Please create a new pairing file using `idevice_pair` and try again.\n\n"
|
||||
+ "If you forgot how to create a new pairing file, you can refer to the documentation below."
|
||||
),
|
||||
)
|
||||
embed.set_author(name="SideStore", icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true")
|
||||
embed.set_footer(text=f'Last Edited by CelloSerenity')
|
||||
embed.set_author(
|
||||
name="SideStore",
|
||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/udid.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://docs.sidestore.io/docs/installation/pairing-file/",
|
||||
emoji="<:sidestorepride:1417717648795631787>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/sidestore/udid.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Documentation",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://docs.sidestore.io/docs/installation/pairing-file/",
|
||||
emoji="<:sidestorepride:1417717648795631787>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return udid
|
||||
|
||||
Reference in New Issue
Block a user