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 🙏

© 2024 – Pkg Stats / Ryan Hefner

deluge-slack-bot

v1.0.1

Published

A slack bot (www.slack.com) that can interact with deluge.

Downloads

4

Readme

deluge-slack-bot

A slack bot (www.slack.com) that can interact with deluge. Currently it can add torrents (with cookies if needed!), notify when torrent has started and notify when a torrent is complete.

Install

npm

$ npm install deluge-slack-bot

Should now be installed in node_modules/deluge-slack-bot/.

Github

Clone the repo

$ git clone https://github.com/hannespetur/deluge-slack-bot.git
$ cd deluge-slack-bot
$ npm install

nodejs

$ sudo apt-get install nodejs

Due to a conflict with another package called "node" on Ubuntu systems you may need to run the following commands afterwards to make sure node will refer to nodejs

$ cd /usr/local/bin; sudo ln -s /usr/bin/nodejs node

Usage

Insert your token into a token.txt file (in same directory the index file is in) or into the script. You can create a slack bot here: https://my.slack.com/services/new/bot and after the creating the bot you will get the token.

NodeJS

Run the bot with node using simply

$ node index.js

Coffeescript

If you installed from Github you'll have the coffeescript files instead of NodeJS files. You can run the script using:

$ node_modules/coffee-script/bin/coffee index.coffee

or simply

$ coffee index.coffee

if you have "coffee" globally installed.

Slack

The bot can be on any channel you invite him to. To add torrents you can use the "deluge add" command, e.g.

deluge add http://www.some-website.com/id/name.torrent

The bot will get the torrent file (using cookies if you defined some in your cookies.json file), and add the torrent into the deluge web ui.

Notes

  • Make sure deluge web ui can have write access on dlAdded.log and dlComplete.log, you want to use that feature.
  • If you need to use cookies (e.g. to download torrents from private trackers), add a cookies.json using the format:
{
	"http://example.org/": "uid=1234;pass=xxxx;",
	"http://www.example.org/": "uid=1234;pass=xxxx;",
	"https://www.awesome-site.com/": "h_sl=aaaa;h_sp=bbbb;h_su=cccc;"
}

License

(MIT license)