Skip to content

Commit

Permalink
style(torrent_creator.py): add missing comma in slash_command decorat…
Browse files Browse the repository at this point in the history
…or parameters

chore(torrent_creator.py): remove unnecessary blank line at the end of the file
  • Loading branch information
ToasterUwU committed Oct 2, 2023
1 parent 1b7ee1a commit 58b4883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cogs/torrent_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ async def create_torrent(self, file_url: str):
@nextcord.slash_command(
"create-torrent",
description="Takes a URL to a file, downloads it, makes a Torrent from it, returns you the .torrent file.",
dm_permission=False
default_member_permissions=nextcord.Permissions(administrator=True)
dm_permission=False,
default_member_permissions=nextcord.Permissions(administrator=True),
)
async def create_torrent_command(
self, interaction: nextcord.Interaction, file_url: str
Expand All @@ -120,5 +120,6 @@ async def create_torrent_command(
torrent_file = await self.create_torrent(file_url)
await interaction.send(file=torrent_file)


async def setup(bot):
bot.add_cog(TorrentCreator(bot))

0 comments on commit 58b4883

Please sign in to comment.