aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-07 13:45:57 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-07 13:45:57 -0400
commit0017b76e914e4963a8556ac768e2b4a176111636 (patch)
tree1f0ef939a6dab77d8d7575a413caef73bfbd5485
parentchore: Reformat the code to follow the style guild (diff)
chore: Apply anand's suggested changes
-rw-r--r--bot/exts/pride/pride_facts.py2
-rw-r--r--bot/exts/valentines/be_my_valentine.py5
-rw-r--r--bot/exts/valentines/lovecalculator.py2
3 files changed, 4 insertions, 5 deletions
diff --git a/bot/exts/pride/pride_facts.py b/bot/exts/pride/pride_facts.py
index b2daaab7..6d06cf64 100644
--- a/bot/exts/pride/pride_facts.py
+++ b/bot/exts/pride/pride_facts.py
@@ -101,5 +101,5 @@ class PrideFacts(commands.Cog):
def setup(bot: Bot) -> None:
- """Cog loader for pride facts."""
+ """Load the Pride Facts Cog."""
bot.add_cog(PrideFacts(bot))
diff --git a/bot/exts/valentines/be_my_valentine.py b/bot/exts/valentines/be_my_valentine.py
index cf6099d2..1ce92203 100644
--- a/bot/exts/valentines/be_my_valentine.py
+++ b/bot/exts/valentines/be_my_valentine.py
@@ -6,7 +6,6 @@ from typing import Tuple
import discord
from discord.ext import commands
-from discord.ext.commands.cooldowns import BucketType
from bot.bot import Bot
from bot.constants import Channels, Colours, Lovefest, Month
@@ -69,7 +68,7 @@ class BeMyValentine(commands.Cog):
await user.remove_roles(role)
await ctx.send("The lovefest role has been successfully removed!")
- @commands.cooldown(1, 1800, BucketType.user)
+ @commands.cooldown(1, 1800, commands.BucketType.user)
@commands.group(name="bemyvalentine", invoke_without_command=True)
async def send_valentine(
self, ctx: commands.Context, user: discord.Member, *, valentine_type: str = None
@@ -108,7 +107,7 @@ class BeMyValentine(commands.Cog):
)
await channel.send(user.mention, embed=embed)
- @commands.cooldown(1, 1800, BucketType.user)
+ @commands.cooldown(1, 1800, commands.BucketType.user)
@send_valentine.command(name="secret")
async def anonymous(
self, ctx: commands.Context, user: discord.Member, *, valentine_type: str = None
diff --git a/bot/exts/valentines/lovecalculator.py b/bot/exts/valentines/lovecalculator.py
index 9096d994..8a4c71eb 100644
--- a/bot/exts/valentines/lovecalculator.py
+++ b/bot/exts/valentines/lovecalculator.py
@@ -61,7 +61,7 @@ class LoveCalculator(Cog):
# Make sure user didn't provide something silly such as 10 spaces
if not (who and whom):
- raise BadArgument("Arguments be non-empty strings.")
+ raise BadArgument("Arguments must be non-empty strings.")
# Hash inputs to guarantee consistent results (hashing algorithm choice arbitrary)
#