Ejemplo n.º 1
0
except FileNotFoundError:
    w = open(_whitelist, "w+")

d.close()
w.close()

# Creates a set with relevant unicode symbols
symbols_range = set(
    pk.load(open(path + "/resources/unicode symbols/emoji_list.obj", "rb")))

# Set to True if you want to analyse large messages manually
try:
    _custom_trash_input
except NameError:
    _custom_trash_input = True

# List to keep track of large messages
Large = []
# List to keep track of unidentified messages
Unidentified = []

# Set Chat class variables
Chat._header_pattern = _header_pattern
Chat.me_regex = _myname_regex
Chat.owner = owner
Chat._custom_trash_input = _custom_trash_input
Chat._Large(Large)
Chat._Unidentified(Unidentified)
Chat.symbols_range(symbols_range)
Chat._lists(_whitelist, _darklist)