SHARE
TWEET

Untitled

a guest Jun 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # If length of message is as long or less than limit
  2.     if lon == limit or lon < limit:
  3.         print("Word Passed")
  4.         del x[:]
  5.  
  6.  
  7.     # If length of message is longer than limit
  8.     elif lon > limit:
  9.         global rolelist
  10.         if len(rolelist) == 1 or len(rolelist) > 1:
  11.  
  12.             for i in rolelist:
  13.                 if i in (role.id for role in message.author.roles):
  14.                     return
  15.  
  16.  
  17.                 else:
  18.                     await message.delete()
  19.                     sen = await message.channel.send("**HEY!** You passed the character limit")
  20.                     del x[:]
  21.                     time.sleep(0.9)
  22.                     await sen.delete()
  23.  
  24.         else:
  25.             await message.delete()
  26.             sen = await message.channel.send("**HEY!** You passed the character limit")
  27.             del x[:]
  28.             time.sleep(0.9)
  29.             await sen.delete()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top