Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
Solucion de errores, se agrega un log de quienes solicitan datos para motivos de auditorías (Si desea eliminarse, comentar las líneas 16,17,18 y 33,34,35
  • Loading branch information
SebaG20xx authored Mar 16, 2022
1 parent 0389e6a commit 01d61d5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ async def doxxname(ctx,arg):
user = ctx.message.author
name = arg.replace("_"," ")
URL = "https://www.nombrerutyfirma.com/buscar"
historialname = open('historialname.txt', 'w')
namehistorial = name + "/n"
historialname = open('historialname.txt', 'a')
namehistorial = name + ", Solicitado por: " + str(ctx.message.author) + ", " + "Id Discord: " + str(ctx.message.author.id) + '\n'
historialname.write(namehistorial)
print("procesando nombre:", name)
response = requests.get(URL, params={'term': name}).text
soup = BeautifulSoup(response, 'html.parser')
out = soup.find_all('td')
Expand All @@ -31,14 +30,14 @@ async def doxxrut(ctx,arg):
user = ctx.message.author
rut = arg
URL = "https://www.nombrerutyfirma.com/rut"
historialrut = open('historialrut.txt', 'w')
ruthistorial = rut + "/n"
historialrut = open('historialrut.txt', 'a')
ruthistorial = rut + ", Solicitado por: " + str(ctx.message.author) + ", " + "Id Discord: " + str(ctx.message.author.id) + '\n'
historialrut.write(ruthistorial)
response = requests.get(URL, params={'term': format_rut_with_dots(rut)}).text
soup = BeautifulSoup(response, 'html.parser')
out = soup.find_all('td')
address = out[3].text + " " + out[4].text
nombrerut = out[0].text
Doxxtotalrut = "Resultados: " + nombrerut + " ," + rut + " ," + address
Doxxtotalrut = "Resultados: " + nombrerut + ", " + rut + " ," + address
await ctx.send(Doxxtotalrut)
client.run("INSERT_TOKEN_HERE")
client.run("INSERT_TOKEN_HERE")

0 comments on commit 01d61d5

Please sign in to comment.