update to latest commit for pycord, fix math on filesize calculation, create a text channel when running /vc

This commit is contained in:
Luke Robles 2023-04-12 13:53:12 -07:00
parent 3e55430e55
commit 36255db78f
2 changed files with 6 additions and 3 deletions

View File

@ -149,7 +149,7 @@ class ServerUtils(commands.Cog):
embed.add_field(name="Number of members", value=f"{server.member_count}")
embed.add_field(name="Server ID", value=f"{server.id}")
embed.add_field(
name="Server upload size limit", value=f"{server.filesize_limit/1024}mb"
name="Server upload size limit", value=f"{server.filesize_limit/125000}mb"
)
embed.add_field(
name="You've been a member of this server since:",
@ -203,7 +203,7 @@ class ServerUtils(commands.Cog):
@commands.slash_command(
name="vc",
description="Creates a role and voice channel of the same name",
description="Creates a role, text, and voice channel of the same name",
)
@commands.has_permissions(administrator=True)
async def vc(self, ctx: commands.Context, channel_role_name):
@ -232,6 +232,9 @@ class ServerUtils(commands.Cog):
await ctx.guild.create_voice_channel(
name=channel_role_name, bitrate=96000, overwrites=overwrites
)
await ctx.guild.create_text_channel(
name=channel_role_name, overwrites=overwrites
)
await ctx.respond(
":white_check_mark: Created a role + voice channel for %s"

View File

@ -1,6 +1,6 @@
beautifulsoup4
cmagick
git+https://github.com/pycord-development/pycord@f8b4294ff06e0f700bcfe8c0ec13d0ec0085c7dd
git+https://github.com/pycord-development/pycord@fa0f16030eba9c2b708419a89d57f1d33882659c
gTTS
httpx
humanfriendly