{"id":16022579,"url":"https://github.com/shoddyguard/slacknotificationscripts","last_synced_at":"2025-09-01T02:38:09.470Z","repository":{"id":253404663,"uuid":"273608957","full_name":"shoddyguard/SlackNotificationScripts","owner":"shoddyguard","description":"Contains useful scripts for triggering Slack notifications from a variety of shells.","archived":false,"fork":false,"pushed_at":"2020-06-20T09:30:24.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T11:56:21.387Z","etag":null,"topics":["powershell","python","slack"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shoddyguard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-20T00:12:17.000Z","updated_at":"2020-06-20T09:36:40.000Z","dependencies_parsed_at":"2024-08-16T14:27:27.467Z","dependency_job_id":null,"html_url":"https://github.com/shoddyguard/SlackNotificationScripts","commit_stats":null,"previous_names":["shoddyguard/slacknotificationscripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shoddyguard/SlackNotificationScripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoddyguard%2FSlackNotificationScripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoddyguard%2FSlackNotificationScripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoddyguard%2FSlackNotificationScripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoddyguard%2FSlackNotificationScripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shoddyguard","download_url":"https://codeload.github.com/shoddyguard/SlackNotificationScripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shoddyguard%2FSlackNotificationScripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273067164,"owners_count":25039752,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","python","slack"],"created_at":"2024-10-08T18:40:43.031Z","updated_at":"2025-09-01T02:38:09.454Z","avatar_url":"https://github.com/shoddyguard.png","language":"PowerShell","readme":"# SlackNotificationScripts\nThis collection of scripts was born out of the need to find a simple and effective way of scripting notifications to Slack for various shell based tasks/workflows.\n\n* [Python](#python)\n  * [Python 3 Script](#notifyslackpy-python3-script)\n* [PowerShell](#powershell)\n  * [PowerShell Script](#notifyslackps1-windows-powershell-script)\n  * [PowerShell cmdlet](#notifyslackpsm1-windows-powershell-module)\n\n\n## Python\n### NotifySlack.py (Python3 Script)\n\n#### Usage\n`NotifySlack.py \u003cparameters\u003e \u003coptions\u003e`\n\n|Parameter       |Required         |Description    |\n|----------------|-----------------|---------------|\n|--message (-m)  |True             |The message you would like to send |\n|--webhook (-w)  |True             |The full webhook address assigned to the channel you'd like to send the message to |\n|--colour (-c)   |False            |The hex code of the colour you'd like to appear around the message |\n|--push (-p)     |False            |The message you'd like display in any pop-up/push/toast notifications|\n\n#### Example\n```\nNotifySlack.py --message 'Hello, world!' --webhook 'https://hooks.slack.com/my-webhook' --colour #FF0000 --push 'Foo Bar'\n```\nThis would result in the 'Hello, world!' message being posted to the channel linked to the webhook, the message would have a red stripe alongside it and a pop-up notification entitled 'Foo Bar'\n\n## PowerShell\n\n### NotifySlack.ps1 (Windows PowerShell Script)\n\n#### Usage\n`NotifySlack.ps1 \u003cparameters\u003e \u003coptions\u003e`\n|Parameter       |Required         |Description    |\n|----------------|-----------------|---------------|\n|-Message        |True             |The message you would like to send |\n|-Webhook        |True             |The full webhook address assigned to the channel you'd like to send the message to |\n|-Colour         |False            |The hex code of the colour you'd like to appear around the message |\n|-Push           |False            |The message you'd like display in any pop-up/push/toast notifications|\n\n#### Example\n```\nPS C:\\\u003e NotifySlack.ps1 -Message 'Foo Bar' -Webhook 'https://hooks.slack.com/my-webhook' -Colour '#FF0000' -Push 'Fizz Buzz'\n```\nThis would send the 'Foo Bar' message to the channel linked to the given webhook. \nThe message would also have a red stripe down the side of it and the pop-up notification would say 'Fizz Buzz'\n\n### NotifySlack.psm1 (Windows PowerShell Module)\n\nIn certain situations it may make more sense to use a cmdlet rather than a commandline script therefore you can use the `NotifySlack.psm1` module.\nThe parameters are exactly the same as the `NotifySlack.ps1` script.\n\n#### Example\n```\nPS C:\\\u003e Import-Module NotifySlack.psm1\nPS C:\\\u003e Invoke-SlackNotification -Message 'Hello, world!' -Webhook 'https://hooks.slack.com/my-webhook'\n```\nThe first command imports the `NotifySlack` module and then the second sends the `Hello, world!` message to the channel linked with the given Webhook\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoddyguard%2Fslacknotificationscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshoddyguard%2Fslacknotificationscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshoddyguard%2Fslacknotificationscripts/lists"}