Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class RespondStandupCommand(Command):
- @classmethod
- def recognize(cls, event):
- return event['channel'] in STANDUP_CHANNELS
- def do(self):
- data = STANDUP_CHANNELS.pop(self.channel)
- slack_client.api_call(
- "chat.postMessage",
- channel=data['origin'],
- text=f"""
- Here is the standup from {data['author']}
- {self.input}
- """
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement