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

Adds support for stickers #221

Merged
merged 6 commits into from Aug 6, 2018

Conversation

Projects
None yet
2 participants
@Sorunome
Copy link
Collaborator

commented Aug 1, 2018

Adds support to send stickers over to discord

@Half-Shot

This comment has been minimized.

Copy link
Owner

commented Aug 1, 2018

(tests :p)

Sorunome added some commits Aug 1, 2018

log.verbose("Got m.room.message event");
if (event.content.body && event.content.body.startsWith("!discord")) {
} else if (event.type === "m.room.message" || event.type === "m.sticker") {
log.verbose("Got m.room.message / m.sticker event");

This comment has been minimized.

Copy link
@Half-Shot

Half-Shot Aug 1, 2018

Owner

That's just laaaazy, use Got ${event.type} event

This comment has been minimized.

Copy link
@Sorunome

Sorunome Aug 1, 2018

Author Collaborator

ooops my brain somehow turned off

@Half-Shot
Copy link
Owner

left a comment

One thing and I'll merge

@@ -166,7 +170,9 @@ export class MatrixEventProcessor {
"m.video",
"m.file",
"m.sticker",
].indexOf(event.content.msgtype) !== -1;
].indexOf(event.content.msgtype) !== -1 || [

This comment has been minimized.

Copy link
@Half-Shot

Half-Shot Aug 6, 2018

Owner

We have includes! indexOf() == -1 is old school :)

@Sorunome Sorunome merged commit 3e7856b into develop Aug 6, 2018

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@Sorunome Sorunome deleted the soru/stickers branch Aug 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.