关于IRC客户端Fishroom的两个问题

尝试使用了同款IRC Web Client : Fishroom实现irc和Tg的互通,但是有两个问题:

  • 如何在Web 中显示Telegram用户的昵称而不是用户名?
  • Telegram.py 这个bot在处理部分图片(表情包)的时候会崩溃,但是贵站的服务没有发现有这个问题,是否对源码进行了修改?如果是可否指点一下修改的哪些内容?

这是bot崩溃时的log

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/PIL/PngImagePlugin.py", line 724, in _save
    rawmode, mode = _OUTMODES[mode]
KeyError: 'RGBX'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/fishroom/fishroom/runner.py", line 37, in wrapper
    f(*args, **kwargs)
  File "/root/fishroom/fishroom/telegram.py", line 692, in Telegram2FishroomThread
    for msg in tg.message_stream(id_blacklist=tele_me):
  File "/root/fishroom/fishroom/telegram.py", line 540, in message_stream
    telemsg = self.parse_jmsg(jmsg)
  File "/root/fishroom/fishroom/telegram.py", line 372, in parse_jmsg
    url, err = self.upload_sticker(file_id)
  File "/root/fishroom/fishroom/telegram.py", line 284, in upload_sticker
    photo = webp2png(sticker)
  File "/root/fishroom/fishroom/helpers.py", line 50, in webp2png
    im.save(out, "PNG")
  File "/usr/local/lib/python3.5/dist-packages/PIL/Image.py", line 1930, in save
    save_handler(self, fp, filename)
  File "/usr/local/lib/python3.5/dist-packages/PIL/PngImagePlugin.py", line 726, in _save
    raise IOError("cannot write mode %s as PNG" % mode)
OSError: cannot write mode RGBX as PNG

我们并非软件原始开发方;建议去 github.com/tuna/fishroom 向原作者提问。

另外,本站使用的源码除了配置文件外未经任何修改。