Guest User

Untitled

a guest
Jan 23rd, 2019
300
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         )
RAW Paste Data