Giter VIP home page Giter VIP logo

ding-bot's Introduction

Ding Bot

一个基于python-telegram-bot开发的项目,项目的初衷是为了让用户能够及时获取需要的推送,在未来,该项目会加入更多诸如股市监控,商品价格监控等日常实用信息,用户可根据自己的需求选择开启某几个模块。利用该项目,用户能够便捷地在服务器上部署相关的Bot后台,在众多场景中高效地获取消息,并将相关服务分享给好友。

项目目前仅提供淘宝及天猫的商品监控功能,使用上,用户可以便捷地发送App的分享链接给Bot直接进行添加,当商品上架时,用户会连续三次收到来自Bot的消息。在监控频率上,项目提供了有限的监控,避免因此造成服务器负担过大,仅作为实验性质的使用。

如果项目造成侵权,请在项目内发ISSUE告知。目前,项目引用了Bark,作者Github为https://github.com/Finb

Table of Contents

Install

项目基于Python3开发,请确保有相关环境

  1. pip install -r requirements.txt安装相关依赖包
  2. main.py为主入口,首次运行会生成config.ini,需要填充tokenproxy可留空
  3. 再次运行main.py即可使用,log默认保存为telegram.log,数据默认保存为telegram.db

Usage

首先需要创建一个Bot,在客户端搜索@BotFather发送/newbot指令即可,按提示提交信息后即可获取到token,运行项目后直接向自己的Bot发送消息即可使用

目前bot支持以下几种命令:

  1. 使用指令/area可以设置地区,往后的查询都将查询属于自己地区的商品库存,该命令可以重复使用,会覆盖之前的设置

  2. 在淘宝/天猫的商品页面点击分享按钮,方式选择复制链接,然后将剪贴板的内容发送给Bot即可自动将商品加入监控

  3. 使用指令/del可以删除监控商品,Bot会返回标签为商品名的按钮,点击即可删除

  4. 使用指令/list可以展示自己当前设定的地区和监控的商品列表

  5. 使用指令/status可以查看服务器的监控情况,该线程每分钟请求一次接口,可根据历史数据确定接口是否正常

  6. 使用指令/ios [key] 可以使用IOS推送消息,速度更快,获取KEY需要安装Bark,可通过App Store搜索

  7. 指令/start提供了简单的文本说明

Example Config

token = 96123456:AABBCCCd0
proxy_url = socks5://127.0.0.1:10808 #HTTP ALSO

Running Display

Pic1.jpg

ding-bot's People

Contributors

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