0.0
No commit activity in last 3 years
No release in over 3 years
This is a simple reddit plugin for the excellent cinch irc bot framework. It provides a few simple commands, !karma, !mods, and !readers. See the github page for more details
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

This is a simple reddit plugin for the [cinch][1] IRC bot framework

Commands

  • !karma <username>: returns the karma of <username>
  • !readers <subreddit>: returns the subscriber count of <subreddit>
  • !mods <subreddit>: returns the mods of <subreddit>

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:

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