From 3813ed60e8491c6012c1183d34343a99ddbf55fc Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sun, 2 Aug 2020 14:40:18 +0000 Subject: [PATCH] Add stdbot, to showcase plugins that work from a bot account --- botplugins/sed.py | 1 + stdbot.py | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 120000 botplugins/sed.py create mode 100644 stdbot.py diff --git a/botplugins/sed.py b/botplugins/sed.py new file mode 120000 index 0000000..45e5d1c --- /dev/null +++ b/botplugins/sed.py @@ -0,0 +1 @@ +../stdplugins/sed.py \ No newline at end of file diff --git a/stdbot.py b/stdbot.py new file mode 100644 index 0000000..a22a600 --- /dev/null +++ b/stdbot.py @@ -0,0 +1,18 @@ +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. + +import logging + +from uniborg import Uniborg + +logging.basicConfig(level=logging.INFO) + +borg = Uniborg( + "stdbot", + plugin_path="botplugins", + admins=[12345], + connection_retries=None +) + +borg.run_until_disconnected()