remove urlinfo entirely
This commit is contained in:
parent
bb67f98d4b
commit
c018534c0e
18
bert.py
18
bert.py
|
@ -15,7 +15,6 @@ import requests
|
|||
from datetime import datetime
|
||||
from datetime import timedelta
|
||||
import konfuzius
|
||||
import urlinfo
|
||||
import fml
|
||||
import string
|
||||
import random
|
||||
|
@ -194,11 +193,6 @@ def yon():
|
|||
return answer
|
||||
|
||||
|
||||
def url_title(url):
|
||||
title = urlinfo.get_title(url).encode("UTF-8").decode("UTF-8")
|
||||
return title
|
||||
|
||||
|
||||
def is_registered(username):
|
||||
try:
|
||||
sendRaw("WHOIS "+str(username)+"\n")
|
||||
|
@ -461,18 +455,6 @@ def command_loop():
|
|||
else:
|
||||
say(channel, "You are not my master!")
|
||||
|
||||
# elif urlinfo.is_url(msg) != None:
|
||||
# try:
|
||||
# url = urlinfo.is_url(msg)
|
||||
# ignore = ["pr0gramm", "w0bm", "f0ck", "twitter", "youtube", "youtu.be"]
|
||||
# if any(ign in url for ign in ignore):
|
||||
# pass
|
||||
# else:
|
||||
# title = urlinfo.get_title(url)
|
||||
# print("Found URL and got title "+str(title))
|
||||
# say(channel, b+"Title: "+c+title)
|
||||
# except Exception as err:
|
||||
# print("Error getting URL title - "+str(err))
|
||||
elif msg == ".fml":
|
||||
try:
|
||||
fml_string = fml.get_fml(fml_url)
|
||||
|
|
Loading…
Reference in New Issue
Block a user