From 2f97f433e4f4e66c043404313cf34d1c2903cf47 Mon Sep 17 00:00:00 2001 From: insert Date: Thu, 26 Dec 2024 14:44:53 -0500 Subject: [PATCH] Update --- starboard.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/starboard.py b/starboard.py index b60e7c1..7fd43a0 100644 --- a/starboard.py +++ b/starboard.py @@ -54,9 +54,18 @@ class starboard(commands.Cog): if selfstar == "Yes": selfstar = True await self.bot.cur.execute(f""" - INSERT INTO userinfo VALUES - ({reaction}, {channel.id}, '{minimumneeded}', '{selfstar}', {interaction.guild_id}) + INSERT INTO starsettings VALUES + ('{reaction}', {channel.id}, '{minimumneeded}', {selfstar}, {interaction.guild_id}) """) + await interaction.response.send_message("Done!", ephemeral=True) + + @starboard.subcommand( + name="Delete", + description="Delete a starboard", + ) + async def createstarboard(self, interaction: nextcord.Interaction, channel: nextcord.abc.GuildChannel): + await self.bot.cur.execute(f"DELETE FROM starsettings WHERE starchannel = {channel.id}") + await interaction.response.send_message("Done!", ephemeral=True) def setup(bot: commands.Bot): bot.add_cog(starboard(bot)) \ No newline at end of file