aboutsummaryrefslogtreecommitdiff
path: root/labbot/bot.py
diff options
context:
space:
mode:
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