mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Replace main with __main__ (#3518)
This commit is contained in:
parent
a481bfa231
commit
4c92f8c0d0
@ -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
|
# Set the slack url to the one provided by Slack when you create the webhook at
|
||||||
# https://my.slack.com/services/new/incoming-webhook/
|
# https://my.slack.com/services/new/incoming-webhook/
|
||||||
send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")
|
send_slack_message("<YOUR MESSAGE BODY>", "<SLACK CHANNEL URL>")
|
||||||
|
Loading…
Reference in New Issue
Block a user