Skip to content

Commit

Permalink
Klimhal support
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwiggers committed May 16, 2021
1 parent afff6d6 commit c780e71
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion onebot/plugins/grip.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,21 @@ class GRIPPlugin(object):
def __init__(self, bot):
self.bot = bot

@command
@command(aliases=["boulderhal"])
def grip(self, _mask, _target, args):
"""Check the availability at GRIP Boulderhal.
%%grip [<day>...]
"""
return self._process_command(args)

@command
def klimhal(self, _mask, _target, args):
"""Check the availability at GRIP Klimcentrum.
%%klimhal [<day>...]
"""
return self._process_command(args, area=804)

def _process_command(self, args, area: int = 803):
days = args["<day>"] or ["today"]
Expand Down

0 comments on commit c780e71

Please sign in to comment.