Comments (7)
Ah, I think I found them. The mattermost-client
instance is available off the adapter, so you can do this:
module.exports = (robot) => {
robot.hear(/hubot/, (res) => {
res.robot.adapter.client.react(res.message.id, 'paddlin');
})
};
from hubot-matteruser.
Works per @reduckted's suggestion.
module.exports = (robot) => {
robot.hear(/hubot/, (res) => {
res.robot.adapter.client.react(res.message.id, 'paddlin');
})
};
from hubot-matteruser.
@jwernicke waiting for the reactions API to become available in the Mattermost v4
API
from hubot-matteruser.
I think it's available right? https://api.mattermost.com/#tag/reactions
from hubot-matteruser.
@jwernicke @mmack it's now available in mattermost-client
as react()
and unreact()
calls, but I'm not sure these are exposed on the @Robot object which is passed to your scripts. Would be great if you can try it out.
from hubot-matteruser.
I'm not 100% sure I'm looking in the right place, but I've created a tiny script to check if the react()
and unreact()
functions are available, and they don't seem to exist.
module.exports = (robot) => {
robot.hear(/hubot/, (res) => {
console.log(res.robot.react);
})
};
When it receives a command, it prints undefined
to the console.
from hubot-matteruser.
@reduckted thanks for checking!!
from hubot-matteruser.
Related Issues (20)
- Lost integration when sending an attachments.
- Messages missed
- Send multiple messages with .send and messageRoom with one async function but still miss order. HOT 1
- Question about Dockerized version and custom scripts HOT 1
- Question: why do we add this.robot.name before the message when DM HOT 4
- Add unit tests for matteruser
- Avoid multiline format for log stack
- 🐛 Error building docker image HOT 3
- connect mattermost not reply in channels
- unable to connect with mattermost client. HOT 1
- Mattermost 7.7 Support
- No compatible version found: mattermost-client@^6.0.0 HOT 3
- Interactive dialogs HOT 3
- Do not cite author in replies
- whitelist of channels to join
- Migrating hubot to a bot account breaks it partially HOT 3
- Feature Request: mattermost-client to mattermost-client-node HOT 3
- Create user account via plugin
- hubot replies result in "Invalid RootId parameter" messages and no output HOT 11
- Need correction on channel name HOT 1
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 hubot-matteruser.