Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNICODE_TONE_MAP = {
- "light" => "1f3fb",
- "medium-light" => "1f3fc",
- "medium" => "1f3fd",
- "medium-dark" => "1f3fe",
- "dark" => "1f3ff",
- }
- modifiable_codes_list.each do |emoji_code|
- UNICODE_TONE_MAP.each do |key, tone_value|
- file_name = "#{emoji_code.to_s(16)}-#{tone_value}.png"
- png = download_emoji_png(file_name)
- if png
- File.open("/images/emoji/#{file_name}", "wb") do |file|
- file.puts png
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment