https://github.com/paradox460/cinch-reddit
A reddit plugin for the cinch irc bot framework
https://github.com/paradox460/cinch-reddit
Last synced: 5 months ago
JSON representation
A reddit plugin for the cinch irc bot framework
- Host: GitHub
- URL: https://github.com/paradox460/cinch-reddit
- Owner: paradox460
- License: mit
- Created: 2012-05-10T23:58:02.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T20:11:52.000Z (almost 11 years ago)
- Last Synced: 2025-10-07T14:27:54.724Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 123 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a simple reddit plugin for the [cinch][1] IRC bot framework
# Commands
+ `!karma `: returns the karma of ``
+ `!readers `: returns the subscriber count of ``
+ `!mods `: returns the mods of ``
# Installing
You need to have the [cinch][1] framework installed, but once you have that done the rest is simple.
+ Write a new bot file, and include `require 'cinch/plugins/reddit'.
+ In your configure block, add `Cinch::Plugins::Reddit`, ex: `c.plugins.plugins = [Cinch::Plugins::Reddit]`
Here is a sample bot:
```ruby
require 'cinch'
require 'cinch/plugins/reddit'
bot = Cinch::Bot.new do
configure do |c|
c.server = "irc.snoonet.com"
c.nick = "testborg"
c.channels = [ "#bottest" ]
c.plugins.plugins = [Cinch::Plugins::Reddit]
end
end
bot.start
```