Custom emoji bulk register(by console, xxx.png will be registred as :xxx:) v2
EMOJI_GLOB = '~path to emojis~/*.png'
Dir.glob(EMOJI_GLOB).each do |e|
shortcode = File.basename(e, '.png')
CustomEmoji.find_or_initialize_by(shortcode: shortcode, domain: nil) do |emoji|
open(e, 'rb') do |f|
emoji.image = f
emoji.save
end
end
end; 1
sample emoji files to load v2.(rename emojione cats with prefix emojione_, rename android cats wirth prefix android_ and add android cats.) https://ggtea.org/emojis_ggtea_v2.zip
sample emoji files to load...(it's used in my instances) https://ggtea.org/emojis_ggtea.zip