diff --git a/birthday/__init__.py b/birthday/__init__.py index c3a667d..311a728 100644 --- a/birthday/__init__.py +++ b/birthday/__init__.py @@ -1,6 +1,4 @@ - from .birthday import Birthdays - def setup(bot): bot.add_cog(Birthdays(bot)) diff --git a/birthday/birthday.py b/birthday/birthday.py index a78a8f3..1dfdd1e 100644 --- a/birthday/birthday.py +++ b/birthday/birthday.py @@ -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) diff --git a/birthday/info.json b/birthday/info.json index c940915..40b4468 100644 --- a/birthday/info.json +++ b/birthday/info.json @@ -1,7 +1,7 @@ { "author": [ "PancakeSparkle" - + ], "bot_version": [ 3, @@ -16,6 +16,5 @@ "tags": [ "brandons209", "pancakesparkle" - ] }