mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
chore: ruff fix
This commit is contained in:
2
bot.py
2
bot.py
@@ -282,4 +282,4 @@ if __name__ == "__main__":
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger.info("Received keyboard interrupt")
|
logger.info("Received keyboard interrupt")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.critical(f"Fatal error during bot execution: {type(e).__name__}: {e}")
|
logger.critical(f"Fatal error during bot execution: {type(e).__name__}: {e}")
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ from discord import app_commands
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
from discord.ext.commands import Context
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import time
|
|
||||||
import pytz
|
import pytz
|
||||||
from utils.contributors import generate_contributors_image
|
from utils.contributors import generate_contributors_image
|
||||||
|
|
||||||
|
|||||||
@@ -35,5 +35,3 @@ class MentionListener(commands.Cog):
|
|||||||
self.bot.logger.debug(
|
self.bot.logger.debug(
|
||||||
f"Failed to react with fallback emoji: {fallback_error}"
|
f"Failed to react with fallback emoji: {fallback_error}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import random
|
import random
|
||||||
from itertools import repeat
|
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import asyncio
|
import asyncio
|
||||||
@@ -62,21 +61,21 @@ class RowButton(discord.ui.Button):
|
|||||||
|
|
||||||
def checkpos(count, rawpos, pos):
|
def checkpos(count, rawpos, pos):
|
||||||
pos = view.GetBoardPos(rawpos)
|
pos = view.GetBoardPos(rawpos)
|
||||||
if not rawpos - 1 in self.bombs or pos == 0:
|
if rawpos - 1 not in self.bombs or pos == 0:
|
||||||
count.append(rawpos - 1)
|
count.append(rawpos - 1)
|
||||||
if not rawpos + 1 in self.bombs or pos == 4:
|
if rawpos + 1 not in self.bombs or pos == 4:
|
||||||
count.append(rawpos + 1)
|
count.append(rawpos + 1)
|
||||||
if not rawpos - 6 in self.bombs or pos == 0:
|
if rawpos - 6 not in self.bombs or pos == 0:
|
||||||
count.append(rawpos - 6)
|
count.append(rawpos - 6)
|
||||||
if not rawpos - 4 in self.bombs or pos == 4:
|
if rawpos - 4 not in self.bombs or pos == 4:
|
||||||
count.append(rawpos - 4)
|
count.append(rawpos - 4)
|
||||||
if not rawpos + 6 in self.bombs or pos == 4:
|
if rawpos + 6 not in self.bombs or pos == 4:
|
||||||
count.append(rawpos + 6)
|
count.append(rawpos + 6)
|
||||||
if not rawpos + 4 in self.bombs or pos == 0:
|
if rawpos + 4 not in self.bombs or pos == 0:
|
||||||
count.append(rawpos + 4)
|
count.append(rawpos + 4)
|
||||||
if not rawpos - 5 in self.bombs:
|
if rawpos - 5 not in self.bombs:
|
||||||
count.append(rawpos - 5)
|
count.append(rawpos - 5)
|
||||||
if not rawpos + 5 in self.bombs:
|
if rawpos + 5 not in self.bombs:
|
||||||
count.append(rawpos + 5)
|
count.append(rawpos + 5)
|
||||||
return count
|
return count
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import aiohttp
|
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
|
|
||||||
class FeedbackForm(discord.ui.Modal, title="Feeedback"):
|
class FeedbackForm(discord.ui.Modal, title="Feedback"):
|
||||||
feedback = discord.ui.TextInput(
|
feedback = discord.ui.TextInput(
|
||||||
label="What do you think about this bot?",
|
label="What do you think about this bot?",
|
||||||
style=discord.TextStyle.long,
|
style=discord.TextStyle.long,
|
||||||
|
|||||||
@@ -2,10 +2,8 @@ import discord
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import asyncio
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import re
|
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
ONE_MONTH = 2628000
|
ONE_MONTH = 2628000
|
||||||
|
|||||||
@@ -31,7 +31,9 @@ class Idevice(commands.GroupCog, name="idevice"):
|
|||||||
await context.send(embed=embed, view=view)
|
await context.send(embed=embed, view=view)
|
||||||
|
|
||||||
@idevice_group.command(name="errorcodes")
|
@idevice_group.command(name="errorcodes")
|
||||||
async def idevice_group_errorcodes(self, context: Context, *, error_code: str = None):
|
async def idevice_group_errorcodes(
|
||||||
|
self, context: Context, *, error_code: str = None
|
||||||
|
):
|
||||||
await self._invoke_hybrid(context, "errorcodes", error_code=error_code)
|
await self._invoke_hybrid(context, "errorcodes", error_code=error_code)
|
||||||
|
|
||||||
@idevice_group.command(name="developermode")
|
@idevice_group.command(name="developermode")
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def developermode_command():
|
def developermode_command():
|
||||||
@@ -24,7 +21,7 @@ def developermode_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png"
|
name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by neoarz")
|
embed.set_footer(text="Last Edited by neoarz")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import math
|
import math
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def noapps_command():
|
def noapps_command():
|
||||||
@@ -26,7 +23,7 @@ def noapps_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png"
|
name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by neoarz")
|
embed.set_footer(text="Last Edited by neoarz")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -22,7 +22,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
|
|||||||
color=0x0169FF,
|
color=0x0169FF,
|
||||||
)
|
)
|
||||||
embed.set_author(
|
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)
|
view = LivecontainerView(self.bot)
|
||||||
await context.send(embed=embed, view=view)
|
await context.send(embed=embed, view=view)
|
||||||
@@ -35,7 +36,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
|
|||||||
color=0x0169FF,
|
color=0x0169FF,
|
||||||
)
|
)
|
||||||
embed.set_author(
|
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)
|
view = LivecontainerView(self.bot)
|
||||||
await context.send(embed=embed, view=view)
|
await context.send(embed=embed, view=view)
|
||||||
@@ -69,7 +71,8 @@ class Livecontainer(commands.GroupCog, name="livecontainer"):
|
|||||||
color=0x0169FF,
|
color=0x0169FF,
|
||||||
)
|
)
|
||||||
embed.set_author(
|
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)
|
view = LivecontainerView(self.bot)
|
||||||
await interaction.response.send_message(embed=embed, view=view, ephemeral=True)
|
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.help'")
|
||||||
bot.logger.info("Loaded extension 'livecontainer.26jit'")
|
bot.logger.info("Loaded extension 'livecontainer.26jit'")
|
||||||
|
|
||||||
|
|||||||
@@ -12,13 +12,24 @@ def jit26_command():
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
embed.set_author(
|
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 = 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:
|
if context.interaction:
|
||||||
await context.interaction.response.send_message(embed=embed, view=view)
|
await context.interaction.response.send_message(embed=embed, view=view)
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ class LivecontainerSelect(discord.ui.Select):
|
|||||||
description="Walkthrough for iOS 26 JIT and sideloading",
|
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):
|
async def callback(self, interaction: discord.Interaction):
|
||||||
command_name = self.values[0]
|
command_name = self.values[0]
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import asyncio
|
|
||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
import discord
|
import discord
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
import io
|
import io
|
||||||
import tempfile
|
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
import discord
|
import discord
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ class TweetyView(discord.ui.View):
|
|||||||
|
|
||||||
os.remove(temp_file_path)
|
os.remove(temp_file_path)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Error",
|
title="Error",
|
||||||
description="Error regenerating tweet image",
|
description="Error regenerating tweet image",
|
||||||
@@ -462,7 +462,7 @@ def tweety_command():
|
|||||||
)
|
)
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Tweet Generated",
|
title="Tweet Generated",
|
||||||
description=f"<:error:1424007141768822824> Tweet sometimes may look a bit broken, im gonna rewrite the API another time... (it wasnt made for Syntrel in the first place)",
|
description="<:error:1424007141768822824> Tweet sometimes may look a bit broken, im gonna rewrite the API another time... (it wasnt made for Syntrel in the first place)",
|
||||||
color=0x7289DA,
|
color=0x7289DA,
|
||||||
)
|
)
|
||||||
embed.set_author(
|
embed.set_author(
|
||||||
@@ -491,7 +491,7 @@ def tweety_command():
|
|||||||
await processing_msg.delete()
|
await processing_msg.delete()
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Error",
|
title="Error",
|
||||||
description=f"Connection error: Could not reach tweet API",
|
description="Connection error: Could not reach tweet API",
|
||||||
color=0xE02B2B,
|
color=0xE02B2B,
|
||||||
)
|
)
|
||||||
embed.set_author(
|
embed.set_author(
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def error_command():
|
def error_command():
|
||||||
@@ -23,7 +20,7 @@ def error_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def crash_command():
|
def crash_command():
|
||||||
@@ -26,7 +23,7 @@ def crash_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def ios26_command():
|
def ios26_command():
|
||||||
@@ -26,7 +23,7 @@ def ios26_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def legal_command():
|
def legal_command():
|
||||||
@@ -38,7 +35,7 @@ def legal_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by stossy11")
|
embed.set_footer(text="Last Edited by stossy11")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def mods_command():
|
def mods_command():
|
||||||
@@ -29,7 +26,7 @@ def mods_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def requirements_command():
|
def requirements_command():
|
||||||
@@ -24,7 +21,7 @@ def requirements_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def transfer_command():
|
def transfer_command():
|
||||||
@@ -35,7 +32,7 @@ def transfer_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
name="MeloNX", icon_url="https://yes.nighty.works/raw/TLGaVa.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"Last Edited by Meshal :D")
|
embed.set_footer(text="Last Edited by Meshal :D")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -57,4 +57,3 @@ def upgrade_command():
|
|||||||
await context.send(embed=embed, view=view)
|
await context.send(embed=embed, view=view)
|
||||||
|
|
||||||
return upgrade
|
return upgrade
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import discord
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def duck_command():
|
def duck_command():
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import random
|
import random
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def labubu_command():
|
def labubu_command():
|
||||||
@@ -52,7 +51,7 @@ def labubu_command():
|
|||||||
embed.set_author(
|
embed.set_author(
|
||||||
name="Labubu", icon_url="https://yes.nighty.works/raw/YxMC0r.png"
|
name="Labubu", icon_url="https://yes.nighty.works/raw/YxMC0r.png"
|
||||||
)
|
)
|
||||||
embed.set_footer(text=f"May look broken on mobile")
|
embed.set_footer(text="May look broken on mobile")
|
||||||
|
|
||||||
if getattr(context, "interaction", None):
|
if getattr(context, "interaction", None):
|
||||||
inter = context.interaction
|
inter = context.interaction
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import discord
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def silly_command():
|
def silly_command():
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import io
|
import io
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import discord
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def tryitandsee_command():
|
def tryitandsee_command():
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from datetime import datetime
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def archive_command():
|
def archive_command():
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def ban_command():
|
def ban_command():
|
||||||
@@ -222,7 +221,7 @@ def ban_command():
|
|||||||
)
|
)
|
||||||
await context.send(embed=embed, ephemeral=True)
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Error!",
|
title="Error!",
|
||||||
description="An unexpected error occurred.",
|
description="An unexpected error occurred.",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def hackban_command():
|
def hackban_command():
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def kick_command():
|
def kick_command():
|
||||||
@@ -142,7 +141,7 @@ def kick_command():
|
|||||||
)
|
)
|
||||||
await context.send(embed=embed, ephemeral=True)
|
await context.send(embed=embed, ephemeral=True)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception:
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title="Error!",
|
title="Error!",
|
||||||
description="An unexpected error occurred.",
|
description="An unexpected error occurred.",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def nick_command():
|
def nick_command():
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
|
|
||||||
|
|
||||||
def purge_command():
|
def purge_command():
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ class Logs(commands.Cog, name="logs"):
|
|||||||
selected_lines = all_lines[-lines:] if len(all_lines) > lines else all_lines
|
selected_lines = all_lines[-lines:] if len(all_lines) > lines else all_lines
|
||||||
log_content = "".join(selected_lines)
|
log_content = "".join(selected_lines)
|
||||||
|
|
||||||
log_file = f"logs.txt"
|
log_file = "logs.txt"
|
||||||
with open(log_file, "w", encoding="utf-8") as f:
|
with open(log_file, "w", encoding="utf-8") as f:
|
||||||
f.write(
|
f.write(
|
||||||
f"Bot logs extracted at {discord.utils.utcnow().strftime('%Y-%m-%d %H:%M:%S')} UTC\n"
|
f"Bot logs extracted at {discord.utils.utcnow().strftime('%Y-%m-%d %H:%M:%S')} UTC\n"
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def afc_command():
|
def afc_command():
|
||||||
@@ -23,7 +20,7 @@ def afc_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def code_command():
|
def code_command():
|
||||||
@@ -34,7 +31,7 @@ def code_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def crash_command():
|
def crash_command():
|
||||||
@@ -28,7 +25,7 @@ def crash_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def half_command():
|
def half_command():
|
||||||
@@ -29,7 +26,7 @@ def half_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def pairing_command():
|
def pairing_command():
|
||||||
@@ -34,7 +31,7 @@ def pairing_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def refresh_command():
|
def refresh_command():
|
||||||
@@ -24,7 +21,7 @@ def refresh_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by neoarz")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def server_command():
|
def server_command():
|
||||||
@@ -28,7 +25,7 @@ def server_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
class SidestoreSelect(discord.ui.Select):
|
class SidestoreSelect(discord.ui.Select):
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def sparse_command():
|
def sparse_command():
|
||||||
@@ -23,7 +20,7 @@ def sparse_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by neoarz")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import time
|
|
||||||
|
|
||||||
|
|
||||||
def udid_command():
|
def udid_command():
|
||||||
@@ -22,7 +19,7 @@ def udid_command():
|
|||||||
name="SideStore",
|
name="SideStore",
|
||||||
icon_url="https://github.com/SideStore/assets/blob/main/icons/classic/Default.png?raw=true",
|
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_footer(text="Last Edited by CelloSerenity")
|
||||||
embed.timestamp = discord.utils.utcnow()
|
embed.timestamp = discord.utils.utcnow()
|
||||||
|
|
||||||
view = discord.ui.View()
|
view = discord.ui.View()
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import re
|
import re
|
||||||
import json
|
|
||||||
|
|
||||||
|
|
||||||
def codepreview_command():
|
def codepreview_command():
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
|
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ def dictionary_command():
|
|||||||
}
|
}
|
||||||
except aiohttp.ClientError:
|
except aiohttp.ClientError:
|
||||||
return {"success": False, "error": "Network error occurred"}
|
return {"success": False, "error": "Network error occurred"}
|
||||||
except Exception as e:
|
except Exception:
|
||||||
return {"success": False, "error": "An unexpected error occurred"}
|
return {"success": False, "error": "An unexpected error occurred"}
|
||||||
|
|
||||||
@commands.hybrid_command(
|
@commands.hybrid_command(
|
||||||
@@ -124,7 +123,7 @@ def dictionary_command():
|
|||||||
meanings = entry.get("meanings", [])
|
meanings = entry.get("meanings", [])
|
||||||
|
|
||||||
embed = discord.Embed(
|
embed = discord.Embed(
|
||||||
title=f"Dictionary",
|
title="Dictionary",
|
||||||
description=f"**```{word_title}```**",
|
description=f"**```{word_title}```**",
|
||||||
color=0x7289DA,
|
color=0x7289DA,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,12 +1,9 @@
|
|||||||
import discord
|
import discord
|
||||||
from discord import app_commands
|
from discord import app_commands
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from discord.ext.commands import Context
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import asyncio
|
|
||||||
import re
|
import re
|
||||||
import json
|
import json
|
||||||
import urllib.parse
|
|
||||||
|
|
||||||
|
|
||||||
languages = {
|
languages = {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# From https://github.com/neoarz/Velora/blob/main/Velora/ui/ascii.py
|
# From https://github.com/neoarz/Velora/blob/main/Velora/ui/ascii.py
|
||||||
|
|
||||||
import math
|
|
||||||
|
|
||||||
|
|
||||||
def gradient_text(text, start_color, end_color):
|
def gradient_text(text, start_color, end_color):
|
||||||
|
|||||||
Reference in New Issue
Block a user