mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-16 14:34:17 +02:00
16 lines
516 B
Python
16 lines
516 B
Python
from .. import loader, utils
|
|
|
|
|
|
def register(cb):
|
|
cb(NowPlayMod())
|
|
|
|
class NowPlayMod(loader.Module):
|
|
"""Что сейчас играет."""
|
|
strings = {'name': 'NowPlay'}
|
|
|
|
async def npcmd(self, message):
|
|
"""Скидывает то, что сейчас играет."""
|
|
await message.edit('Минуточку...')
|
|
np = await message.client.inline_query('nowplaybot', '')
|
|
await message.client.send_file(message.to_id, np[0].result.document)
|
|
await message.delete() |