Bluefissure / OtterBot

A QQ bot of FFXIV
https://xn--v9x.net
GNU General Public License v3.0
522 stars 129 forks source link

Docker搭建的窝不能查询DPS #155

Closed hundunzhidian closed 2 years ago

hundunzhidian commented 2 years ago

原因: ffxivbot/handlers/QQUtils.py文件下 281行

    redis_client = redis.Redis(host="localhost", port=6379, decode_responses=True)

对于docker-compose部署的方式来说,localhost代表这个容器,无法获取到redis信息导致查询失败,改成

    redis_client = redis.Redis(host="redis", port=6379, decode_responses=True)

就可以了,如果是其他方式部署,则需要把localhost改成redis的监听地址

Bluefissure commented 2 years ago

忘了加 sed,已修改 https://github.com/Bluefissure/OtterBot/commit/e1be6fd990dbc644b34c2d89b360bafc4602246b