Update
This commit is contained in:
parent
eae185a05a
commit
2f97f433e4
1 changed files with 11 additions and 2 deletions
13
starboard.py
13
starboard.py
|
@ -54,9 +54,18 @@ class starboard(commands.Cog):
|
||||||
if selfstar == "Yes":
|
if selfstar == "Yes":
|
||||||
selfstar = True
|
selfstar = True
|
||||||
await self.bot.cur.execute(f"""
|
await self.bot.cur.execute(f"""
|
||||||
INSERT INTO userinfo VALUES
|
INSERT INTO starsettings VALUES
|
||||||
({reaction}, {channel.id}, '{minimumneeded}', '{selfstar}', {interaction.guild_id})
|
('{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):
|
def setup(bot: commands.Bot):
|
||||||
bot.add_cog(starboard(bot))
|
bot.add_cog(starboard(bot))
|
Loading…
Reference in a new issue