2020-11-28

i need help why my bot discord is sending an empty file

enter image description here

if proxyType == 1:
     await ctx.send('Você escolheu HTTP ('+str(proxyType)+')')
     url = 'https://www.proxy-list.download/api/v1/get?type=http'
     r = requests.get(url)

     soup = BeautifulSoup(r.text, 'html.parser')


     f = open('Proxy.txt', 'w+')
     f.write(soup.get_text())

     file = discord.File('Proxy.txt')

     await ctx.send(file=file)

     f.close()
     os.remove('Proxy.txt')

elif proxyType == 2:
     await ctx.send('Você escolheu Socks 4 ('+str(proxyType)+')')
elif proxyType == 3:
     await ctx.send('Você escolheu Socks 5 ('+str(proxyType)+')')
else:
    await ctx.send('Tipo de proxy inválido.')```

i need help to create a proxy bot the bot its sending a empty file and i need a file with proxys but he dont put the proxys someone can help?

i gonna write random things but i need more details to send this



from Recent Questions - Stack Overflow https://ift.tt/3lnr8a5
https://ift.tt/2HIWERS

No comments:

Post a Comment