Giter Site home page Giter Site logo

quote-bot's Introduction

Quote Bot Edit

Telegram quote bot

修改自 https://github.com/LyoSU/quote-bot

内容

  • 使用 prebuilt-tdlib, 无需自行编译 tdlib
  • 删除广告和赞助 (adv, donate)
  • 删除状态统计和无意义的日志 (stats)
  • 删除 AI 功能 (openai)
  • 删除全局贴纸包相关功能 (globalStickerSet, ioredis)
  • 更好的中文翻译
  • 开箱即用 docker 镜像

docker compose 部署

已有 MongoDB

下载 docker-compose.yml 文件

复制 .env.example.env 并修改其中的配置项

在同目录下新建 data/fonts 文件夹,将字体文件放入其中

docker compose up -d

无 MongoDB

services:
  bot:
    image: ghcr.io/krau/quote-bot:main
    restart: always
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"
    env_file: .env
    command: node index.js
    depends_on:
      - mongodb
  api:
    image: ghcr.io/lyosu/quote-api:latest
    restart: always
    logging:
      driver: "json-file"
      options:
        max-size: "10m"
        max-file: "3"
    env_file: .env
    command: node index.js
    volumes:
      - ./data/fonts:/app/assets/fonts
  mongodb:
    image: mongo:4
    restart: always
    volumes:
      - ./data/db:/data/db

复制 .env.example.env 并修改其中的配置项

在同目录下新建 data/fonts 文件夹,将字体文件放入其中

docker compose up -d

quote-bot's People

Contributors

krau avatar nahidabuer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.