V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
kslr
V2EX  ›  分享创造

[开源] Telegram AQI 天气质量机器人

  •  1
     
  •   kslr · 2017-02-12 19:20:06 +08:00 · 3120 次点击
    这是一个创建于 2627 天前的主题,其中的信息可能已经有所发展或是发生改变。

    学习 Node.js 之余做了个天气质量机器人,可以添加到群里面,发送 /aqi [city name]即可查询。

    Install

    https://github.com/kslr/telegram-aqi-bot/blob/master/README.md

    Usage

    可搜索用户"@AirPollution_Bot"测试。

    images

    Support

    If you are having problems with telegram-aqi-bot, please raise an issue on github.

    License

    Please see the LICENSE included in this repository for a full copy of the MIT license, which this project is licensed under.

    项目地址

    https://github.com/kslr/telegram-aqi-bot

    第 1 条附言  ·  2017-02-13 02:48:38 +08:00
    现在城市已经支持使用中文/繁体中文/拼音输入。
    13 条回复    2017-02-18 01:47:32 +08:00
    designer
        1
    designer  
       2017-02-12 21:20:39 +08:00 via iPhone   ❤️ 1
    支持一下!
    yeeyeung
        2
    yeeyeung  
       2017-02-12 21:29:54 +08:00
    好用!
    yxjxx
        3
    yxjxx  
       2017-02-12 21:34:10 +08:00
    https://ooo.0o0.ooo/2017/02/12/58a063ce085af.png

    挺赞的。手机上显示有点小问题。
    kslr
        4
    kslr  
    OP
       2017-02-12 21:47:39 +08:00
    @yxjxx #3

    因为用户收到的消息是一张 337X198 的图片,如果显示区域小于这个大小就会变成缩放的状态,并且 Telegram 消息状态中没有设备屏幕宽度的信息,所以恐怕没有办法适配。不过我会持续关注这个问题,争取解决掉。
    EricCartman
        5
    EricCartman  
       2017-02-12 22:28:10 +08:00 via Android
    有一个类似的 @SBisnotBot
    kslr
        6
    kslr  
    OP
       2017-02-12 22:34:48 +08:00
    @EricCartman #5

    嗯咯,可惜没有代码,所以就做了一个 MIT 下发布的。
    GhostFlying
        7
    GhostFlying  
       2017-02-13 01:19:45 +08:00 via Android   ❤️ 1
    不错,不过可以把中文自动转拼音?
    kslr
        8
    kslr  
    OP
       2017-02-13 01:24:41 +08:00
    @GhostFlying #7 谢谢反馈,我正在测试一些拼音库。
    kslr
        9
    kslr  
    OP
       2017-02-13 02:49:03 +08:00
    @GhostFlying #7 已经更新了。
    kslr
        10
    kslr  
    OP
       2017-02-13 02:50:34 +08:00
    sunsetwan967
        11
    sunsetwan967  
       2017-02-15 21:06:13 +08:00
    6666
    dongoo
        12
    dongoo  
       2017-02-18 01:05:41 +08:00   ❤️ 1
    赞,不过如果是多音字就会有问题哟

    kslr
        13
    kslr  
    OP
       2017-02-18 01:47:32 +08:00
    @dongoo #12 谢谢反馈,多音字的问题已经修复。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1233 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:07 · PVG 02:07 · LAX 11:07 · JFK 14:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.