更新使用方法

This commit is contained in:
机器人总动员 2021-05-08 11:42:34 +08:00
parent 9d8d7a478c
commit 1b394f5030
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ RUN rm -rf /etc/localtime
RUN ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN cd /root \
&& git clone https://github.com/devourbots/word_cloud_bot.git
RUN echo sed '1c TOKEN = "这里输入机器人token"' /root/word_cloud_bot/config.py
RUN sed '1c TOKEN = "这里输入机器人token"' /root/word_cloud_bot/config.py
COPY entrypoint.sh /root/entrypoint.sh
RUN chmod +x /root/entrypoint.sh \
&& pip3 install -r /root/word_cloud_bot/requirements.txt

View File

@ -46,7 +46,7 @@ RUN ln -s /usr/share/zoneinfo/America/New_York /etc/localtime
# 在第8行修改你的机器人TOKEN
修改后:
RUN echo sed '1c TOKEN = "1749418611:AAGcpouQ4EWSDITLQXFozHjMgT_-MsVSmDM"' /root/word_cloud_bot/config.py
RUN sed '1c TOKEN = "1749418611:AAGcpouQ4EWSDITLQXFozHjMgT_-MsVSmDM"' /root/word_cloud_bot/config.py
# 根据 Dockerfile 创建镜像