mirror of
https://github.com/MuRuLOSE/limoka.git
synced 2026-06-18 23:24:18 +02:00
Commited backup
This commit is contained in:
16
Fl1yd/FTG-Modules/nowplay.py
Normal file
16
Fl1yd/FTG-Modules/nowplay.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user