From 9ebabc54da5c49754a7fe110f5638dd4089fb417 Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Mon, 15 Mar 2021 01:46:15 +0100 Subject: [PATCH] Add .sauce command --- ubot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ubot.py b/ubot.py index 2ef4b0a..ab052a1 100644 --- a/ubot.py +++ b/ubot.py @@ -77,5 +77,9 @@ async def edit(event): msg = event.text.replace(msg, rpl) await event.edit(msg) + if '.sauce' in msg: + rpl = 'Sauce: [ghnou/ubot](https://git.ghnou.su/ghnou/ubot)' + await event.edit(rpl) + client.start() client.run_until_disconnected()