forked from uniborg/uniborg
12 lines
347 B
Python
12 lines
347 B
Python
|
import asyncio
|
||
|
|
||
|
from stdplugins.kbass_core import self_reply_selector
|
||
|
|
||
|
|
||
|
@self_reply_selector(borg, r'\.s')
|
||
|
async def on_save(event, targets, num_offset):
|
||
|
await borg.forward_messages('me', targets)
|
||
|
msg = await event.respond(f'Saved {abs(num_offset) + 1} messages!')
|
||
|
await asyncio.sleep(3)
|
||
|
await borg.delete_messages(msg.to_id, msg)
|