mirror of
https://github.com/neoarz/Syntrel.git
synced 2026-05-12 07:45:40 +02:00
Compare commits
2 Commits
f6d3fc4bb4
...
copilot/io
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cad8995324 | ||
|
|
70c21cdc0d |
@@ -8,7 +8,7 @@ def jit26_command():
|
|||||||
color=0x0169FF,
|
color=0x0169FF,
|
||||||
description=(
|
description=(
|
||||||
"# iOS 26 JIT & Sideloading Walkthrough\n\n---\n\n"
|
"# 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 set up sideloading and enabling JIT for LiveContainer on iOS 26."
|
"Click the [button below](https://docvault.celloserenity.dev/walkthroughs/LiveContainer-iOS-26-JIT/) to set up sideloading and enabling JIT for LiveContainer on iOS 26."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
embed.set_author(
|
embed.set_author(
|
||||||
@@ -24,7 +24,7 @@ def jit26_command():
|
|||||||
view.add_item(
|
view.add_item(
|
||||||
discord.ui.Button(
|
discord.ui.Button(
|
||||||
label="Get Started",
|
label="Get Started",
|
||||||
url="https://github.com/CelloSerenity/iOS-26-Sideloading-and-JIT-Complete-Walkthrough",
|
url="https://docvault.celloserenity.dev/walkthroughs/LiveContainer-iOS-26-JIT/",
|
||||||
style=discord.ButtonStyle.primary,
|
style=discord.ButtonStyle.primary,
|
||||||
emoji="<:githubicon:1417717356846776340>",
|
emoji="<:githubicon:1417717356846776340>",
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -21,6 +21,17 @@ def archive_command():
|
|||||||
:param context: The hybrid command context.
|
:param context: The hybrid command context.
|
||||||
:param limit: The limit of messages that should be archived. Default is 10.
|
:param limit: The limit of messages that should be archived. Default is 10.
|
||||||
"""
|
"""
|
||||||
|
if not context.author.guild_permissions.manage_messages:
|
||||||
|
embed = discord.Embed(
|
||||||
|
title="Missing Permissions!",
|
||||||
|
description="You are missing the permission(s) `manage_messages` to execute this command!",
|
||||||
|
color=0xE02B2B,
|
||||||
|
).set_author(
|
||||||
|
name="Moderation", icon_url="https://yes.nighty.works/raw/CPKHQd.png"
|
||||||
|
)
|
||||||
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
return
|
||||||
|
|
||||||
log_file = f"{context.channel.id}.log"
|
log_file = f"{context.channel.id}.log"
|
||||||
|
|
||||||
messages = []
|
messages = []
|
||||||
|
|||||||
@@ -23,6 +23,33 @@ def hackban_command():
|
|||||||
:param reason: The reason for the ban. Default is "Not specified".
|
:param reason: The reason for the ban. Default is "Not specified".
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
|
if (
|
||||||
|
not context.author.guild_permissions.ban_members
|
||||||
|
and context.author != context.guild.owner
|
||||||
|
):
|
||||||
|
embed = discord.Embed(
|
||||||
|
title="Missing Permissions!",
|
||||||
|
description="You don't have the `Ban Members` permission to use this command.",
|
||||||
|
color=0xE02B2B,
|
||||||
|
).set_author(
|
||||||
|
name="Moderation",
|
||||||
|
icon_url="https://yes.nighty.works/raw/CPKHQd.png",
|
||||||
|
)
|
||||||
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
if not context.guild.me.guild_permissions.ban_members:
|
||||||
|
embed = discord.Embed(
|
||||||
|
title="Missing Permissions!",
|
||||||
|
description="I am missing the permission(s) `ban_members` to execute this command!",
|
||||||
|
color=0xE02B2B,
|
||||||
|
).set_author(
|
||||||
|
name="Moderation",
|
||||||
|
icon_url="https://yes.nighty.works/raw/CPKHQd.png",
|
||||||
|
)
|
||||||
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
return
|
||||||
|
|
||||||
await self.bot.http.ban(user_id, context.guild.id, reason=reason)
|
await self.bot.http.ban(user_id, context.guild.id, reason=reason)
|
||||||
user = self.bot.get_user(int(user_id)) or await self.bot.fetch_user(
|
user = self.bot.get_user(int(user_id)) or await self.bot.fetch_user(
|
||||||
int(user_id)
|
int(user_id)
|
||||||
|
|||||||
@@ -15,6 +15,28 @@ def purge_command():
|
|||||||
user="The user whose messages should be deleted (optional).",
|
user="The user whose messages should be deleted (optional).",
|
||||||
)
|
)
|
||||||
async def purge(self, context, amount: int, user: discord.Member = None):
|
async def purge(self, context, amount: int, user: discord.Member = None):
|
||||||
|
if not context.author.guild_permissions.manage_messages:
|
||||||
|
embed = discord.Embed(
|
||||||
|
title="Missing Permissions!",
|
||||||
|
description="You are missing the permission(s) `manage_messages` to execute this command!",
|
||||||
|
color=0xE02B2B,
|
||||||
|
).set_author(
|
||||||
|
name="Moderation", icon_url="https://yes.nighty.works/raw/CPKHQd.png"
|
||||||
|
)
|
||||||
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
if not context.guild.me.guild_permissions.manage_messages:
|
||||||
|
embed = discord.Embed(
|
||||||
|
title="Missing Permissions!",
|
||||||
|
description="I am missing the permission(s) `manage_messages` to execute this command!",
|
||||||
|
color=0xE02B2B,
|
||||||
|
).set_author(
|
||||||
|
name="Moderation", icon_url="https://yes.nighty.works/raw/CPKHQd.png"
|
||||||
|
)
|
||||||
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
return
|
||||||
|
|
||||||
if context.interaction:
|
if context.interaction:
|
||||||
await context.defer(ephemeral=True)
|
await context.defer(ephemeral=True)
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ def afc_command():
|
|||||||
"# AFC Connection Failure\n\n---\n\n"
|
"# AFC Connection Failure\n\n---\n\n"
|
||||||
+ "1. Make sure Wi-Fi is connected to a stable network\n"
|
+ "1. Make sure Wi-Fi is connected to a stable network\n"
|
||||||
+ "2. Make sure LocalDevVPN is connected and updated\n"
|
+ "2. Make sure LocalDevVPN is connected and updated\n"
|
||||||
+ "3. If issue still persists, replace pairing file using `iloader`. See [Pairing File instructions](https://docs.sidestore.io/docs/advanced/pairing-file) for details"
|
+ "3. If issue still persists, replace pairing file using `iloader`. See [Pairing File instructions](https://docs.sidestore.io/docs/advanced/pairing-file) for details\n"
|
||||||
|
+ "-# These steps also apply to heartbeat failures from other idevice-based apps such as StikDebug."
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
embed.set_author(
|
embed.set_author(
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ def pairing_command():
|
|||||||
color=0x8E82F9,
|
color=0x8E82F9,
|
||||||
description=(
|
description=(
|
||||||
"# How to obtain your pairing file:\n\n---\n\n"
|
"# How to obtain your pairing file:\n\n---\n\n"
|
||||||
+ "[Click here](https://docs.sidestore.io/advanced/pairing-file) to read the SideStore documentation on replacing your pairing file.\n"
|
+ "[Click here](https://docs.sidestore.io/docs/advanced/pairing-file) to read the SideStore documentation on replacing your pairing file.\n"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
embed.set_author(
|
embed.set_author(
|
||||||
|
|||||||
Reference in New Issue
Block a user