Created
September 2, 2021 08:17
-
-
Save xm4r1us/35488c4f2a6c4c4e6ba6584ccb53e829 to your computer and use it in GitHub Desktop.
Botun içine checker ekleme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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