deluge-slack-bot
A slack bot (www.slack.com) that can interact with deluge.
Last updated 5 years ago by sennap .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install deluge-slack-bot 
SYNC missed versions from official npm registry.

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)

Current Tags

  • 1.0.1                                ...           latest (5 years ago)

3 Versions

  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |