Skip to content

Instantly share code, notes, and snippets.

@paradox460
paradox460 / Gemfile
Created October 17, 2012 22:32
reddit userpage scrubber
ruby '1.9.3'
source 'https://rubygems.org'
gem 'snoo', '0.1.0.pre.1'
gem 'ruby-progressbar'
@paradox460
paradox460 / reddit.rb
Created May 10, 2012 22:54
Cinch reddit bot
require 'cinch'
require 'json'
require 'open-uri'
require 'cgi'
class Reddit
include Cinch::Plugin
RedditBaseUrl = "http://www.reddit.com"
@paradox460
paradox460 / relay.rb
Created May 3, 2012 16:17
Cinch-based IRC relay bot
# ====================================================================
# = Scroll to the bottom for config settings this is all other stuff =
# ====================================================================
require 'cinch'
Bot2Bot1, Bot1Bot2 = Queue.new, Queue.new
class Relay
include Cinch::Plugin
listen_to :connect, method: :relay