Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add emoji support for matrix #110

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions octoprint_Octoslack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from rocketchat.api import RocketChatAPI
from matrix_client.client import MatrixClient
from matrix_client.client import Room as MatrixRoom
import emoji
from PIL import Image
from octoprint.util import RepeatedTimer
from minio import Minio
Expand Down Expand Up @@ -3894,6 +3895,7 @@ def send_slack_message(

matrix_msg = matrix_msg + "</blockquote><br/>"

matrix_msg = emoji.emojize(matrix_msg, use_aliases=True)
self._logger.debug("Matrix msg: " + matrix_msg)

matrix_room = MatrixRoom(matrix, channel)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"matrix_client",
"discord-webhook",
"pymsteams",
"emoji>=0.6.0",
"six>=1.9.0",
]

Expand Down