Skip to content

bcowdery/supybot-predb-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supybot Pre.im Plugin

Plugin for the supybot IRC bot for checking scene releases against the pre database.

Channel commands

dupe [--section s] [--group g] <search>

Search the pre database for all releases matching the search string. You can filter the search results by --section (e.g., MP3, X264, TV, TV-HD), and by release --group.

pre [--section s] [--group g] <search>

Search the pre database for a single releases matching the search string. You can filter the search results by --section (e.g., MP3, X264, TV, TV-HD), and by release --group. This operation is identical to dupe, but only returns a single result.

lastnukes [--section s] [--group g]

Show recent releases that have been nuked. You can filter the search results by --section (e.g., MP3, X264, TV, TV-HD), and by release --group.

lastunnukes [--section s] [--group g]

Show recent releases that have been un-nuked. You can filter the search results by --section (e.g., MP3, X264, TV, TV-HD), and by release --group

lastpres [--section s]

Show recent releases that have been pred. You can filter the search results by --section (e.g., MP3, X264, TV, TV-HD).

group <group>

Fetch information about the first, last and number of releases for a specific group.

nfo <release>

Searches for a release and returns a URL to the PreDB NFO Viewer. Depending on your API key it may be possible to download the NFO file from the viewer.

Getting Started

Installing the plugin

$ cd ./plugins/
$ git clone https://github.com/bcowdery/supybot-predb-plugin.git Pre

Configuring

If you create a new bot using supybot-wizard after installing the plugin, it should be available to configure in the wizard. You'll be asked for the Pre.im accesskey and the limit of results to return from queries. It is recommended you keep the limit low as some commands, like lastnuke can be spammy.

You can also configure the plugin manually by editing your bot's config file

###
# Determines what plugins will be loaded.
#
# Default value:
###
supybot.plugins: Pre

###
# Determines whether this plugin is loaded by default.
###
supybot.plugins.Pre: True

###
# Determines whether this plugin is publicly visible.
#
# Default value: True
###
supybot.plugins.Pre.public: True

###
# Web API access key to be sent in HTTP headers when making database
# requests.
#
# Default value: deadbeef
###
supybot.plugins.Pre.accesskey: deadbeef

###
# Maximum number of results to return from the pre.im database. If the
# number of results found exceeds this value they will not be shown.
#
# Default value: 10
###
supybot.plugins.Pre.limit: 10

Python dependencies

Installation:

$ pip install requests
$ pip install cheetah

Documentation:

License

Licensed under the MIT license.

About

Plugin for the supybot IRC bot for checking scene releases against the pre database.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages