Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slack-claude 在ping命令中不显示 #752

Merged
merged 2 commits into from
May 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile-cn
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM python:3.11.2-slim-bullseye

ENV DEBIAN_FRONTEND=noninteractive

COPY ./fonts/sarasa-mono-sc-regular.ttf /usr/share/fonts/

RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN cat /etc/apt/sources.list

RUN apt-get update && \
apt install --no-install-recommends xvfb binutils qtbase5-dev wkhtmltopdf ffmpeg -yq && \
(strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 || true) && \
apt-get remove --purge -yq binutils && \
apt-get clean && \
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \
rm -rf /var/lib/apt/lists/*

RUN mkdir -p /app
WORKDIR /app

COPY requirements.txt /app
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn --no-cache-dir -r requirements.txt && pip cache purge

COPY . /app

CMD ["/bin/bash", "/app/docker/start.sh"]
2 changes: 2 additions & 0 deletions manager/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,4 +481,6 @@ def bots_info(self):
bot_info += f"* {LlmName.PoeSage.value} : POE Sage 模型\n"
bot_info += f"* {LlmName.PoeClaude.value} : POE Claude 模型\n"
bot_info += f"* {LlmName.PoeChatGPT.value} : POE ChatGPT 模型\n"
if len(self.bots['slack-accesstoken']) > 0:
bot_info += f"* {LlmName.SlackClaude.value} : Slack Claude 模型\n"
return bot_info