cleaned up some stuff, fixed adding roles with spaces

This commit is contained in:
brandons209 2020-01-22 13:45:24 -05:00
parent 58c1f67186
commit 3ae6922070
3 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,4 @@
from .birthday import Birthdays
def setup(bot):
bot.add_cog(Birthdays(bot))

View file

@ -88,7 +88,7 @@ class Birthdays(Cog):
@bday.command(name="role")
@checks.mod_or_permissions(manage_roles=True)
async def bday_role(self, ctx: Context, role: discord.Role):
async def bday_role(self, ctx: Context, *, role: discord.Role):
"""Sets the birthday role"""
message = ctx.message
guild = message.guild
@ -115,7 +115,6 @@ class Birthdays(Cog):
if birthday is None:
print(self.BDAY_INVALID())
await channel.send(self.BDAY_INVALID())
else:
await self.remove_user_bday(message.guild.id, author.id)
await self.get_date_config(message.guild.id, birthday.toordinal()).get_attr(author.id).set(year)

View file

@ -1,7 +1,7 @@
{
"author": [
"PancakeSparkle"
],
"bot_version": [
3,
@ -16,6 +16,5 @@
"tags": [
"brandons209",
"pancakesparkle"
]
}