Giter VIP home page Giter VIP logo

feiyangdigital-bot's Introduction

🤖 Feiyang Digital Telegram 群管机器人

基于 SpringBootTelegrambot-Api 打造的多功能 Telegram 群管理机器人,有效查杀18+违规视频、贴图、图片,AI识别各种博彩,违规图片、文字,可设置正则自定义关键字回复、违规词汇删除等功能,支持每日词云统计,进群欢迎等多种实用群管功能,Powered By OpenAI And Google Cloud Vision

1️⃣ 开始之前

强烈推荐观看保姆级部署视频教程:点击观看

使用文档:点击下载

2️⃣ 终端运行

curl -o start.sh https://ghproxy.com/https://raw.githubusercontent.com/youshandefeiyang/feiyangdigital-bot/main/start.sh && chmod +x start.sh && ./start.sh

3️⃣ 配置机器人

  • 前往 /home/feiyangdigitalbotconf/ 目录,编辑 conf.json 文件:
    1. 填入你的 usernametokenbotConfignametoken 字段。
    2. 保存更改。

▶️ 运行机器人

  • 确保你的网络可以连接到 Telegram 服务器。如果使用软路由,请使用增强代理。
  • /home/feiyangdigitalbotconf/ 目录下执行:
docker-compose up -d

⏸️ 暂停容器

  • /home/feiyangdigitalbotconf/ 目录下执行:
docker-compose stop

🔥 重启容器

  • /home/feiyangdigitalbotconf/ 目录下执行:
docker-compose restart

🔍 查看日志

/home/feiyangdigitalbotconf/ 目录下执行:

docker-compose logs -f 

🔄 更新

/home/feiyangdigitalbotconf/ 目录下进行以下操作: 1.停止并移除卷:

docker-compose down

2.删除数据库持久卷(❗️危险操作,你需要对比本仓库里的数据库文件是否更新过,否则不要执行,删除之前请备份各种关键词文档):

  • 首先备份数据库至/home/目录下
docker exec -it feiyangdigitalbotconf-mysql-1 mysqldump -uroot -ppassword bot  > /home/bot.sql
  • 删除数据库持久卷
docker volume rm feiyangdigitalbotconf_mysql-data

3.拉取最新镜像:

docker-compose pull  

4.使用新镜像重新启动容器:

docker-compose up -d

5.在宿主机的/etc/sysctl.conf文件中添加或修改以下行并重启:

vm.overcommit_memory = 1

feiyangdigital-bot's People

Contributors

youshandefeiyang 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.