fendersperth / fendersbot

A group project for learning and teaching via a real code base
9 stars 3 forks source link

Image to emoji matrix conversion #34

Open shwippity opened 8 years ago

shwippity commented 8 years ago

I'm not entirely sure if this is possible, but an easy way for a user to submit an image and have it converted to an emoji matrix.

example 1. (simple image to emoji)
/emojify apple http://vignette3.wikia.nocookie.net/adventuretimewithfinnandjake/images/7/7d/Apple.png

would create an emoji called :apple: using the image at the link or return an error if the name is already used or the link is incorrect.

example 2. (image to emoji matrix)

because emoji in slack are seamless we can create a matrix of emoji like so

/emojify apple 2*2 http://vignette3.wikia.nocookie.net/adventuretimewithfinnandjake/images/7/7d/Apple.png

would create four emojis named

:apple00::apple01:
:apple10::apple11:

or return an error

example 3. (retreiving stored emoji matrices)

when an emoji matrix is created you can either manually call it by typing

:apple00::apple01:
:apple10::apple11:

or it could be set up so we can simply write

/emojimatrix apple 2*2

and it would output it for us or return an error

The syntax doesn't have to be exactly like I've written here but this should be enough for you to get the gist of the idea and how it could scale.

Any questions let me know,

Cheers, J

luke-john commented 8 years ago

Looks like it's not currently possible via the api https://github.com/slackhq/slack-api-docs/issues/28

However we could hook something up similar to https://github.com/smashwilson/slack-emojinator (from the slack api issue).