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:
@@ -4,7 +4,6 @@ from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
from datetime import datetime
|
||||
import time
|
||||
import pytz
|
||||
from utils.contributors import generate_contributors_image
|
||||
|
||||
|
||||
@@ -35,5 +35,3 @@ class MentionListener(commands.Cog):
|
||||
self.bot.logger.debug(
|
||||
f"Failed to react with fallback emoji: {fallback_error}"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import random
|
||||
from itertools import repeat
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import asyncio
|
||||
@@ -62,21 +61,21 @@ class RowButton(discord.ui.Button):
|
||||
|
||||
def checkpos(count, rawpos, pos):
|
||||
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)
|
||||
if not rawpos + 1 in self.bombs or pos == 4:
|
||||
if rawpos + 1 not in self.bombs or pos == 4:
|
||||
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)
|
||||
if not rawpos - 4 in self.bombs or pos == 4:
|
||||
if rawpos - 4 not in self.bombs or pos == 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)
|
||||
if not rawpos + 4 in self.bombs or pos == 0:
|
||||
if rawpos + 4 not in self.bombs or pos == 0:
|
||||
count.append(rawpos + 4)
|
||||
if not rawpos - 5 in self.bombs:
|
||||
if rawpos - 5 not in self.bombs:
|
||||
count.append(rawpos - 5)
|
||||
if not rawpos + 5 in self.bombs:
|
||||
if rawpos + 5 not in self.bombs:
|
||||
count.append(rawpos + 5)
|
||||
return count
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import aiohttp
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
class FeedbackForm(discord.ui.Modal, title="Feeedback"):
|
||||
class FeedbackForm(discord.ui.Modal, title="Feedback"):
|
||||
feedback = discord.ui.TextInput(
|
||||
label="What do you think about this bot?",
|
||||
style=discord.TextStyle.long,
|
||||
|
||||
@@ -2,10 +2,8 @@ import discord
|
||||
from discord.ext import commands
|
||||
from discord import app_commands
|
||||
import aiohttp
|
||||
import asyncio
|
||||
from io import BytesIO
|
||||
from PIL import Image
|
||||
import re
|
||||
from datetime import datetime, timezone
|
||||
|
||||
ONE_MONTH = 2628000
|
||||
|
||||
@@ -31,7 +31,9 @@ class Idevice(commands.GroupCog, name="idevice"):
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
@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)
|
||||
|
||||
@idevice_group.command(name="developermode")
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def developermode_command():
|
||||
@@ -24,7 +21,7 @@ def developermode_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import json
|
||||
import os
|
||||
import math
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import os
|
||||
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def noapps_command():
|
||||
@@ -26,7 +23,7 @@ def noapps_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -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'")
|
||||
|
||||
|
||||
@@ -12,12 +12,23 @@ 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)
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import asyncio
|
||||
import os
|
||||
import tempfile
|
||||
import discord
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import asyncio
|
||||
import io
|
||||
import tempfile
|
||||
from typing import Optional
|
||||
|
||||
import discord
|
||||
|
||||
@@ -267,7 +267,7 @@ class TweetyView(discord.ui.View):
|
||||
|
||||
os.remove(temp_file_path)
|
||||
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
embed = discord.Embed(
|
||||
title="Error",
|
||||
description="Error regenerating tweet image",
|
||||
@@ -462,7 +462,7 @@ def tweety_command():
|
||||
)
|
||||
embed = discord.Embed(
|
||||
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,
|
||||
)
|
||||
embed.set_author(
|
||||
@@ -491,7 +491,7 @@ def tweety_command():
|
||||
await processing_msg.delete()
|
||||
embed = discord.Embed(
|
||||
title="Error",
|
||||
description=f"Connection error: Could not reach tweet API",
|
||||
description="Connection error: Could not reach tweet API",
|
||||
color=0xE02B2B,
|
||||
)
|
||||
embed.set_author(
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def error_command():
|
||||
@@ -23,7 +20,7 @@ def error_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def crash_command():
|
||||
@@ -26,7 +23,7 @@ def crash_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def ios26_command():
|
||||
@@ -26,7 +23,7 @@ def ios26_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def legal_command():
|
||||
@@ -38,7 +35,7 @@ def legal_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def mods_command():
|
||||
@@ -29,7 +26,7 @@ def mods_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def requirements_command():
|
||||
@@ -24,7 +21,7 @@ def requirements_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def transfer_command():
|
||||
@@ -35,7 +32,7 @@ def transfer_command():
|
||||
embed.set_author(
|
||||
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()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -57,4 +57,3 @@ def upgrade_command():
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
return upgrade
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def duck_command():
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import random
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def labubu_command():
|
||||
@@ -52,7 +51,7 @@ def labubu_command():
|
||||
embed.set_author(
|
||||
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):
|
||||
inter = context.interaction
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def silly_command():
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def tryitandsee_command():
|
||||
|
||||
@@ -3,7 +3,6 @@ from datetime import datetime
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def archive_command():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def ban_command():
|
||||
@@ -222,7 +221,7 @@ def ban_command():
|
||||
)
|
||||
await context.send(embed=embed, ephemeral=True)
|
||||
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
embed = discord.Embed(
|
||||
title="Error!",
|
||||
description="An unexpected error occurred.",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def hackban_command():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def kick_command():
|
||||
@@ -142,7 +141,7 @@ def kick_command():
|
||||
)
|
||||
await context.send(embed=embed, ephemeral=True)
|
||||
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
embed = discord.Embed(
|
||||
title="Error!",
|
||||
description="An unexpected error occurred.",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
def nick_command():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
|
||||
|
||||
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
|
||||
log_content = "".join(selected_lines)
|
||||
|
||||
log_file = f"logs.txt"
|
||||
log_file = "logs.txt"
|
||||
with open(log_file, "w", encoding="utf-8") as f:
|
||||
f.write(
|
||||
f"Bot logs extracted at {discord.utils.utcnow().strftime('%Y-%m-%d %H:%M:%S')} UTC\n"
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def afc_command():
|
||||
@@ -23,7 +20,7 @@ def afc_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def code_command():
|
||||
@@ -34,7 +31,7 @@ def code_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def crash_command():
|
||||
@@ -28,7 +25,7 @@ def crash_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def half_command():
|
||||
@@ -29,7 +26,7 @@ def half_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def pairing_command():
|
||||
@@ -34,7 +31,7 @@ def pairing_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def refresh_command():
|
||||
@@ -24,7 +21,7 @@ def refresh_command():
|
||||
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_footer(text="Last Edited by neoarz")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def server_command():
|
||||
@@ -28,7 +25,7 @@ def server_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
class SidestoreSelect(discord.ui.Select):
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def sparse_command():
|
||||
@@ -23,7 +20,7 @@ def sparse_command():
|
||||
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_footer(text="Last Edited by neoarz")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import time
|
||||
|
||||
|
||||
def udid_command():
|
||||
@@ -22,7 +19,7 @@ def udid_command():
|
||||
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_footer(text="Last Edited by CelloSerenity")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import re
|
||||
import json
|
||||
|
||||
|
||||
def codepreview_command():
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
|
||||
|
||||
@@ -38,7 +37,7 @@ def dictionary_command():
|
||||
}
|
||||
except aiohttp.ClientError:
|
||||
return {"success": False, "error": "Network error occurred"}
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
return {"success": False, "error": "An unexpected error occurred"}
|
||||
|
||||
@commands.hybrid_command(
|
||||
@@ -124,7 +123,7 @@ def dictionary_command():
|
||||
meanings = entry.get("meanings", [])
|
||||
|
||||
embed = discord.Embed(
|
||||
title=f"Dictionary",
|
||||
title="Dictionary",
|
||||
description=f"**```{word_title}```**",
|
||||
color=0x7289DA,
|
||||
)
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
from discord.ext.commands import Context
|
||||
import aiohttp
|
||||
import asyncio
|
||||
import re
|
||||
import json
|
||||
import urllib.parse
|
||||
|
||||
|
||||
languages = {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# From https://github.com/neoarz/Velora/blob/main/Velora/ui/ascii.py
|
||||
|
||||
import math
|
||||
|
||||
|
||||
def gradient_text(text, start_color, end_color):
|
||||
|
||||
Reference in New Issue
Block a user