GithubHelp home page GithubHelp logo

botzf's Introduction

项目说明

基于nodejs+sqlite,基于nnr api在TG管理用户规则

使用

将config.json填充完之后再运行项目

字段 含义
tg_token tg机器人token
nnr_token nnr Api token
tg_admin_id 管理账户TGid
schedule_flag 流量扣除定时开关(0:关闭,1:开启)

运行

npm install
npm start

命令

根据命令使用tg机器人(如果用户流量消耗完会自动删除规则)

命令 含义 示例
/gettg 获取TGid
/usertemp 用户操作模板(管理员)
/adduser 创建用户(管理员) /adduser 19542314+300+2023-10-13 14:28:00+30
/resetuser 重置用户流量 /resetuser 19542314
/deluser 删除用户(管理员) /deluser 19542314
/alluser 查询所有用户(管理员)
/traffic 流量查询
/servers 获取所有可使用节点
/rules 获取用户转发列表
/ruletemp 转发操作模板(用户)
/addrule 添加转发(用户) /addrule bdcea4d3c4e0cdcc0edf06fc4fa2c959$tcp$192.168.0.1$12345
/delrule 删除转发(用户) /delrule 19542314

免责声明

  1. 本项目只是本人个人学习开发并维护,本人不保证任何可用性,也不对使用本软件造成的任何后果负责。
  2. 本项目仅测试学习使用,如有侵权请联系我删除。

botzf's People

Contributors

fangjuncao avatar zpaeng 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.