Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.command()
- @commands.has_any_role(*admini)
- async def stock(ctx, value: str=None):
- def file_lengthy(fname):
- with open(fname) as f:
- for i, l in enumerate(f):
- pass
- return i + 1
- 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 ---------------------------'
- 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 ---------------------------'
- if value is None:
- await ctx.send('```Syntax: $stock <f(ree)/p(remium)>```')
- elif value == 'p':
- await ctx.send(asd1)
- elif value == 'f':
- await ctx.send(asd)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement