aboutsummaryrefslogtreecommitdiff
path: root/labbot/bot.py
blob: 3ea1929d1f6e733ad0d85742e9b36ea14ea64142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)