Skip to content
Permalink
Browse files

Replace main with __main__ (#3518)

  • Loading branch information
Anselmoo committed Oct 18, 2020
1 parent a481bfa commit 4c92f8c0d06cbeeddcb7efc443f2043a5692b893
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 web_programming/slack_message.py
@@ -13,7 +13,7 @@ def send_slack_message(message_body: str, slack_url: str) -> None:
)


if __name__ == "main":
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>")

0 comments on commit 4c92f8c

Please sign in to comment.
You can’t perform that action at this time.