Open datorr2 opened 1 year ago
If you want to reply with a reaction you can use driver.react_to(message, "emoji-name")
.
Additional mattermost driver actions can be found in mattermost-autodriver documentation.
If you want to reply with a reaction you can use
driver.react_to(message, "emoji-name")
.
The use case I was looking to do was not an emoji reaction, but a /me
emote message.
Like, when the bot first starts up, it could do:
/me enters stage left.
And when it shuts down:
/me exits stage right.
I can't find much about this type
argument.
It seems poorly documented and a little obscure.
I think a pull request adding this feature would be acceptable but I would like to know if this is just for /me
or other post types are possible?
And if so, can you provide a link to documentation that lists the post types?
I can't find much about this
type
argument. It seems poorly documented and a little obscure.
That is correct. I haven't been able to find much on it. I found it when I was trying to figure out how to have the bot send /me
messages.
I think a pull request adding this feature would be acceptable but I would like to know if this is just for
/me
or other post types are possible? And if so, can you provide a link to documentation that lists the post types?
No documentation found so far, but there's an entire list of types in the mattermost/mattermost-server project:
Lines 22 through 53.
This is interesting. #377 might benefit from this as well (system_join_channel
) even if on the listen side.
If you are able to propose a pull request, I'd happily review.
I think this could also be a nice feature to showcase in the documentation. Some screenshots of how the different post types look like. It's surprising how many of them there are. I didn't expect the list to be so extensive.
For example: to create an emote, you would create a post with a
type
ofme
.