forked from uniborg/uniborg
Style enhancements (#7)
This commit is contained in:
parent
d54015e1b7
commit
2e82c440d0
|
@ -1,16 +1,14 @@
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
from telethon import events, utils
|
|
||||||
from telethon.tl import types, functions
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import asyncio
|
|
||||||
import random
|
import random
|
||||||
import json
|
import json
|
||||||
import urllib.request
|
import urllib.request
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|
||||||
|
from telethon import events
|
||||||
|
|
||||||
pats = []
|
pats = []
|
||||||
oops = "OOPSIE WOOPSIE!! Uwu We madea fucky wucky!! A wittle fucko boingo! " \
|
oops = "OOPSIE WOOPSIE!! Uwu We madea fucky wucky!! A wittle fucko boingo! " \
|
||||||
"The code monkeys at our headquarters are working VEWY HAWD to fix " \
|
"The code monkeys at our headquarters are working VEWY HAWD to fix " \
|
||||||
|
|
|
@ -109,7 +109,7 @@ async def reparse(event):
|
||||||
message, msg_entities = await borg._parse_message_text(event.text, parse)
|
message, msg_entities = await borg._parse_message_text(event.text, parse)
|
||||||
# filter out entities that we don't generate
|
# filter out entities that we don't generate
|
||||||
old_entities = []
|
old_entities = []
|
||||||
for entity in (event.message.entities or []):
|
for entity in event.message.entities or []:
|
||||||
if isinstance(entity, PARSED_ENTITIES):
|
if isinstance(entity, PARSED_ENTITIES):
|
||||||
old_entities.append(entity)
|
old_entities.append(entity)
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
import uuid
|
|
||||||
from telethon import events, utils
|
from telethon import events, utils
|
||||||
from telethon.tl import types, functions
|
from telethon.tl import types
|
||||||
|
|
||||||
|
|
||||||
TYPE_TEXT = 0
|
TYPE_TEXT = 0
|
||||||
|
|
Loading…
Reference in New Issue