Skip to content

Instantly share code, notes, and snippets.

@pferreir
Created August 9, 2014 16:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pferreir/ebfad73817372aaee0c7 to your computer and use it in GitHub Desktop.
Save pferreir/ebfad73817372aaee0c7 to your computer and use it in GitHub Desktop.
weechat-emoji.rb
require 'rumoji'
def render(data, modifier, modifier_data, message)
Rumoji.decode(message)
end
def weechat_init
Weechat.register 'rumoji', 'Pedro Ferreira', '0.0.1', 'MIT',
'Render emoki using Rumoji', '', ''
Weechat.hook_modifier("weechat_print", "render", "")
Weechat::WEECHAT_RC_OK
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment