npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hubot-askmona

v1.0.2

Published

Hubot adapter for AskMona

Readme

hubot-askmona

(This README.md was written in Japanese.)

AskMona用のHubot Adapter

使い方

module.exports = (bot) ->
  bot.respond /おはよう/, (msg) ->
    msg.reply "もう夜やで" #=> >>(レス番号) もう夜やで
  bor.respond /Monaくれ/, (msg) ->
    # msg.tip (レス番号: msg.message.idで取得できる), (量: mona単位), (匿名なら 1 が入る)
    msg.tip msg.message.id, 0.001, 0

基本は他のadapterと変わりませんが、投げ銭機能が独自で実装されています(tip)。 本家hubotにはないメソッドのため、この機能を使いたい場合は以下のことを行ってください。

(botのディレクトリをbot/とします)

  1. bot/node_modules/hubot/src/response.coffee を開く
  2. 以下のようにtipメソッドを追加する インデントに注意!
  # Returns nothing.
  send: (strings...) ->
    @robot.adapter.send @envelope, strings...
    
  # ここ!
  tip: (resp_id, amount, anonymous = 1) ->
    @robot.adapter.tip resp_id, amount, anonymous

  # Public: Posts an emote back to the chat source ...
  1. adapter.coffeeにも同様に追加しておくのもgood (他のAdapterに付けかえる際にerrorがでるため)

インストール

Ask Mona側

  1. Ask Monaにログインする
  2. 開発者マイページにアクセスする
  3. アプリケーションを作成する
  4. アプリケーションIDと開発シークレットキー、連携ページURLをメモする
  5. ログアウトして、bot用アカウントでログインする(アカウントが同一ならばそのまま)
  6. 先ほどメモした連携ページURLに飛ぶ
  7. JSON形式の認証コードが表示されるので、secretkeyの値、u_idの値をメモする
  8. botに反応させたいトピックのIDをメモする

ローカル側

  1. hubotのpackage.jsonのdependenciesにhubot-askmonaを追加
  2. $ npm install
  3. ~/.bash_profileに以下を追記
export HUBOT_ASKMONA_DEV_SECRETKEY=(4.でメモした開発者シークレットキー)
export HUBOT_ASKMONA_APP_ID=(4.でメモしたアプリケーションID)
export HUBOT_ASKMONA_USER_ID=(7.でメモしたu_id)
export HUBOT_ASKMONA_SECRETKEY=(7.でメモしたsecretkey)
export HUBOT_ASKMONA_TOPIC_ID=(8.でメモしたトピックのID)
export REDIS_URL=redis://127.0.0.1:6379/hubot
  1. $ source ~/.bash_profile
  2. $ redis-server
  3. `$ bin/hubot -a askmona -n BOT_NAME -l BOT_ALIAS

contribution

  1. Forkする ( http://github.com/sei0o/hubot-askmona/fork )
  2. branchつくる(git checkout -b my-new-feature)
  3. Commitする(git commit -am 'Add some feature')
  4. Pushする~~~(git push origin my-new-feature)
  5. Pull Request ~~~~

LICENSE

LICENSEファイルを見てください