a guest May 24th, 2019 4,122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @bot.command()
  2. @commands.has_any_role(*admini)
  3. async def stock(ctx, value: str=None):
  4.     def file_lengthy(fname):
  5.         with open(fname) as f:
  6.             for i, l in enumerate(f):
  7.                 pass
  8.         return i + 1
  9.     asd = f'\n--------------------------- \n Stock Free \n --------------------------- \n Spotify:  {file_lengthy("fspotify.txt")}\n Fortnite:{file_lengthy("ffortnite.txt")} \n Netflix:  {file_lengthy("fnetflix.txt")} \n Minecraft:  {file_lengthy("fminecraft.txt")}\n ---------------------------'
  10.     asd1 = f'\n--------------------------- \n Stock Premium\n --------------------------- \n Spotify:  {file_lengthy("pspotify.txt")}\n Fortnite:{file_lengthy("pfortnite.txt")} \n Netflix:  {file_lengthy("pnetflix.txt")} \n Minecraft:  {file_lengthy("pminecraft.txt")}\n ---------------------------'
  11.     if value is None:
  12.         await ctx.send('```Syntax: $stock <f(ree)/p(remium)>```')
  13.     elif value == 'p':
  14.         await ctx.send(asd1)
  15.     elif value == 'f':
  16.         await ctx.send(asd)
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