mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-02 18:44:51 +00:00
Hmm
This commit is contained in:
parent
e165c1cd06
commit
13f5847505
2 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ from misskaty import app, user
|
|||
from misskaty.helper import http
|
||||
from misskaty.core.message_utils import editPesan, kirimPesan
|
||||
from misskaty.vars import COMMAND_HANDLER, SUDO
|
||||
from utils import LOGGER
|
||||
|
||||
__MODULE__ = "DevCommand"
|
||||
__HELP__ = """
|
||||
|
|
@ -48,6 +49,7 @@ async def log_file(bot, message):
|
|||
}
|
||||
response = await http.post("https://paste.yasir.eu.org/api/new", json=json_data)
|
||||
link = f"https://paste.yasir.eu.org/{response.json()['id']}"
|
||||
LOGGER.info(link)
|
||||
text_file.close()
|
||||
except:
|
||||
link = None
|
||||
|
|
|
|||
|
|
@ -103,6 +103,7 @@ async def mediainfo(client, message):
|
|||
except:
|
||||
try:
|
||||
link = await post_to_telegraph(False, "MissKaty MediaInfo", body_text)
|
||||
markup = InlineKeyboardMarkup([[InlineKeyboardButton(text="💬 View in Web", url=link)]])
|
||||
except:
|
||||
markup = None
|
||||
with io.BytesIO(str.encode(output)) as out_file:
|
||||
|
|
|
|||
Loading…
Reference in a new issue