Globster scriptsProjects home
This script is a simple tool to create and manage a database of releases. When set up and running, the script can be simply controlled by commands sent to bot via private messages.
Download the script and move it to any location on your filesystem. Then open it in your favourite text editor.
Edit the Settings part at the top of the script source code.
Configuration variables are shown in the below table:
|$dbfile||Absolute path to sqlite3 database where releases will be saved.|
|$dbusaddr||Address of the D-Bus session for communication with Globster. Comment the line (#) to let the script take value from your system.|
|$cmdprefix||String of characters identifying commands. Assign any which can be sent via private messages or which the hub does not identify as hubcommand prefix.
|@hubs||Comma seperated list of Globster hub IDs where this script should run. Do not forget to enclose the list with brackets.|
To start the script:
To run in background:
Shows help. Contents is almost the same as the below text.
Show releases. Category is optional if none is given, all relaeses will be shown.
Example: !releases Films
Show release categories.
reladd -c <category> -t <title> -h <TTH> [-d <description>]
Add new release. Unknown category is automatically added according to given related argument. Description is optional. This command is only available to operators.
Example: !reladd -c Films -t My Video -h XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -d This is description of my video.
relmod <release id> [-c <category>] [-t <title>] [-h <TTH>]
Modify existing release identified by release id. Use at least one of the options.
Example: !relmod -d I have screwed up, this is the right description of my video.
reldel <release id>
Delete existing release identified by release id.
Example: !reldel 3