Advertisement
Guest User

Untitled

a guest
May 24th, 2019
6,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement