Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shuuji3/mastodon-post-to-slack
🐘 Send Mastodon post to Slack channel
https://github.com/shuuji3/mastodon-post-to-slack
mastodon slack
Last synced: 25 days ago
JSON representation
🐘 Send Mastodon post to Slack channel
- Host: GitHub
- URL: https://github.com/shuuji3/mastodon-post-to-slack
- Owner: shuuji3
- License: gpl-3.0
- Created: 2022-12-23T18:19:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T03:15:46.000Z (over 1 year ago)
- Last Synced: 2024-06-11T19:12:13.144Z (5 months ago)
- Topics: mastodon, slack
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mastodon-post-to-slack
🐘 Send Mastodon post to Slack channel
Mastodon does support RSS feed natively. However, Slack RSS integration posts all profile URLs in the conversation and their status URL, which occupy a large area in the channel, and its body text is always duplicated.
This Python application solves the issues by cleaning up the text and including only needed links in the post.
## Screenshot
Sample post from [@[email protected]](https://fosstodon.org/@ThePSF):## Usage
- Set up the incoming webhook integration on Slack.
- Create `.env` from `.env.sample` and `config.yaml` from `config.yaml.sample`.
- Install dependencies and run `main.py` as follows:```shell
python3 -m vnev .venv
. .venv/bin/activate
pip install -r requirements.txt
python main.py
```## Configuration
You can easily customize the source accounts and target Slack channels by `config.yaml`:
```yaml
---
feeds:
- domain: mastodon.social
username: mastodon
channel: general
- domain: fosstodon.org
username: ThePSF
channel: feed-python
type: with_replies
```