@@ -338,37 +338,23 @@ async def dcolor(self, ctx, *, url):
338
338
await ctx .send (file = discord .File (file , 'color.png' ), embed = em )
339
339
340
340
@commands .command (description = 'This command might get you banned' )
341
- async def annoy (self , ctx , * , member = None , times : int = None ):
342
- """Want to annoy a member with mentions?"""
343
- channel = ctx .message .channel
344
- author = ctx .message .author
345
- message = ctx .message
346
- usage = f'```Usage: { ctx .prefix } ultimate_annoying_spam_command [@member] [times]```'
347
-
348
- if member or times is None :
349
- await ctx .channel .send (usage )
350
- return
351
-
352
- if times > 100 :
353
- times = 35
354
-
355
- if times is 0 :
356
- sorry = f'Someone, not saying who, *cough cough { author } * felt sorry about using this command.'
357
- await ctx .channel .send (sorry )
358
- return
359
-
360
- if times < 0 :
361
- chicken = "Well, that's just not enough times to annoy anybody. Don't chicken out now!"
362
- await ctx .channel .send (chicken )
363
- return
364
-
365
- await message .delete ()
366
-
367
- for i in range (0 , times ):
368
- try :
369
- await channel .send (f'{ member .mention } LOL' )
370
- except Exception :
371
- pass
341
+ async def annoy (self , ctx , member : discord .Member = None , number : int = 2 ):
342
+ """ Usage: annoy @b1nzy#1337 50
343
+ NOTICE: If you get banned, don't come back crying! """
344
+ if number > 5 :
345
+ number = 5
346
+ member = member or ctx .author
347
+ try :
348
+ await ctx .message .delete ()
349
+ except discord .Forbidden :
350
+ pass
351
+ if member != None :
352
+ for x in range (number ):
353
+ await ctx .channel .trigger_typing ()
354
+ await ctx .send (member .mention )
355
+ await asyncio .sleep (8 )
356
+ else :
357
+ return await ctx .send (f"{ ctx .author .mention } , I don't know how to use commands. Help!" )
372
358
373
359
@commands .command ()
374
360
async def tinyurl (self , ctx , * , link : str ):
0 commit comments