Packages

Used to change goomoji codes into normal emoji codes

Current section

Files

Jump to
goomoji_translator lib goomoji_translator.ex
Raw

lib/goomoji_translator.ex

defmodule GoomojiTranslator do
def find_by_goomoji_code(code) do
File.read!(Path.expand("./config/file.txt")) |>
String.split |>
Enum.map(fn x -> String.split(x, ";") end) |>
Enum.filter(fn x -> Enum.at(x, 0) == code end) |>
Enum.at(0) |>
tl |>
hd
end
end