


import baseaa






def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      )->						bytes:




      """simple docstring"""

      return baseaa.baaencode(string.encode('''utf-8'''      )      )






def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      )->						str:




      """simple docstring"""

      return baseaa.baadecode(SCREAMING_SNAKE_CASE      ).decode('''utf-8'''      )


if __name__ == "__main__":
   UpperCAmelCase    =					"""Hello World!"""
   UpperCAmelCase    =					baseaa_encode(test)
   print(encoded)

   UpperCAmelCase    =					baseaa_decode(encoded)
   print(decoded)



import requests






def  __lowerCAmelCase					(SCREAMING_SNAKE_CASE      ,      SCREAMING_SNAKE_CASE      )->						None:




      """simple docstring"""

      snake_case_ =   {'''Content-Type''': '''application/json'''}
      snake_case_ =   requests.post(SCREAMING_SNAKE_CASE      ,      json={'''text''': message_body}      ,      headers=SCREAMING_SNAKE_CASE      )
      if response.status_code != 200:
            snake_case_ =   (
                '''Request to slack returned an error '''
                f'''{response.status_code}, the response is:\n{response.text}'''
            )
            raise ValueError(SCREAMING_SNAKE_CASE      )


if __name__ == "__main__":
   # Set the slack url to the one provided by Slack when you create the webhook at
   # https://my.slack.com/services/new/incoming-webhook/
   send_slack_message("""<YOUR MESSAGE BODY>""", """<SLACK CHANNEL URL>""")