Skip to content

Commit

Permalink
Merge pull request #82 from SK-415/dev
Browse files Browse the repository at this point in the history
Release v1.3.0.post1
  • Loading branch information
SK-415 authored Jul 28, 2021
2 parents 3a2bfce + 64c8f76 commit cd5172e
Show file tree
Hide file tree
Showing 9 changed files with 529 additions and 189 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ _demo/

.env
.env.dev
docker-compose.yml
Dockerfile

src/plugins/copyman.py
src/plugins/test.py
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.8

RUN python3 -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

RUN python3 -m pip install poetry && poetry config virtualenvs.create false

COPY ./pyproject.toml ./poetry.lock* /app/

RUN poetry install --no-root --no-dev
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[![HarukaBot](https://socialify.git.ci/SK-415/HarukaBot/image?description=1&font=Source%20Code%20Pro&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FSK-415%2FHarukaBot%2Fmaster%2Fdocs%2F.vuepress%2Fpublic%2Flogo.png&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Light)](https://haruka-bot.live/)
[![HarukaBot](https://socialify.git.ci/SK-415/HarukaBot/image?description=1&font=Source%20Code%20Pro&forks=1&issues=1&language=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FSK-415%2FHarukaBot%2Fmaster%2Fdocs%2F.vuepress%2Fpublic%2Flogo.png&owner=1&pattern=Circuit%20Board&stargazers=1&theme=Light)](https://haruka-bot.sk415.icu/)

# HarukaBot ——你的“单推”小助手

名称来源:[@白神遥Haruka](https://space.bilibili.com/477332594 )

logo 画师:[@秦无](https://space.bilibili.com/4668826 )

[![VERSION](https://img.shields.io/pypi/v/haruka-bot)](https://haruka-bot.live/about/CHANGELOG.html)
[![VERSION](https://img.shields.io/pypi/v/haruka-bot)](https://haruka-bot.sk415.icu/about/CHANGELOG.html)
[![time tracker](https://wakatime.com/badge/github/SK-415/HarukaBot.svg )](https://wakatime.com/badge/github/SK-415/HarukaBot)
[![qq group](https://img.shields.io/badge/QQ%E7%BE%A4-629574472-orange )](https://jq.qq.com/?_wv=1027&k=sHPbCRAd)
[![docs](https://img.shields.io/badge/%E6%96%87%E6%A1%A3-%E7%82%B9%E5%87%BB%E6%9F%A5%E7%9C%8B-green)](https://haruka-bot.sk415.icu)
Expand All @@ -19,7 +19,7 @@ HarukaBot 致力于为B站UP主们提供一个开源免费的粉丝群推送方

> 介于作者技术力低下,HarukaBot 的体验可能并不是很好。如果使用中有任何意见或者建议都欢迎提交issue或[**添加Haruka反馈交流群**](https://jq.qq.com/?_wv=1027&k=sHPbCRAd)进行反馈,我会努力去完善它。
## [文档(点我查看)](https://haruka-bot.live/)
## [文档(点我查看)](https://haruka-bot.sk415.icu/)

## 功能介绍

Expand Down
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: "2"
services:
# 其他配置参考 https://hub.docker.com/r/tiangolo/uvicorn-gunicorn-fastapi/
nonebot:
build: .
volumes:
- "/etc/localtime:/etc/localtime"
- "./:/app/"
ports:
- "8080:8080" # 映射端口到宿主机 宿主机端口:容器端口
env_file:
- ".env.prod" # fastapi 使用的环境变量文件
environment:
- ENVIRONMENT=prod # 配置 nonebot 运行环境,此项会被 .env 文件覆盖
- APP_MODULE=bot:app # 配置 asgi 入口
- SECRET # 通过 SECRET=xxx nb up -d 传递密钥
- ACCESS_TOKEN # 通过 ACCESS_TOKEN=xxx nb up -d 传递密钥
- MAX_WORKERS=1 # 如果你有多个QQ,且存在 self_id 指定,多个 worker 会导致无法找到其他 websocket 连接
network_mode: bridge
Loading

1 comment on commit cd5172e

@vercel
Copy link

@vercel vercel bot commented on cd5172e Jul 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.