make autoflake more aggressive & fix some lint
This commit is contained in:
parent
7c7a1fcde2
commit
76266d8d2f
5 changed files with 12 additions and 6 deletions
|
|
@ -203,7 +203,6 @@ class Bot:
|
|||
)
|
||||
|
||||
async def _run_timers(self) -> NoReturn:
|
||||
client = self.client
|
||||
await asyncio.sleep(2)
|
||||
while True:
|
||||
await asyncio.sleep(0.2)
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from typing import *
|
|||
|
||||
import requests
|
||||
|
||||
from ..functions import localizedtz, react, reply
|
||||
from ..functions import localizedtz, reply
|
||||
from ..models import Job, Message
|
||||
from ..tz import cest
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
from random import choice
|
||||
|
||||
from ..functions import react, reply
|
||||
from ..functions import reply
|
||||
from ..models import Message
|
||||
|
||||
HELP = """
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ async def extractor(info):
|
|||
info.extracted.rating_count = ld["aggregateRating"]["ratingCount"]
|
||||
|
||||
|
||||
async def handle(message, url, info):
|
||||
async def handle(message: Message, url, info):
|
||||
ex = clone(info.extracted)
|
||||
image_title = f"Poster for {ex.title} ({ex.published:%Y})"
|
||||
hosted_image = await import_image(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue