forked from uniborg/uniborg
make snip deletion permanent
This commit is contained in:
parent
5c175821a0
commit
34c8c2d682
|
@ -72,6 +72,7 @@ async def on_snip_list(event):
|
||||||
@borg.on(events.NewMessage(pattern=r'.snipd (\S+)', outgoing=True))
|
@borg.on(events.NewMessage(pattern=r'.snipd (\S+)', outgoing=True))
|
||||||
async def on_snip_delete(event):
|
async def on_snip_delete(event):
|
||||||
snips.pop(event.pattern_match.group(1), None)
|
snips.pop(event.pattern_match.group(1), None)
|
||||||
|
storage.snips = snips
|
||||||
await event.delete()
|
await event.delete()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue