mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 15:14:18 +02:00
Commited backup
This commit is contained in:
36
dorotorothequickend/DorotoroModules/WhataWord_.py
Normal file
36
dorotorothequickend/DorotoroModules/WhataWord_.py
Normal file
@@ -0,0 +1,36 @@
|
||||
# █████████████████████████████████████████
|
||||
# █────██────█────█────█───█────█────█────█
|
||||
# █─██──█─██─█─██─█─██─██─██─██─█─██─█─██─█
|
||||
# █─██──█─██─█────█─██─██─██─██─█────█─██─█
|
||||
# █─██──█─██─█─█─██─██─██─██─██─█─█─██─██─█
|
||||
# █────██────█─█─██────██─██────█─█─██────█
|
||||
# █████████████████████████████████████████
|
||||
#
|
||||
#
|
||||
# Copyright 2022 t.me/Dorotoro
|
||||
# https://www.gnu.org/licenses/agpl-3.0.html
|
||||
#
|
||||
# ---------------------------------------------------------------------------------
|
||||
# meta banner: https://raw.githubusercontent.com/dorotorothequickend/DorotoroModules/main/banners/DorotoroWhataWord.png
|
||||
# meta developer: @DorotoroMods
|
||||
|
||||
from .. import utils, loader
|
||||
|
||||
@loader.tds
|
||||
class whataword(loader.Module):
|
||||
"""Ищет определение слова."""
|
||||
strings = {"name": "What a Word?"}
|
||||
|
||||
@loader.command()
|
||||
async def wawcmd(self, message):
|
||||
"<слово> - ищет определение вашего слова."
|
||||
args = utils.get_args_raw(message)
|
||||
ktoetochitaetlox = await utils.answer(message, '<b><i>Открываю свой словарик...</i></b>')
|
||||
if not args: return
|
||||
async with self._client.conversation("@definerBot") as conv:
|
||||
perdunmsg = await conv.send_message(args)
|
||||
jdun = await conv.get_response()
|
||||
await perdunmsg.delete()
|
||||
await jdun.delete()
|
||||
text = f"<b>Я нашел кое-что в словаре:</b>\n{jdun.text}"
|
||||
await utils.answer(ktoetochitaetlox, text)
|
||||
Reference in New Issue
Block a user