Skip to content

Commit

Permalink
Merge pull request #2 from wiseCirno/dev
Browse files Browse the repository at this point in the history
开发完了,收工
  • Loading branch information
wiseCirno authored Dec 3, 2024
2 parents 6190426 + 3b78678 commit 75671f7
Show file tree
Hide file tree
Showing 33 changed files with 1,351 additions and 1,011 deletions.
64 changes: 38 additions & 26 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,49 @@ name: Docker Image CI

on:
push:
branches: [ "master" ]
branches: [ "master", "dev" ]
pull_request:
branches: [ "master" ]
branches: [ "master", "dev" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
- name: Checkout
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push for master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: darinirvana/neko-chan:latest

- name: Build and push for dev
if: github.ref == 'refs/heads/dev'
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: darinirvana/neko-chan:latest
push: true
tags: darinirvana/neko-chan:dev
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev \
&& pip install --no-cache-dir -r requirements.txt \
&& apk del --purge .build-deps

VOLUME ["/neko", "/logs"]
VOLUME /neko

CMD ["python3", "/app/bot/Main.py"]
CMD ["python3", "/app/bot/main.py"]
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ Neko is a self-hosted Telegram bot designed with many useful functions c:, espec

- [x] Download stickers
- [x] Upload manga as EPUB from Telegraph
- [x] Image search using Ascii2d and Iqdb
- [x] Image search using ASCII2D and Iqdb
- [x] Sync manga from Telegraph to server
- [x] ChatGPT assistant support
- [x] Anime timeline search by using stickers(GIF)
- [ ] Dmzj manga update notifications
- [ ] Convert manga from Dmzj links to Telegraph
- [x] Generate "Long Sticker"
- [ ] Convert manga from EX, EH, NH links to Telegraph

### Back-end
Expand All @@ -25,8 +24,8 @@ Neko is a self-hosted Telegram bot designed with many useful functions c:, espec
- [x] Integrate [trace.moe](https://soruly.github.io/trace.moe-api/#/) API
- [x] Integrate [ChatAnywhere](https://chatanywhere.apifox.cn/) v1 API
- [x] HTTP(S) and socks5 proxies support
- [x] CloudFlare Workers proxy support based on [Cloudflare-Workers-Proxy](https://github.com/ymyuuu/Cloudflare-Workers-Proxy)
- [ ] Fully integrate Dmzj v3 and v4 APIs
- [x] CloudFlare Workers proxy support based
on [Cloudflare-Workers-Proxy](https://github.com/ymyuuu/Cloudflare-Workers-Proxy)
- [ ] Fetch manga from EX, EH, NH sources

## 🔧 Docker Deployment
Expand Down
287 changes: 0 additions & 287 deletions bot/CoreFunction.py

This file was deleted.

Loading

0 comments on commit 75671f7

Please sign in to comment.