Dozorce is a collection of plugins for the Cinch IRC bot written in Ruby.
You can use bundle
to install required ruby gems:
sudo bundle install
See installation steps and usage instructions on the cinch project page.
In the following examples, the plugin prefix is set by default to !
Prints a random quote from bash.org database.
Usage:
!bash
Calculates given formula.
Usages:
!c [formula]
[number] [unit1] to [unit2]
[number] [predefined-currency]
[number] [predefined-symbol]
Examples:
!c (5 + 6) / 2
18 stones to kg
18 usd
17 €
$11
Config:
Calculator.configure do |c|
c.currency_shortcut = {
:to => 'czk',
:from => %w(usd eur euro euros),
:symbols => {
:usd => '$',
:eur => '€',
:pound => '£'
}
}
end
Returns info about queried movie.
Usage:
!csfd [query]
Example:
!csfd star wars xxx a porn parody
Returns the first result via Google Search.
Usage:
!go [query]
Examples:
!go cinema in Prague
Prints information about a command (or all commands with no name specified).
Usage:
!help [name]
Examples:
!help
!help calculator
If the bot is kicked, it will attempt to rejoin after 10 seconds by default.
Prints the list of monitored feeds. Plugin prints new messages automatically in a short interval. Feeds list can be set via plugin's config.
Usage:
!rss list
Config:
Rss.configure do |c|
c.feeds = {
:bashoid => 'https://github.com/Audio/bashoid/commits/master.atom',
:dozorce => 'https://github.com/Audio/dozorce/commits/master.atom'
}
end
Prints the title of a page specified in parameter.
Usage:
!t [url]
Example:
!t http://www.seznam.cz/
Prints all tracked users. Plugin prints new ratings automatically in a short interval.
Usage:
!track list
Translates the query string. Lang parameters are optional for the first pattern.
Usages:
!tr [source-lang]-[to-lang] [query]
!tr [query]
Examples:
!tr en-cs dog
!tr dog
Twitter plugin automatically prints tweets from detected URLs.
Returns the first result via MediaWiki.
Usage:
!wik(i)(-[lang]) [query]
Example:
!wik-en hamster
YouTube plugin automatically prints video titles from detected URLs.