0.1.0 • Published 7 years ago
hubot-tor v0.1.0
hubot-tor
A hubot script to query torproject.org to get basic information (running, for how long, flags) about relays.
See src/tor.coffee
for full documentation.
Installation
In hubot project repo, run:
npm install hubot-tor --save
Then add hubot-tor to your external-scripts.json
:
[
"hubot-tor"
]
Environment Variables
HUBOT_TOR_FINGERPRINT - the fingerprint of the tor relay which is searched when "tor" is sent to hubot
HUBOT_TOR_TIMEDESIGNATORS - if this is set to "short", then the outpug will show e.g. "3Y 4D 5m" for the uptime, instead of "3 years, 4 days, 5 minutes"
Sample Interaction
user1>> tor
hubot>> <myrelay> is running for 3 days, 23 hours, 21 minutes with flags Fast, Running, V2Dir, Valid
user1>> relay <qeryrelay>
hubot>> <queryrelay> is running for 3 days, 23 hours, 21 minutes with flags Fast, Running, V2Dir, Valid