Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
2,727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. class RespondStandupCommand(Command):
  2.  
  3.     @classmethod
  4.     def recognize(cls, event):
  5.         return event['channel'] in STANDUP_CHANNELS
  6.  
  7.     def do(self):
  8.         data = STANDUP_CHANNELS.pop(self.channel)
  9.         slack_client.api_call(
  10.             "chat.postMessage",
  11.             channel=data['origin'],
  12.             text=f"""
  13.            Here is the standup from {data['author']}
  14.            {self.input}
  15.            """
  16.         )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement