Comments (6)
Hi!
I found a node library slackdown (https://github.com/blockmar/slackdown).
And I added it to src/processing/layers/message/html.js:
var slackdown = require('slackdown');
...
matrix.event.formatted_body = slackdown.parse(matrix.event.body);
Seems to work for me ;)
from matrix-appservice-webhooks.
Looks like we don't parse the slack link format correctly :(
In the meantime, something like https://t2bot.io/gitlab may work better for you (can be self-hosted).
from matrix-appservice-webhooks.
Thank you for pointing this out. Unfortunately for us we have a different use case:
The bot receives events from gitlab and put it in a group chat room - ideally with usable links -, and after somebody had read the message he/she could just click the link and continue in the Gitlab webpage...
from matrix-appservice-webhooks.
I remember taking a look at slackdown in the past, but there was something that went wrong so I ended up ditching it. I'll take another look though - it is possible that the issue I saw back then is fixed now.
from matrix-appservice-webhooks.
Duplicate of #14?
from matrix-appservice-webhooks.
I think this should be fixed with #14
from matrix-appservice-webhooks.
Related Issues (20)
- messages are coming in as raw JSON
- Init failed
- Problem with permissions in the room. HOT 1
- GitLab webhooks result in HTTP 400 HOT 8
- Vulnerable dependencies HOT 1
- Slack 'Attachment' Images not displaying HOT 1
- GitLab commit activities are missing newlines HOT 1
- Bridge crashes when mime type of file cannot be determined. HOT 1
- Uploading a webhook avatar from url fails HOT 3
- Https hookurlbase HOT 1
- Direct message webhooks HOT 2
- Traceback on non-string 'text' field
- Appservice not using m.login.application_service HOT 1
- icon_emoji causes bridge to crash. HOT 1
- Cannot get Bridge to work after restart of Matrix and the Bridge - "You are not invited to this room." / "M_USER_IN_USE"
- Keep getting "SQLITE_ERROR: no such table: webhooks" error. Please help? HOT 1
- Pillify webhook target in admin room
- First Newline becomes <br>, even in code block HOT 1
- Fresh installation fails to start - this._orm.import is not a function HOT 1
- 400 error on post HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matrix-appservice-webhooks.