aboutsummaryrefslogtreecommitdiff
path: root/labbot/bot.py
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2022-03-29 11:35:51 +0200
committerJan200101 <sentrycraft123@gmail.com>2022-03-29 11:38:27 +0200
commit0ffe0731e6aca624695dd528761d2e459256ee67 (patch)
tree124b14d70b237289b1104aca76a0386557cebf7c /labbot/bot.py
downloadlab-bot-0ffe0731e6aca624695dd528761d2e459256ee67.tar.gz
lab-bot-0ffe0731e6aca624695dd528761d2e459256ee67.zip
Initial commit0.0.0
Diffstat (limited to 'labbot/bot.py')
-rw-r--r--labbot/bot.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/labbot/bot.py b/labbot/bot.py
new file mode 100644
index 0000000..3ea1929
--- /dev/null
+++ b/labbot/bot.py
@@ -0,0 +1,13 @@
+from gidgetlab.aiohttp import GitLabBot
+
+class Bot:
+
+ def __init__(self, *args, **kwargs):
+ self.instance = GitLabBot("lab-bot", **kwargs)
+ pass
+
+ def register(self, func, *args, **kwargs):
+ return self.instance.router.register(*args, **kwargs)(func)
+
+ def run(self, *args, **kwargs):
+ self.instance.run(*args, **kwargs) \ No newline at end of file