Skip to content

Convert text to emojis in Lua just as you would in a chat client such as Discord.

License

Notifications You must be signed in to change notification settings

pat-dill/lua-emoji

Repository files navigation

😄 lua-emoji 😄

local emoji = require(path.to.emoji)

print(emoji("emojis are :ok_hand:!"))

-- output: emojis are 👌!

lua-emoji supports skin tones!

emoji() takes an optional second argument for the skin tone. Available skin tones are

  • emoji.Light
  • emoji.Dark
  • emoji.MediumLight
  • emoji.MediumDark
  • emoji.Medium

Aliases

Several aliases can be used for each emoji depending on your preferences:

print(emoji(":thumbs_up: = :thumbs-up: = :thumbsup:"))
-- output: 👍 = 👍 = 👍

lua-emoji also allows you to use ISO country codes from https://countrycode.org/ for flags.

Install

All the code is in one module, so you can install it by downloading the emoji.lua file from the GitHub repository and inserting it in your game.

Resources

The emoji list is generated from Taehoon Kim's emoji for Python.

About

Convert text to emojis in Lua just as you would in a chat client such as Discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published