Making sure that the async def's are not verbs

pull/2/head
sgoudham 4 years ago
parent 40f6a19806
commit 9ff9d35239

@ -19,7 +19,7 @@ class Embeds(commands.Cog):
@command(name="kiss", aliases=["Kiss"]) @command(name="kiss", aliases=["Kiss"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def kissing(self, ctx, target: Member): async def kiss(self, ctx, target: Member):
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
@ -65,7 +65,7 @@ class Embeds(commands.Cog):
@command(name="kill", aliases=["Kill"]) @command(name="kill", aliases=["Kill"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def killing(self, ctx, target: Member): async def kill(self, ctx, target: Member):
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
@ -111,7 +111,7 @@ class Embeds(commands.Cog):
@command(name="cuddle", aliases=["Cuddle"]) @command(name="cuddle", aliases=["Cuddle"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def cuddling(self, ctx, target: Member): async def cuddle(self, ctx, target: Member):
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
@ -157,7 +157,7 @@ class Embeds(commands.Cog):
@command(name="slap", aliases=["Slap"]) @command(name="slap", aliases=["Slap"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def slapping(self, ctx, target: Member): async def slap(self, ctx, target: Member):
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
@ -203,7 +203,7 @@ class Embeds(commands.Cog):
@command(name="pat", aliases=["Pat"]) @command(name="pat", aliases=["Pat"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def patting(self, ctx, target: Member): async def pat(self, ctx, target: Member):
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
@ -249,7 +249,7 @@ class Embeds(commands.Cog):
@command(name="lemon", aliases=["Lemon"]) @command(name="lemon", aliases=["Lemon"])
# Added a cooldown, only 1 instance of the command can be sent every second per user # Added a cooldown, only 1 instance of the command can be sent every second per user
@cooldown(1, 1, BucketType.user) @cooldown(1, 1, BucketType.user)
async def give_lemon(self, ctx, target: Member): async def lemon(self, ctx, target: Member):
lemon_array = ["https://media.discordapp.net/attachments/669812887564320769/720093589056520202/lemon.gif", lemon_array = ["https://media.discordapp.net/attachments/669812887564320769/720093589056520202/lemon.gif",
"https://media.discordapp.net/attachments/669812887564320769/720093575492272208/lemon2.gif", "https://media.discordapp.net/attachments/669812887564320769/720093575492272208/lemon2.gif",

Loading…
Cancel
Save