Git Product home page Git Product logo

ddbot's Introduction

ddbot

功能

  • 查电费 - (此处有API接口,可看下方详情

    • 私聊查询

      电费 +宿舍楼宇房间号(eg. 电费 西南七 203 | 查电费 友园4 211 | 查电费 20 514)

    • 群查询

      @bot +私聊内容即可(一定要是@,复制无效

  • 查百度 - (来自teac-your-baidu

    • 私聊查询

      百度+要查询的东西(eg. baidu 怎么上谷歌 |百度 我要上推)

    • 群查询

      @bot +私聊内容即可(一定要是@,复制无效

  • 查天气 - (使用和风天气接口)

    • 私聊查询

      天气+要查询的天气(eg. 天气 成都 |天气 上海)

    • 群查询

      @bot +私聊内容即可(一定要是@,复制无效

  • 查出行 - (来自韩主席的PR)

    • 私聊查询

      回城+时间(可选)(eg. 回城 |回城 15:30)

    • 群查询

      @bot +私聊内容即可(一定要是@,复制无效

API

此接口已经失效,无法使用校园网环境

此接口已经失效,无法使用校园网环境

此接口已经失效,无法使用校园网环境

描述:

​ 传入楼宇房间号信息,返回时间戳+剩余电量(具体爬虫代码可以看历史commit,现后端为历史commit结合Chromepool完成,后端服务不在此项目文件内)

​ 使用redis缓存保存3分钟内查询过的房间,调用量目前没有限制

​ 本接口仅供参考,不确保准确性,仅支持四平和嘉定校区

  • URL:
	pc.washingpatrick.cn:2345
  • URI: /elec

  • parameter:

    可否为空 描述
    room No 楼宇+房间号,例如 西南七203 (中文注意要urlencode)
    o Yes 为1时只返回电量值,不返回时间戳
    .. .. ..
  • 举例:

    • 带时间戳:image-20191025170706504

    • 不带时间戳:image-20191025170541342

ddbot's People

Contributors

zzy0302 avatar rand1925 avatar

Stargazers

KaguraTart avatar 系哈哈 avatar  avatar Bingqi Shang avatar  avatar  avatar  avatar  avatar APTXOUS avatar Shun Zi avatar PeterWang@TaihouDaisuki avatar

Watchers

James Cloos avatar  avatar  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.