
wee-slack now (optionally) depends on a data file called weemoji.json that allows it to translate between Slack emoji names (like "slight_smile") and Unicode codepoints. For convenience, the derivation now installs this file and patches the script so that the user doesn't need to do any extra configuration to use it.
13 lines
439 B
Diff
13 lines
439 B
Diff
--- a/wee_slack.py
|
|
+++ b/wee_slack.py
|
|
@@ -4560,8 +4560,7 @@
|
|
|
|
def load_emoji():
|
|
try:
|
|
- DIR = w.info_get('weechat_dir', '')
|
|
- with open('{}/weemoji.json'.format(DIR), 'r') as ef:
|
|
+ with open('@out@/share/wee-slack/weemoji.json', 'r') as ef:
|
|
emojis = json.loads(ef.read())
|
|
if 'emoji' in emojis:
|
|
print_error('The weemoji.json file is in an old format. Please update it.')
|