diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2022-03-29 11:35:51 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2022-03-29 11:38:27 +0200 |
commit | 0ffe0731e6aca624695dd528761d2e459256ee67 (patch) | |
tree | 124b14d70b237289b1104aca76a0386557cebf7c /labbot/bot.py | |
download | lab-bot-0ffe0731e6aca624695dd528761d2e459256ee67.tar.gz lab-bot-0ffe0731e6aca624695dd528761d2e459256ee67.zip |
Initial commit0.0.0
Diffstat (limited to 'labbot/bot.py')
-rw-r--r-- | labbot/bot.py | 13 |
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 |