Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tinuwalther/psoctomes
PowerShell Script to send messages to multiple messenger
https://github.com/tinuwalther/psoctomes
discord mastodon powershell telegram twitter
Last synced: about 3 hours ago
JSON representation
PowerShell Script to send messages to multiple messenger
- Host: GitHub
- URL: https://github.com/tinuwalther/psoctomes
- Owner: tinuwalther
- License: mit
- Created: 2022-12-29T18:46:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-01T12:30:43.000Z (over 1 year ago)
- Last Synced: 2024-04-13T20:33:04.202Z (7 months ago)
- Topics: discord, mastodon, powershell, telegram, twitter
- Language: PowerShell
- Homepage:
- Size: 544 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PSOctomes
PowerShell Module to send messages to multiple messenger.
![Image](img/PSOctomes.jfif)
## Supported Messenger
- Discord
- Telegram
- Mastodon## How to configure Discord
Found on [my Blog](https://it.martin-walther.ch/discord/) (in german).
## How to configure Telegram
Found on [my Blog](https://it.martin-walther.ch/telegram/) (in german).
## How to configure Twitter
Found on the Blog of [Harm Veenstra](https://github.com/HarmVeenstra): [Create a Tweet on Twitter using PowerShell](https://powershellisfun.com/2022/08/01/create-a-tweet-on-twitter-using-powershell/)
## How to configure Mastodon
You need an access token that has at least write access to your status
- Go to Preferences -> settings -> Development
- Click "New Application"
- Enter a name
- Allow "write:statuses
- Click Submit
- Click on the new application to review the keys
- Copy and securely store the "Access token" for your script.## How to use
Clone the GitHub-Repository
````powershell
git clone https://github.com/tinuwalther/PSOctomes
cd ./PSOctomes
````Install-Modules:
````powershell
Install-Module Microsoft.PowerShell.SecretManagement, BluebirdPS -Verbose
Import-Module ./PSOctomes/ -Force
````Register SecretVault:
Create your credential as Secrets with the following entries:
- Discord_Token, URL, Token as Password
- Mastodon_Token, URL, Token as Password
- Telegram_Token, URL, Token as Password
- Telegram_ChatId, Id as Password````powershell
New-PSSecretStore -Register -Discord -Telegram -Mastodon -Twitter
````Test the access to the KeePass Vault:
````powershell
Get-SecretInfo -Vault PSOctomes | Select-Object Name, @{N='URL';E={$_.Metadata.values}}
````and execute the command Send-PSOctoMessage
````powershell
$Message = @"
Hi #PowerShell folks
I send this message to multiple messenger with #PowerShell and #PSOctomes.
https://github.com/tinuwalther/PSOctomes
"@Send-PSOctoMessage -Message $Message -SendToTelegram -SendToDiscord -SendToMastodon -SendToTwitter
````