mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-06-02 10:34:54 +12:00
cleaned up some stuff, fixed adding roles with spaces
This commit is contained in:
parent
58c1f67186
commit
3ae6922070
|
@ -1,6 +1,4 @@
|
||||||
|
|
||||||
from .birthday import Birthdays
|
from .birthday import Birthdays
|
||||||
|
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(Birthdays(bot))
|
bot.add_cog(Birthdays(bot))
|
||||||
|
|
|
@ -88,7 +88,7 @@ class Birthdays(Cog):
|
||||||
|
|
||||||
@bday.command(name="role")
|
@bday.command(name="role")
|
||||||
@checks.mod_or_permissions(manage_roles=True)
|
@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"""
|
"""Sets the birthday role"""
|
||||||
message = ctx.message
|
message = ctx.message
|
||||||
guild = message.guild
|
guild = message.guild
|
||||||
|
@ -115,7 +115,6 @@ class Birthdays(Cog):
|
||||||
if birthday is None:
|
if birthday is None:
|
||||||
print(self.BDAY_INVALID())
|
print(self.BDAY_INVALID())
|
||||||
await channel.send(self.BDAY_INVALID())
|
await channel.send(self.BDAY_INVALID())
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await self.remove_user_bday(message.guild.id, author.id)
|
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)
|
await self.get_date_config(message.guild.id, birthday.toordinal()).get_attr(author.id).set(year)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"author": [
|
"author": [
|
||||||
"PancakeSparkle"
|
"PancakeSparkle"
|
||||||
|
|
||||||
],
|
],
|
||||||
"bot_version": [
|
"bot_version": [
|
||||||
3,
|
3,
|
||||||
|
@ -16,6 +16,5 @@
|
||||||
"tags": [
|
"tags": [
|
||||||
"brandons209",
|
"brandons209",
|
||||||
"pancakesparkle"
|
"pancakesparkle"
|
||||||
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue