From 80bea7e86f3a6662fb6eb4f535ab6aac6ffe6d64 Mon Sep 17 00:00:00 2001 From: Dawid Rejowski Date: Sun, 11 Sep 2022 23:11:59 +0200 Subject: [PATCH] Cleanup --- stickerbridge/bot_commands.py | 5 +---- stickerbridge/callbacks.py | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/stickerbridge/bot_commands.py b/stickerbridge/bot_commands.py index b83ac5f..aa826ee 100644 --- a/stickerbridge/bot_commands.py +++ b/stickerbridge/bot_commands.py @@ -1,12 +1,9 @@ from nio import AsyncClient, MatrixRoom -from chat_functions import send_text_to_room, upload_image, upload_stickerpack, is_stickerpack_existing, has_permission +from chat_functions import send_text_to_room from matrix_reuploader import MatrixReuploader -from sticker_types import MatrixStickerset from telegram_exporter import TelegramExporter -import tempfile - class Command: def __init__(self, client: AsyncClient, room: MatrixRoom, command: str, tg_exporter: TelegramExporter): diff --git a/stickerbridge/callbacks.py b/stickerbridge/callbacks.py index 481f0cd..adf8927 100644 --- a/stickerbridge/callbacks.py +++ b/stickerbridge/callbacks.py @@ -1,7 +1,7 @@ import logging import traceback -from nio import AsyncClient, MatrixRoom, RoomMessageText, InviteEvent, InviteMemberEvent +from nio import AsyncClient, MatrixRoom, RoomMessageText, InviteMemberEvent from bot_commands import Command from chat_functions import send_text_to_room