Skip to content

Instantly share code, notes, and snippets.

@xm4r1us
Created September 2, 2021 08:17
Show Gist options
  • Save xm4r1us/35488c4f2a6c4c4e6ba6584ccb53e829 to your computer and use it in GitHub Desktop.
Save xm4r1us/35488c4f2a6c4c4e6ba6584ccb53e829 to your computer and use it in GitHub Desktop.
Botun içine checker ekleme
def checkk():
return os.system("python exxen.py combolist1.txt 100 ")
async def checkexxen(ctx):
attachments = ctx.message.attachments
for attachment in attachments:
await attachment.save("combolist1.txt")
with open('combolist1.txt') as my_file:
Koko = sum(1 for _ in my_file)
if Koko > 10000:
await ctx.reply("Only 10000 lines")
return
print("Starting...")
await ctx.reply("Starting...")
await bot.loop.run_in_executor(None, functools.partial(checkk))
await ctx.reply("Checking Finished")
"""
Not: Checker da import sys ekleyin, sys.argv[1] combolist yoluna sys.argv[2] ise thread sayısına eşit olacak
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment