emotify.addEmote()

emotify.addEmote() adds to the list of emotes, an emote that will be considered while emotify-ing text.

Syntax

emotify.addEmote({"emoteName", "emoteURL"});

Parameters

emotes An object containing the emote names and URLs as key and value pairs.

Example

emotify.addEmote({
	"sigh": "./sigh.png",
	"sweat": "./sweat.png",
	"neutral": "./neutral.png",
	"love": "./love.png",
	"sleepy": "./sleepy.png",
});

emotify.convert()

emotify.convert() Reconverts all texts into emotes, useful in scenarios where the text changes after page load.

Syntax

emotify.convert();

Parameters

No parameters.

Example

emotify.convert();

Default Emote List

Name Emote
sigh :sigh:
sweat :sweat:
neutral :neutral:
love :love:
sleepy :sleepy:
laugh :laugh:
smile :smile:
sob :sob:
confused :confused:
sad :sad:
sneeze :sneeze:
angry :angry:
yawn :yawn:
kiss :kiss:
sweat_smile :sweat_smile:
amazed :amazed:
wink :wink:
smirk :smirk:
unamused :unamused:
joy :joy:
grin :grin:

Go back to emotify.js.org