remove urlinfo entirely

This commit is contained in:
jkhsjdhjs 2023-07-16 22:39:26 +00:00
parent bb67f98d4b
commit c018534c0e

18
bert.py
View File

@ -15,7 +15,6 @@ import requests
from datetime import datetime from datetime import datetime
from datetime import timedelta from datetime import timedelta
import konfuzius import konfuzius
import urlinfo
import fml import fml
import string import string
import random import random
@ -194,11 +193,6 @@ def yon():
return answer return answer
def url_title(url):
title = urlinfo.get_title(url).encode("UTF-8").decode("UTF-8")
return title
def is_registered(username): def is_registered(username):
try: try:
sendRaw("WHOIS "+str(username)+"\n") sendRaw("WHOIS "+str(username)+"\n")
@ -461,18 +455,6 @@ def command_loop():
else: else:
say(channel, "You are not my master!") 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": elif msg == ".fml":
try: try:
fml_string = fml.get_fml(fml_url) fml_string = fml.get_fml(fml_url)