Update sweebot.py
This commit is contained in:
parent
6f8a5c3e05
commit
657b76f1b5
1 changed files with 2 additions and 2 deletions
|
@ -578,14 +578,14 @@ while True:
|
|||
soup = BeautifulSoup(e.text, 'html.parser')
|
||||
multiline("(" + nick + ") " + soup.title.string if soup.title.string != None else "[No title provided]", channel)
|
||||
else:
|
||||
multiline("(" + nick + ") HTTP " + str(e.status_code), channel)
|
||||
multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel)
|
||||
elif i[:7] == "http://":
|
||||
e = get(i)
|
||||
if e.ok:
|
||||
soup = BeautifulSoup(e.text, 'html.parser')
|
||||
multiline("(" + nick + ") " + soup.title.string if soup.title.string != None else "[No title provided]", channel)
|
||||
else:
|
||||
multiline("(" + nick + ") HTTP " + str(e.status_code), channel)
|
||||
multiline("(" + nick + ") [HTTP " + str(e.status_code) + "]", channel)
|
||||
except:
|
||||
print(traceback.format_exc())
|
||||
elif "JOIN" in text and "#nixsanctuary" in text:
|
||||
|
|
Loading…
Reference in a new issue