From 3c3216c327345580c7b746f6a84d777268723ae4 Mon Sep 17 00:00:00 2001 From: manetta Date: Fri, 18 Feb 2022 17:05:36 +0100 Subject: [PATCH] adding a @url reply to logbot --- LogBot/logbot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index f93d3bf..eb92344 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -33,6 +33,8 @@ class Logbot(Bot): logbot @font : Switch to another font. For example: logbot @font font. Available fonts include: polsku, notcouriersans; or select None to switch back to default serif. + logbot @url: Ask logbot to send the url of the log. + logbot @uptime: To check how long @logbot has been around @bots: To see who is around :) @@ -216,6 +218,10 @@ class Logbot(Bot): self._add_to_db(message) reply = "Added, thanks!" + # Response to @url + elif "@url" in message.text: + reply = f"{ self.baseurl }{ self.db["folder"] }/" + # Response to @delete elif "@delete" in message.text: match = re.findall(r"@delete \d*", message.content)[0]