Created
August 9, 2014 16:29
-
-
Save pferreir/ebfad73817372aaee0c7 to your computer and use it in GitHub Desktop.
weechat-emoji.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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