diff --git a/bot/cogs/dev_tools.py b/bot/cogs/dev_tools.py index 45f000b..486b91b 100644 --- a/bot/cogs/dev_tools.py +++ b/bot/cogs/dev_tools.py @@ -4,19 +4,9 @@ from cogs import EXTENSIONS from discord.ext import commands from discord.ext.commands import Context, Greedy -from libs.utils import RoboContext, RoboView -from rodhaj import Rodhaj - +from libs.utils import RoboContext -class MaybeView(RoboView): - def __init__(self, ctx: RoboContext) -> None: - super().__init__(ctx) - - @discord.ui.button(label="eg") - async def eg( - self, interaction: discord.Interaction, button: discord.ui.Button - ) -> None: - await interaction.response.send_message("yo nice oen", ephemeral=True) +from rodhaj import Rodhaj class DevTools(commands.Cog, command_attrs=dict(hidden=True)): @@ -88,17 +78,6 @@ async def reload_all(self, ctx: RoboContext) -> None: await self.bot.reload_extension(extension) await ctx.send("Successfully reloaded all extensions live") - @commands.command(name="view-test", hidden=True) - async def view_test(self, ctx: RoboContext) -> None: - view = MaybeView(ctx) - view.message = await ctx.send("yeo", view=view) - - @commands.command(name="webhook-test") - async def webhook_test(self, ctx: RoboContext) -> None: - url = "yee" - webhook = discord.Webhook.from_url(url, session=self.bot.session) - await webhook.send("hi there", thread=discord.Object(1182960737476419584)) - async def setup(bot: Rodhaj): await bot.add_cog(DevTools(bot)) diff --git a/bot/libs/tickets/structs.py b/bot/libs/tickets/structs.py index 622a749..59dcc47 100644 --- a/bot/libs/tickets/structs.py +++ b/bot/libs/tickets/structs.py @@ -46,12 +46,6 @@ def __init__(self, record: Optional[asyncpg.Record] = None): self.owner_id = record["owner_id"] self.location_id = record["location_id"] - # For debugging purposes - def __repr__(self): - if self.id is None: - return f"" - return f"" - class PartialConfig: __slots__ = ("id", "ticket_channel_id", "logging_channel_id")