Removing redundant commentary

Adding command descriptions
pull/4/head
sgoudham 4 years ago
parent cc0b3c4da3
commit 2706f38061

@ -15,11 +15,10 @@ class Interactive(commands.Cog):
def __init__(self, bot):
self.bot = bot
# ~kiss command which allows users to kiss a person in the server
@command(name="kiss", aliases=["Kiss"])
# Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user)
async def kiss(self, ctx, target: Member):
"""Allows users to kiss a person in the server"""
# Surround with try/except to catch any exceptions that may occur
try:
@ -61,11 +60,10 @@ class Interactive(commands.Cog):
except FileNotFoundError as e:
print(e)
# ~kill command which allows users to kill a person in the server
@command(name="kill", aliases=["Kill"])
# Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user)
async def kill(self, ctx, target: Member):
"""Allows users to kill a person in the server"""
# Surround with try/except to catch any exceptions that may occur
try:
@ -107,11 +105,10 @@ class Interactive(commands.Cog):
except FileNotFoundError as e:
print(e)
# ~cuddle command which allows users to cuddle a person in the server
@command(name="cuddle", aliases=["Cuddle"])
# Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user)
async def cuddle(self, ctx, target: Member):
"""Allows users to cuddle a person in the server"""
# Surround with try/except to catch any exceptions that may occur
try:
@ -243,11 +240,10 @@ class Interactive(commands.Cog):
except FileNotFoundError as e:
print(e)
# ~lemon command which allows users to hand people lemons to members in the user
@command(name="lemon", aliases=["Lemon"])
# Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user)
async def lemon(self, ctx, target: Member):
"""Allows users to hand people lemons to members in the user"""
lemon_array = ["https://media.discordapp.net/attachments/669812887564320769/720093589056520202/lemon.gif",
"https://media.discordapp.net/attachments/669812887564320769/720093575492272208/lemon2.gif",
@ -288,9 +284,10 @@ class Interactive(commands.Cog):
except FileNotFoundError as e:
print(e)
# ~marry command allows the bot to wed two young lovers together
@command(name="marry", aliases=["Marry"])
@cooldown(1, 1, BucketType.user)
async def marry(self, ctx, member: Member):
"""Allows the bot to wed two young lovers together"""
# Send a message to the channel mentioning the author and the person they want to wed.
await ctx.send(f"{ctx.author.mention} **Proposes To** {member.mention} **Do you accept??** "

Loading…
Cancel
Save